org.apache.james.rrt.jdbc
Class JDBCRecipientRewriteTable

java.lang.Object
  extended by org.apache.james.rrt.lib.AbstractRecipientRewriteTable
      extended by org.apache.james.rrt.jdbc.JDBCRecipientRewriteTable
All Implemented Interfaces:
Configurable, LogEnabled, RecipientRewriteTable

Deprecated. use JPARecipientRewriteTable

@Deprecated
public class JDBCRecipientRewriteTable
extends AbstractRecipientRewriteTable

Class responsible to implement the Virtual User Table in database with JDBC access.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.james.rrt.api.RecipientRewriteTable
RecipientRewriteTable.ErrorMappingException
 
Field Summary
 
Fields inherited from interface org.apache.james.rrt.api.RecipientRewriteTable
ALIASDOMAIN_PREFIX, ERROR_PREFIX, REGEX_PREFIX, WILDCARD
 
Constructor Summary
JDBCRecipientRewriteTable()
          Deprecated.  
 
Method Summary
protected  void addMappingInternal(String user, String domain, String regex)
          Deprecated.  
protected  void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration conf)
          Deprecated.  
protected  Map<String,Collection<String>> getAllMappingsInternal()
          Deprecated.  
protected  Collection<String> getUserDomainMappingsInternal(String user, String domain)
          Deprecated.  
 void init()
          Deprecated.  
protected  String mapAddressInternal(String user, String domain)
          Deprecated.  
protected  void removeMappingInternal(String user, String domain, String mapping)
          Deprecated.  
 void setDataSource(DataSource dataSource)
          Deprecated.  
 void setFileSystem(FileSystem fileSystem)
          Deprecated.  
 
Methods inherited from class org.apache.james.rrt.lib.AbstractRecipientRewriteTable
addAddressMapping, addAliasDomainMapping, addErrorMapping, addMapping, addRegexMapping, configure, getAllMappings, getFixedDomain, getFixedUser, getLogger, getMappings, getMappings, getUserDomainMappings, removeAddressMapping, removeAliasDomainMapping, removeErrorMapping, removeMapping, removeRegexMapping, setDomainList, setLog, setMappingLimit, setRecursiveMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCRecipientRewriteTable

public JDBCRecipientRewriteTable()
Deprecated. 
Method Detail

init

@PostConstruct
public void init()
          throws Exception
Deprecated. 
Throws:
Exception

setFileSystem

public void setFileSystem(FileSystem fileSystem)
Deprecated. 

setDataSource

public void setDataSource(DataSource dataSource)
Deprecated. 

doConfigure

protected void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration conf)
                    throws org.apache.commons.configuration.ConfigurationException
Deprecated. 
Overrides:
doConfigure in class AbstractRecipientRewriteTable
Throws:
org.apache.commons.configuration.ConfigurationException

addMappingInternal

protected void addMappingInternal(String user,
                                  String domain,
                                  String regex)
                           throws RecipientRewriteTableException
Deprecated. 
Specified by:
addMappingInternal in class AbstractRecipientRewriteTable
Throws:
RecipientRewriteTableException
See Also:
AbstractRecipientRewriteTable.addMappingInternal(String, String, String)

mapAddressInternal

protected String mapAddressInternal(String user,
                                    String domain)
                             throws RecipientRewriteTableException
Deprecated. 
Specified by:
mapAddressInternal in class AbstractRecipientRewriteTable
Throws:
RecipientRewriteTableException
See Also:
AbstractRecipientRewriteTable.mapAddressInternal(java.lang.String, java.lang.String)

getUserDomainMappingsInternal

protected Collection<String> getUserDomainMappingsInternal(String user,
                                                           String domain)
                                                    throws RecipientRewriteTableException
Deprecated. 
Specified by:
getUserDomainMappingsInternal in class AbstractRecipientRewriteTable
Throws:
RecipientRewriteTableException
See Also:
AbstractRecipientRewriteTable.mapAddress(java.lang.String, java.lang.String)

getAllMappingsInternal

protected Map<String,Collection<String>> getAllMappingsInternal()
                                                         throws RecipientRewriteTableException
Deprecated. 
Specified by:
getAllMappingsInternal in class AbstractRecipientRewriteTable
Throws:
RecipientRewriteTableException
See Also:
AbstractRecipientRewriteTable.getAllMappingsInternal()

removeMappingInternal

protected void removeMappingInternal(String user,
                                     String domain,
                                     String mapping)
                              throws RecipientRewriteTableException
Deprecated. 
Specified by:
removeMappingInternal in class AbstractRecipientRewriteTable
Throws:
RecipientRewriteTableException
See Also:
AbstractRecipientRewriteTable.removeMappingInternal(String, String, String)


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.