public class JPARecipientRewriteTable extends AbstractRecipientRewriteTable
RecipientRewriteTable.ErrorMappingExceptionALIASDOMAIN_PREFIX, ERROR_PREFIX, REGEX_PREFIX, WILDCARD| Constructor and Description | 
|---|
JPARecipientRewriteTable()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addMappingInternal(String user,
                  String domain,
                  String mapping)
Add new mapping 
 | 
protected Map<String,Collection<String>> | 
getAllMappingsInternal()
Return a Map which holds all Mappings 
 | 
protected Collection<String> | 
getUserDomainMappingsInternal(String user,
                             String domain)
Return Collection of all mappings for the given username and domain 
 | 
protected String | 
mapAddressInternal(String user,
                  String domain)
Override to map virtual recipients to real recipients, both local and
 non-local. 
 | 
protected void | 
removeMappingInternal(String user,
                     String domain,
                     String mapping)
Remove mapping 
 | 
void | 
setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
Set the entity manager to use. 
 | 
addAddressMapping, addAliasDomainMapping, addErrorMapping, addMapping, addRegexMapping, configure, doConfigure, getAllMappings, getFixedDomain, getFixedUser, getLogger, getMappings, getMappings, getUserDomainMappings, removeAddressMapping, removeAliasDomainMapping, removeErrorMapping, removeMapping, removeRegexMapping, setDomainList, setLog, setMappingLimit, setRecursiveMappingpublic void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
entityManagerFactory - protected void addMappingInternal(String user, String domain, String mapping) throws RecipientRewriteTableException
AbstractRecipientRewriteTableaddMappingInternal in class AbstractRecipientRewriteTableuser - the userdomain - the domainmapping - the mappingRecipientRewriteTableExceptionAbstractRecipientRewriteTable.addMappingInternal(String, String, String)protected String mapAddressInternal(String user, String domain) throws RecipientRewriteTableException
AbstractRecipientRewriteTableMailAddress object.
 
 Translate virtual recipients to real recipients by mapping a string
 containing the address of the real recipient as a value to a key. Leave
 the value null
 if no mapping should be performed. Multiple recipients may be specified by delineating
 the mapped string with commas, semi-colons or colons.mapAddressInternal in class AbstractRecipientRewriteTableuser - the mapping of virtual to real recipients, as
            MailAddresses to Strings.RecipientRewriteTableExceptionAbstractRecipientRewriteTable.mapAddressInternal(java.lang.String,
      java.lang.String)protected Collection<String> getUserDomainMappingsInternal(String user, String domain) throws RecipientRewriteTableException
AbstractRecipientRewriteTablegetUserDomainMappingsInternal in class AbstractRecipientRewriteTableuser - the userdomain - the domainRecipientRewriteTableExceptionAbstractRecipientRewriteTable.mapAddress(java.lang.String, java.lang.String)protected Map<String,Collection<String>> getAllMappingsInternal() throws RecipientRewriteTableException
AbstractRecipientRewriteTablegetAllMappingsInternal in class AbstractRecipientRewriteTableRecipientRewriteTableExceptionAbstractRecipientRewriteTable.getAllMappingsInternal()protected void removeMappingInternal(String user, String domain, String mapping) throws RecipientRewriteTableException
AbstractRecipientRewriteTableremoveMappingInternal in class AbstractRecipientRewriteTableuser - the userdomain - the domainmapping - the mappingRecipientRewriteTableExceptionAbstractRecipientRewriteTable.removeMappingInternal(String, String, String)Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.