public class RecipientRewriteTableManagement extends StandardMBean implements RecipientRewriteTableManagementMBean
Modifier | Constructor and Description |
---|---|
protected |
RecipientRewriteTableManagement() |
Modifier and Type | Method and Description |
---|---|
void |
addAddressMapping(String user,
String domain,
String address)
Add address mapping
|
void |
addDomainMapping(String domain,
String targetDomain)
Add domain mapping
|
void |
addErrorMapping(String user,
String domain,
String error)
Add error mapping
|
void |
addMapping(String user,
String domain,
String mapping)
Try to identify the right method based on the prefix of the mapping and
add it.
|
void |
addRegexMapping(String user,
String domain,
String regex)
Add regex mapping
|
Map<String,Collection<String>> |
getAllMappings()
Return a Map which holds all mappings.
|
Collection<String> |
getUserDomainMappings(String user,
String domain)
Return the explicit mapping stored for the given user and domain.
|
void |
removeAddressMapping(String user,
String domain,
String address)
Remove address mapping
|
void |
removeDomainMapping(String domain,
String targetDomain)
Remove domain mapping
|
void |
removeErrorMapping(String user,
String domain,
String error)
Remove error mapping
|
void |
removeMapping(String user,
String domain,
String mapping)
Try to identify the right method based on the prefix of the mapping and
remove it.
|
void |
removeRegexMapping(String user,
String domain,
String regex)
Remove regex mapping
|
void |
setManageableRecipientRewriteTable(RecipientRewriteTable vut) |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
protected RecipientRewriteTableManagement() throws NotCompliantMBeanException
NotCompliantMBeanException
public void setManageableRecipientRewriteTable(RecipientRewriteTable vut)
public void addRegexMapping(String user, String domain, String regex) throws Exception
RecipientRewriteTableManagementMBean
addRegexMapping
in interface RecipientRewriteTableManagementMBean
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedregex
- the regex.Exception
- If an error occurred(java.lang.String, java.lang.String, java.lang.String)
public void removeRegexMapping(String user, String domain, String regex) throws Exception
RecipientRewriteTableManagementMBean
removeRegexMapping
in interface RecipientRewriteTableManagementMBean
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedregex
- the regex.Exception
- If an error occurred(java.lang.String, java.lang.String, java.lang.String)
public void addAddressMapping(String user, String domain, String address) throws Exception
RecipientRewriteTableManagementMBean
addAddressMapping
in interface RecipientRewriteTableManagementMBean
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedaddress
- the address.Exception
- If an error occurred(java.lang.String, java.lang.String, java.lang.String)
public void removeAddressMapping(String user, String domain, String address) throws Exception
RecipientRewriteTableManagementMBean
removeAddressMapping
in interface RecipientRewriteTableManagementMBean
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedException
- If an error occurred(java.lang.String, java.lang.String, java.lang.String)
public void addErrorMapping(String user, String domain, String error) throws Exception
RecipientRewriteTableManagementMBean
addErrorMapping
in interface RecipientRewriteTableManagementMBean
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedException
- If an error occurred(java.lang.String, java.lang.String, java.lang.String)
public void removeErrorMapping(String user, String domain, String error) throws Exception
RecipientRewriteTableManagementMBean
removeErrorMapping
in interface RecipientRewriteTableManagementMBean
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedException
- If an error occurred(java.lang.String, java.lang.String, java.lang.String)
public void addDomainMapping(String domain, String targetDomain) throws Exception
RecipientRewriteTableManagementMBean
addDomainMapping
in interface RecipientRewriteTableManagementMBean
domain
- the domain. Null if no domain should be usedtargetDomain
- the target domain for the mappingException
- If an error occurredpublic void removeDomainMapping(String domain, String targetDomain) throws Exception
RecipientRewriteTableManagementMBean
removeDomainMapping
in interface RecipientRewriteTableManagementMBean
domain
- the domain. Null if no domain should be usedtargetDomain
- the target domain for the mappingException
- If an error occurredpublic Collection<String> getUserDomainMappings(String user, String domain) throws Exception
RecipientRewriteTableManagementMBean
getUserDomainMappings
in interface RecipientRewriteTableManagementMBean
user
- the usernamedomain
- the domainException
- If an error occurred#getUserDomainMappings(java.lang.String, java.lang.String)
public void addMapping(String user, String domain, String mapping) throws Exception
RecipientRewriteTableManagementMBean
addMapping
in interface RecipientRewriteTableManagementMBean
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedmapping
- the mapping.Exception
- If an error occurred#addMapping(java.lang.String, java.lang.String, java.lang.String)
public void removeMapping(String user, String domain, String mapping) throws Exception
RecipientRewriteTableManagementMBean
removeMapping
in interface RecipientRewriteTableManagementMBean
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedmapping
- the mapping.Exception
- If an error occurred(java.lang.String, java.lang.String, java.lang.String)
public Map<String,Collection<String>> getAllMappings() throws Exception
RecipientRewriteTableManagementMBean
getAllMappings
in interface RecipientRewriteTableManagementMBean
Exception
- If an error occurredRecipientRewriteTableManagementMBean.getAllMappings()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.