|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.user.lib.AbstractUsersRepository
org.apache.james.user.lib.AbstractJamesUsersRepository
UsersRepository
@Deprecated public abstract class AbstractJamesUsersRepository
A partial implementation of a Repository to store users.
This implements common functionality found in different UsersRespository implementations, and makes it easier to create new User repositories.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.james.rrt.api.RecipientRewriteTable |
|---|
RecipientRewriteTable.ErrorMappingException |
| Field Summary | |
|---|---|
protected boolean |
enableAliases
Deprecated. Enable Aliases frmo JamesUser |
protected boolean |
enableForwarding
Deprecated. Wether to enable forwarding for JamesUser or not |
protected boolean |
ignoreCase
Deprecated. Ignore case in usernames |
| Fields inherited from interface org.apache.james.rrt.api.RecipientRewriteTable |
|---|
ALIASDOMAIN_PREFIX, ERROR_PREFIX, REGEX_PREFIX, WILDCARD |
| Constructor Summary | |
|---|---|
AbstractJamesUsersRepository()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addAddressMapping(String user,
String domain,
String address)
Deprecated. |
void |
addAliasDomainMapping(String aliasDomain,
String realDomain)
Deprecated. |
void |
addErrorMapping(String user,
String domain,
String error)
Deprecated. |
void |
addMapping(String user,
String domain,
String mapping)
Deprecated. |
void |
addRegexMapping(String user,
String domain,
String regex)
Deprecated. |
void |
configure(org.apache.commons.configuration.HierarchicalConfiguration configuration)
Deprecated. |
protected void |
doAddUser(String username,
String password)
Deprecated. Add the user with the given username and password |
protected abstract void |
doAddUser(User user)
Deprecated. Adds a user to the underlying Repository. |
protected abstract void |
doUpdateUser(User user)
Deprecated. Updates a user record to match the supplied User. |
Map<String,Collection<String>> |
getAllMappings()
Deprecated. |
Collection<String> |
getMappings(String username,
String domain)
Deprecated. |
Collection<String> |
getUserDomainMappings(String user,
String domain)
Deprecated. |
void |
removeAddressMapping(String user,
String domain,
String address)
Deprecated. |
void |
removeAliasDomainMapping(String aliasDomain,
String realDomain)
Deprecated. |
void |
removeErrorMapping(String user,
String domain,
String error)
Deprecated. |
void |
removeMapping(String user,
String domain,
String mapping)
Deprecated. |
void |
removeRegexMapping(String user,
String domain,
String regex)
Deprecated. |
void |
setEnableAliases(boolean enableAliases)
Deprecated. |
void |
setEnableForwarding(boolean enableForwarding)
Deprecated. |
void |
setIgnoreCase(boolean ignoreCase)
Deprecated. |
void |
updateUser(User user)
Deprecated. Update the repository with the specified user object. |
| Methods inherited from class org.apache.james.user.lib.AbstractUsersRepository |
|---|
addUser, doConfigure, getLogger, isValidUsername, setDomainList, setEnableVirtualHosting, setLog, supportVirtualHosting |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.james.user.api.UsersRepository |
|---|
addUser, contains, countUsers, getUserByName, list, removeUser, supportVirtualHosting, test |
| Field Detail |
|---|
protected boolean ignoreCase
protected boolean enableAliases
protected boolean enableForwarding
| Constructor Detail |
|---|
public AbstractJamesUsersRepository()
| Method Detail |
|---|
public void configure(org.apache.commons.configuration.HierarchicalConfiguration configuration)
throws org.apache.commons.configuration.ConfigurationException
configure in interface Configurableconfigure in class AbstractUsersRepositoryorg.apache.commons.configuration.ConfigurationExceptionConfigurable.configure(org.apache.commons.configuration.HierarchicalConfiguration)
protected abstract void doAddUser(User user)
throws UsersRepositoryException
user - the user to add
UsersRepositoryException
protected abstract void doUpdateUser(User user)
throws UsersRepositoryException
user - the user to update
UsersRepositoryException
protected void doAddUser(String username,
String password)
throws UsersRepositoryException
AbstractUsersRepository
doAddUser in class AbstractUsersRepositoryUsersRepositoryException - If an error occurredAbstractUsersRepository.doAddUser(java.lang.String, java.lang.String)
public void updateUser(User user)
throws UsersRepositoryException
updateUser in interface UsersRepositoryuser - the user to be updated
UsersRepositoryException
public Collection<String> getMappings(String username,
String domain)
throws RecipientRewriteTable.ErrorMappingException,
RecipientRewriteTableException
getMappings in interface RecipientRewriteTableRecipientRewriteTableException
RecipientRewriteTable.ErrorMappingExceptionRecipientRewriteTable.getMappings(java.lang.String,
java.lang.String)public void setEnableAliases(boolean enableAliases)
setEnableAliases in interface JamesUsersRepositoryJamesUsersRepository.setEnableAliases(boolean)public void setEnableForwarding(boolean enableForwarding)
setEnableForwarding in interface JamesUsersRepositoryJamesUsersRepository.setEnableForwarding(boolean)public void setIgnoreCase(boolean ignoreCase)
setIgnoreCase in interface JamesUsersRepositoryJamesUsersRepository.setIgnoreCase(boolean)
public Map<String,Collection<String>> getAllMappings()
throws RecipientRewriteTableException
getAllMappings in interface RecipientRewriteTableRecipientRewriteTableExceptionRecipientRewriteTable.getAllMappings()
public Collection<String> getUserDomainMappings(String user,
String domain)
throws RecipientRewriteTableException
getUserDomainMappings in interface RecipientRewriteTableRecipientRewriteTableExceptionRecipientRewriteTable.getUserDomainMappings(java.lang.String, java.lang.String)
public void addRegexMapping(String user,
String domain,
String regex)
throws RecipientRewriteTableException
addRegexMapping in interface RecipientRewriteTableRecipientRewriteTableException
public void removeRegexMapping(String user,
String domain,
String regex)
throws RecipientRewriteTableException
removeRegexMapping in interface RecipientRewriteTableRecipientRewriteTableException
public void addAddressMapping(String user,
String domain,
String address)
throws RecipientRewriteTableException
addAddressMapping in interface RecipientRewriteTableRecipientRewriteTableException
public void removeAddressMapping(String user,
String domain,
String address)
throws RecipientRewriteTableException
removeAddressMapping in interface RecipientRewriteTableRecipientRewriteTableException
public void addErrorMapping(String user,
String domain,
String error)
throws RecipientRewriteTableException
addErrorMapping in interface RecipientRewriteTableRecipientRewriteTableException
public void removeErrorMapping(String user,
String domain,
String error)
throws RecipientRewriteTableException
removeErrorMapping in interface RecipientRewriteTableRecipientRewriteTableException
public void addMapping(String user,
String domain,
String mapping)
throws RecipientRewriteTableException
addMapping in interface RecipientRewriteTableRecipientRewriteTableException
public void removeMapping(String user,
String domain,
String mapping)
throws RecipientRewriteTableException
removeMapping in interface RecipientRewriteTableRecipientRewriteTableException
public void addAliasDomainMapping(String aliasDomain,
String realDomain)
throws RecipientRewriteTableException
addAliasDomainMapping in interface RecipientRewriteTableRecipientRewriteTableException
public void removeAliasDomainMapping(String aliasDomain,
String realDomain)
throws RecipientRewriteTableException
removeAliasDomainMapping in interface RecipientRewriteTableRecipientRewriteTableException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||