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, setImplementationprotected RecipientRewriteTableManagement()
throws NotCompliantMBeanException
NotCompliantMBeanExceptionpublic void setManageableRecipientRewriteTable(RecipientRewriteTable vut)
public void addRegexMapping(String user, String domain, String regex) throws Exception
RecipientRewriteTableManagementMBeanaddRegexMapping in interface RecipientRewriteTableManagementMBeanuser - 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
RecipientRewriteTableManagementMBeanremoveRegexMapping in interface RecipientRewriteTableManagementMBeanuser - 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
RecipientRewriteTableManagementMBeanaddAddressMapping in interface RecipientRewriteTableManagementMBeanuser - 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
RecipientRewriteTableManagementMBeanremoveAddressMapping in interface RecipientRewriteTableManagementMBeanuser - 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
RecipientRewriteTableManagementMBeanaddErrorMapping in interface RecipientRewriteTableManagementMBeanuser - 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
RecipientRewriteTableManagementMBeanremoveErrorMapping in interface RecipientRewriteTableManagementMBeanuser - 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
RecipientRewriteTableManagementMBeanaddDomainMapping in interface RecipientRewriteTableManagementMBeandomain - 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
RecipientRewriteTableManagementMBeanremoveDomainMapping in interface RecipientRewriteTableManagementMBeandomain - 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
RecipientRewriteTableManagementMBeangetUserDomainMappings in interface RecipientRewriteTableManagementMBeanuser - 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
RecipientRewriteTableManagementMBeanaddMapping in interface RecipientRewriteTableManagementMBeanuser - 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
RecipientRewriteTableManagementMBeanremoveMapping in interface RecipientRewriteTableManagementMBeanuser - 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
RecipientRewriteTableManagementMBeangetAllMappings in interface RecipientRewriteTableManagementMBeanException - If an error occurredRecipientRewriteTableManagementMBean.getAllMappings()Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.