|
||||||||||
| 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.userrepository.UsersLDAPRepository
public class 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(java.lang.String username,
java.lang.String password)
Adds a user to the repository with the specified password |
boolean |
addUser(User user)
Update the repository with the specified user object. |
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 |
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 |
service(org.apache.avalon.framework.service.ServiceManager compMgr)
|
void |
setBase(java.lang.String base)
|
void |
setServerRoot()
|
boolean |
test(java.lang.String name,
java.lang.String testPassword)
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 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 |
| Constructor Detail |
|---|
public UsersLDAPRepository()
| Method Detail |
|---|
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.Contextualizableorg.apache.avalon.framework.context.ContextExceptionContextualizable.contextualize(Context)public void service(org.apache.avalon.framework.service.ServiceManager compMgr)
service in interface org.apache.avalon.framework.service.ServiceableServiceable.service(org.apache.avalon.framework.service.ServiceManager)
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.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.configure(Configuration)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.Initializablejava.lang.ExceptionInitializable.initialize()public java.lang.String getChildDestination(java.lang.String childName)
public java.util.Iterator list()
list in interface UsersRepositorypublic boolean addUser(User user)
addUser in interface UsersRepositoryuser - the user to be added
public User getUserByName(java.lang.String name)
UsersRepository
getUserByName in interface UsersRepositoryname - the name of the user to retrieve
public User getUserByNameCaseInsensitive(java.lang.String name)
UsersRepository
getUserByNameCaseInsensitive in interface UsersRepositoryname - the name of the user to retrieve
public boolean containsCaseInsensitive(java.lang.String name)
UsersRepository
containsCaseInsensitive in interface UsersRepositoryname - the name to check in the repository
public java.lang.String getRealName(java.lang.String name)
UsersRepository
getRealName in interface UsersRepositoryname - the name to case-correct
public boolean updateUser(User user)
UsersRepository
updateUser in interface UsersRepository
public void addUser(java.lang.String userName,
java.lang.Object attributes)
addUser in interface UsersRepositoryuserName - the name of the user to be addedattributes - see decription
public boolean addUser(java.lang.String username,
java.lang.String password)
UsersRepository
addUser in interface UsersRepositoryusername - the username of the user to be addedpassword - the password of the user to add
UsersRepository.addUser(java.lang.String, java.lang.String)public void removeUser(java.lang.String userName)
UsersRepository
removeUser in interface UsersRepositoryuserName - the user to remove from the repositorypublic void removeGroupFromUser(java.lang.String userName)
public boolean contains(java.lang.String name)
UsersRepository
contains in interface UsersRepositoryname - the name to check in the repository
public boolean test(java.lang.String name,
java.lang.String testPassword)
UsersRepository
test in interface UsersRepositoryname - the name of the user to be testedtestPassword - the password to be tested
public int countUsers()
UsersRepository
countUsers in interface UsersRepositorypublic java.lang.String getDomains()
public void dispose()
throws java.lang.Exception
java.lang.Exception - if an error is encountered during shutdown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||