org.apache.james.impl.jamesuser
Class LocalJamesUsersRepository

java.lang.Object
  extended by org.apache.james.impl.user.LocalUsersRepository
      extended by org.apache.james.impl.jamesuser.LocalJamesUsersRepository
All Implemented Interfaces:
org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.service.Serviceable, UsersRepository, VirtualUserTable, JamesUsersRepository

public class LocalJamesUsersRepository
extends LocalUsersRepository
implements JamesUsersRepository

This is a wrapper that provide access to the "LocalUsers" repository but expect to find a JamesUsersRepository and return an object implementing this extended interface


Field Summary
 
Fields inherited from class org.apache.james.impl.user.LocalUsersRepository
users
 
Fields inherited from interface org.apache.james.api.user.UsersRepository
ROLE, USER
 
Fields inherited from interface org.apache.james.api.vut.VirtualUserTable
ALIASDOMAIN_PREFIX, ERROR_PREFIX, REGEX_PREFIX, ROLE
 
Constructor Summary
LocalJamesUsersRepository()
           
 
Method Summary
 java.util.Collection getMappings(java.lang.String user, java.lang.String domain)
          Return the mapped MailAddress for the given address.
 void setEnableAliases(boolean enableAliases)
          enable/disable aliases in case of JamesUsers
 void setEnableForwarding(boolean enableForwarding)
          enable/disable aliases in case of JamesUsers
 void setIgnoreCase(boolean ignoreCase)
          set case sensitive/insensitive operations
 
Methods inherited from class org.apache.james.impl.user.LocalUsersRepository
addUser, addUser, addUser, contains, containsCaseInsensitive, countUsers, getRealName, getUserByName, getUserByNameCaseInsensitive, initialize, list, removeUser, service, setUsersStore, test, updateUser
 
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.api.user.UsersRepository
addUser, addUser, addUser, contains, containsCaseInsensitive, countUsers, getRealName, getUserByName, getUserByNameCaseInsensitive, list, removeUser, test, updateUser
 

Constructor Detail

LocalJamesUsersRepository

public LocalJamesUsersRepository()
Method Detail

setEnableAliases

public void setEnableAliases(boolean enableAliases)
Description copied from interface: JamesUsersRepository
enable/disable aliases in case of JamesUsers

Specified by:
setEnableAliases in interface JamesUsersRepository
Parameters:
enableAliases - enable
See Also:
JamesUsersRepository.setEnableAliases(boolean)

setEnableForwarding

public void setEnableForwarding(boolean enableForwarding)
Description copied from interface: JamesUsersRepository
enable/disable aliases in case of JamesUsers

Specified by:
setEnableForwarding in interface JamesUsersRepository
Parameters:
enableForwarding - enable
See Also:
JamesUsersRepository.setEnableForwarding(boolean)

setIgnoreCase

public void setIgnoreCase(boolean ignoreCase)
Description copied from interface: JamesUsersRepository
set case sensitive/insensitive operations

Specified by:
setIgnoreCase in interface JamesUsersRepository
Parameters:
ignoreCase - ignore
See Also:
JamesUsersRepository.setIgnoreCase(boolean)

getMappings

public java.util.Collection getMappings(java.lang.String user,
                                        java.lang.String domain)
                                 throws ErrorMappingException
Description copied from interface: VirtualUserTable
Return the mapped MailAddress for the given address. Return null if no matched mapping was found

Specified by:
getMappings in interface VirtualUserTable
Parameters:
user - the MailAddress
Returns:
the mapped mailAddress
Throws:
ErrorMappingException - get thrown if an error mapping was found
See Also:
VirtualUserTable.getMappings(java.lang.String, java.lang.String)


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.