|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.james.userrepository.UsersLDAPRepository
Implementation of a Repository to store users. This clas is a dummy for the proposal!
Field Summary |
Fields inherited from interface org.apache.james.services.UsersRepository |
ROLE, USER |
Constructor Summary | |
UsersLDAPRepository()
|
Method Summary | |
void |
addUser(java.lang.String userName,
java.lang.Object attributes)
Adds userName to the MemberAttribute (specified in conf.xml) of this node. |
boolean |
addUser(User user)
Adds a user to the repository with the specified User object. |
void |
compose(org.apache.avalon.framework.component.ComponentManager compMgr)
|
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
|
boolean |
contains(java.lang.String name)
Returns whether or not this user is in the repository |
boolean |
containsCaseInsensitive(java.lang.String name)
Returns whether or not this user is in the repository. |
void |
contextualize(org.apache.avalon.framework.context.Context context)
|
int |
countUsers()
Returns a count of the users in the repository. |
void |
dispose()
Disposes of all open directory contexts. |
void |
enableLogging(org.apache.avalon.framework.logger.Logger a_Logger)
|
java.lang.Object |
getAttributes(java.lang.String name)
Gets the attribute for a user. |
java.lang.String |
getChildDestination(java.lang.String childName)
|
java.lang.String |
getDomains()
|
java.lang.String |
getRealName(java.lang.String name)
Returns the user name of the user matching name on an equalsIgnoreCase basis. |
User |
getUserByName(java.lang.String name)
Get the user object with the specified user name. |
User |
getUserByNameCaseInsensitive(java.lang.String name)
Get the user object with the specified user name. |
void |
initialize()
|
java.util.Iterator |
list()
List users in repository. |
void |
removeGroupFromUser(java.lang.String userName)
|
void |
removeUser(java.lang.String userName)
Removes a user from the repository |
void |
setBase(java.lang.String base)
|
void |
setServerRoot()
|
boolean |
test(java.lang.String name,
java.lang.Object attributes)
Tests a user with the appropriate attributes. |
boolean |
test(java.lang.String name,
java.lang.String password)
Test if user with name 'name' has password 'password'. |
boolean |
updateUser(User user)
Update the repository with the specified user object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UsersLDAPRepository()
Method Detail |
public void enableLogging(org.apache.avalon.framework.logger.Logger a_Logger)
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
public void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
public void compose(org.apache.avalon.framework.component.ComponentManager compMgr)
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
org.apache.avalon.framework.context.ContextException
public void setServerRoot()
public void setBase(java.lang.String base)
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
public java.lang.String getChildDestination(java.lang.String childName)
public java.util.Iterator list()
UsersRepository
list
in interface UsersRepository
public boolean addUser(User user)
UsersRepository
addUser
in interface UsersRepository
public User getUserByName(java.lang.String name)
UsersRepository
getUserByName
in interface UsersRepository
public User getUserByNameCaseInsensitive(java.lang.String name)
UsersRepository
getUserByNameCaseInsensitive
in interface UsersRepository
public boolean containsCaseInsensitive(java.lang.String name)
UsersRepository
containsCaseInsensitive
in interface UsersRepository
public java.lang.String getRealName(java.lang.String name)
UsersRepository
getRealName
in interface UsersRepository
public boolean updateUser(User user)
UsersRepository
updateUser
in interface UsersRepository
public boolean test(java.lang.String name, java.lang.String password)
UsersRepository
test
in interface UsersRepository
public void addUser(java.lang.String userName, java.lang.Object attributes)
addUser
in interface UsersRepository
public java.lang.Object getAttributes(java.lang.String name)
UsersRepository
getAttributes
in interface UsersRepository
public void removeUser(java.lang.String userName)
UsersRepository
removeUser
in interface UsersRepository
public void removeGroupFromUser(java.lang.String userName)
public boolean contains(java.lang.String name)
UsersRepository
contains
in interface UsersRepository
public boolean test(java.lang.String name, java.lang.Object attributes)
UsersRepository
test
in interface UsersRepository
public int countUsers()
UsersRepository
countUsers
in interface UsersRepository
public java.lang.String getDomains()
public void dispose() throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |