org.apache.james.vut.jpa
Class JPAVirtualUserTable

java.lang.Object
  extended by org.apache.james.vut.lib.AbstractVirtualUserTable
      extended by org.apache.james.vut.jpa.JPAVirtualUserTable
All Implemented Interfaces:
Configurable, LogEnabled, VirtualUserTable

public class JPAVirtualUserTable
extends AbstractVirtualUserTable

Class responsible to implement the Virtual User Table in database with JPA access.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.james.vut.api.VirtualUserTable
VirtualUserTable.ErrorMappingException
 
Field Summary
 
Fields inherited from interface org.apache.james.vut.api.VirtualUserTable
ALIASDOMAIN_PREFIX, ERROR_PREFIX, REGEX_PREFIX, WILDCARD
 
Constructor Summary
JPAVirtualUserTable()
           
 
Method Summary
protected  boolean addMappingInternal(java.lang.String user, java.lang.String domain, java.lang.String regex)
           
protected  java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getAllMappingsInternal()
           
protected  java.util.Collection<java.lang.String> getUserDomainMappingsInternal(java.lang.String user, java.lang.String domain)
           
protected  java.lang.String mapAddressInternal(java.lang.String user, java.lang.String domain)
           
protected  boolean removeMappingInternal(java.lang.String user, java.lang.String domain, java.lang.String mapping)
           
 void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
          Set the entity manager to use.
 
Methods inherited from class org.apache.james.vut.lib.AbstractVirtualUserTable
addAddressMapping, addAliasDomainMapping, addErrorMapping, addMapping, addRegexMapping, configure, doConfigure, getAllMappings, getLogger, getMappings, getMappings, getUserDomainMappings, removeAddressMapping, removeAliasDomainMapping, removeErrorMapping, removeMapping, removeRegexMapping, setLog, setMappingLimit, setRecursiveMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAVirtualUserTable

public JPAVirtualUserTable()
Method Detail

setEntityManagerFactory

public void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
Set the entity manager to use.

Parameters:
entityManagerFactory -

addMappingInternal

protected boolean addMappingInternal(java.lang.String user,
                                     java.lang.String domain,
                                     java.lang.String regex)
Specified by:
addMappingInternal in class AbstractVirtualUserTable
See Also:
AbstractVirtualUserTable.addMappingInternal(String, String, String)

mapAddressInternal

protected java.lang.String mapAddressInternal(java.lang.String user,
                                              java.lang.String domain)
Specified by:
mapAddressInternal in class AbstractVirtualUserTable
See Also:
AbstractVirtualUserTable.mapAddressInternal(java.lang.String, java.lang.String)

getUserDomainMappingsInternal

protected java.util.Collection<java.lang.String> getUserDomainMappingsInternal(java.lang.String user,
                                                                               java.lang.String domain)
Specified by:
getUserDomainMappingsInternal in class AbstractVirtualUserTable
See Also:
AbstractVirtualUserTable.mapAddress(java.lang.String, java.lang.String)

getAllMappingsInternal

protected java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getAllMappingsInternal()
Specified by:
getAllMappingsInternal in class AbstractVirtualUserTable
See Also:
AbstractVirtualUserTable.getAllMappingsInternal()

removeMappingInternal

protected boolean removeMappingInternal(java.lang.String user,
                                        java.lang.String domain,
                                        java.lang.String mapping)
Specified by:
removeMappingInternal in class AbstractVirtualUserTable
See Also:
AbstractVirtualUserTable.removeMappingInternal(String, String, String)


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.