|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.james.impl.vut.AbstractVirtualUserTable
org.apache.james.vut.JDBCVirtualUserTable
public class JDBCVirtualUserTable
Field Summary | |
---|---|
protected java.lang.String |
datasourceName
|
protected SqlResources |
sqlQueries
Contains all of the sql strings for this component. |
Fields inherited from interface org.apache.james.api.vut.management.VirtualUserTableManagement |
---|
ROLE |
Fields inherited from interface org.apache.james.api.domainlist.DomainList |
---|
ROLE |
Constructor Summary | |
---|---|
JDBCVirtualUserTable()
|
Method Summary | |
---|---|
boolean |
addMappingInternal(java.lang.String user,
java.lang.String domain,
java.lang.String regex)
Add new mapping |
void |
configure(org.apache.avalon.framework.configuration.Configuration arg0)
|
boolean |
containsDomain(java.lang.String domain)
Return true if the domain exists in the service |
java.util.Map |
getAllMappingsInternal()
Return a Map which holds all Mappings |
protected java.util.List |
getDomainsInternal()
Return List of all domains for which email should accepted |
protected java.util.Collection |
getUserDomainMappingsInternal(java.lang.String user,
java.lang.String domain)
Return Collection of all mappings for the given username and domain |
void |
initialize()
|
java.lang.String |
mapAddressInternal(java.lang.String user,
java.lang.String domain)
Override to map virtual recipients to real recipients, both local and non-local. |
boolean |
removeMappingInternal(java.lang.String user,
java.lang.String domain,
java.lang.String mapping)
Remove mapping |
void |
service(org.apache.avalon.framework.service.ServiceManager arg0)
|
void |
setDataSourceComponent(org.apache.avalon.excalibur.datasource.DataSourceComponent dataSourceComponent)
|
void |
setFileSystem(FileSystem fileSystem)
|
Methods inherited from class org.apache.james.impl.vut.AbstractVirtualUserTable |
---|
addAddressMapping, addAliasDomainMapping, addErrorMapping, addMapping, addRegexMapping, getAllMappings, getDomains, getMappings, getMappings, getUserDomainMappings, removeAddressMapping, removeAliasDomainMapping, removeErrorMapping, removeMapping, removeRegexMapping, setAutoDetect, setAutoDetectIP, setMappingLimit, setRecursiveMapping |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SqlResources sqlQueries
protected java.lang.String datasourceName
Constructor Detail |
---|
public JDBCVirtualUserTable()
Method Detail |
---|
public void service(org.apache.avalon.framework.service.ServiceManager arg0) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
service
in class AbstractVirtualUserTable
org.apache.avalon.framework.service.ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public void configure(org.apache.avalon.framework.configuration.Configuration arg0) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
configure
in class AbstractVirtualUserTable
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
Initializable.initialize()
public void setDataSourceComponent(org.apache.avalon.excalibur.datasource.DataSourceComponent dataSourceComponent)
public void setFileSystem(FileSystem fileSystem)
public java.lang.String mapAddressInternal(java.lang.String user, java.lang.String domain)
AbstractVirtualUserTable
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.
- Specified by:
mapAddressInternal
in class AbstractVirtualUserTable
- Parameters:
user
- the mapping of virtual to real recipients, as
MailAddress
es to String
s.- See Also:
AbstractVirtualUserTable.mapAddressInternal(java.lang.String, java.lang.String)
public boolean removeMappingInternal(java.lang.String user, java.lang.String domain, java.lang.String mapping) throws InvalidMappingException
AbstractVirtualUserTable
removeMappingInternal
in class AbstractVirtualUserTable
user
- the userdomain
- the domainmapping
- the mapping
InvalidMappingException
AbstractVirtualUserTable.removeMappingInternal(String, String, String)
public boolean addMappingInternal(java.lang.String user, java.lang.String domain, java.lang.String regex) throws InvalidMappingException
AbstractVirtualUserTable
addMappingInternal
in class AbstractVirtualUserTable
user
- the userdomain
- the domainregex
- the mapping
InvalidMappingException
AbstractVirtualUserTable.addMappingInternal(String, String, String)
protected java.util.Collection getUserDomainMappingsInternal(java.lang.String user, java.lang.String domain)
AbstractVirtualUserTable
getUserDomainMappingsInternal
in class AbstractVirtualUserTable
user
- the userdomain
- the domain
AbstractVirtualUserTable.mapAddress(java.lang.String, java.lang.String)
protected java.util.List getDomainsInternal()
AbstractVirtualUserTable
getDomainsInternal
in class AbstractVirtualUserTable
AbstractVirtualUserTable.getDomainsInternal()
public boolean containsDomain(java.lang.String domain)
DomainList
containsDomain
in interface DomainList
domain
- the domain
DomainList.containsDomain(java.lang.String)
public java.util.Map getAllMappingsInternal()
AbstractVirtualUserTable
getAllMappingsInternal
in class AbstractVirtualUserTable
AbstractVirtualUserTable.getAllMappingsInternal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |