public class HBaseRecipientRewriteTable extends AbstractRecipientRewriteTable
RecipientRewriteTable.ErrorMappingException
ALIASDOMAIN_PREFIX, ERROR_PREFIX, REGEX_PREFIX, WILDCARD
Constructor and Description |
---|
HBaseRecipientRewriteTable() |
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
|
addAddressMapping, addAliasDomainMapping, addErrorMapping, addMapping, addRegexMapping, configure, doConfigure, getAllMappings, getFixedDomain, getFixedUser, getLogger, getMappings, getMappings, getUserDomainMappings, removeAddressMapping, removeAliasDomainMapping, removeErrorMapping, removeMapping, removeRegexMapping, setDomainList, setLog, setMappingLimit, setRecursiveMapping
protected void addMappingInternal(String user, String domain, String mapping) throws RecipientRewriteTableException
AbstractRecipientRewriteTable
addMappingInternal
in class AbstractRecipientRewriteTable
user
- the userdomain
- the domainmapping
- the mappingRecipientRewriteTableException
AbstractRecipientRewriteTable.addMappingInternal(String, String, String)
protected Collection<String> getUserDomainMappingsInternal(String user, String domain) throws RecipientRewriteTableException
AbstractRecipientRewriteTable
getUserDomainMappingsInternal
in class AbstractRecipientRewriteTable
user
- the userdomain
- the domainRecipientRewriteTableException
AbstractRecipientRewriteTable.getUserDomainMappingsInternal(String, String)
protected Map<String,Collection<String>> getAllMappingsInternal() throws RecipientRewriteTableException
AbstractRecipientRewriteTable
getAllMappingsInternal
in class AbstractRecipientRewriteTable
RecipientRewriteTableException
AbstractRecipientRewriteTable.getAllMappingsInternal()
protected String mapAddressInternal(String user, String domain) throws RecipientRewriteTableException
AbstractRecipientRewriteTable
MailAddress
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 AbstractRecipientRewriteTable
user
- the mapping of virtual to real recipients, as
MailAddress
es to String
s.RecipientRewriteTableException
AbstractRecipientRewriteTable.mapAddressInternal(String, String)
protected void removeMappingInternal(String user, String domain, String mapping) throws RecipientRewriteTableException
AbstractRecipientRewriteTable
removeMappingInternal
in class AbstractRecipientRewriteTable
user
- the userdomain
- the domainmapping
- the mappingRecipientRewriteTableException
AbstractRecipientRewriteTable.removeMappingInternal(String, String, String)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.