|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLogEnabled | +--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(String userName,
Object attributes)
Adds userName to the MemberAttribute (specified in conf.xml) of this node. |
boolean |
addUser(User user)
Update the repository with the specified user object. |
void |
compose(ComponentManager compMgr)
|
void |
configure(Configuration conf)
|
boolean |
contains(String name)
Returns whether or not this user is in the repository |
boolean |
containsCaseInsensitive(String name)
Returns whether or not this user is in the repository. |
void |
contextualize(Context context)
|
int |
countUsers()
Returns a count of the users in the repository. |
void |
dispose()
Disposes of all open directory contexts |
Object |
getAttributes(String name)
Gets the attribute for a user. |
String |
getChildDestination(String childName)
|
String |
getDomains()
|
String |
getRealName(String name)
Returns the user name of the user matching name on an equalsIgnoreCase basis. |
User |
getUserByName(String name)
Get the user object with the specified user name. |
User |
getUserByNameCaseInsensitive(String name)
Get the user object with the specified user name. |
void |
initialize()
|
Iterator |
list()
List users in repository. |
void |
removeGroupFromUser(String userName)
|
void |
removeUser(String userName)
Removes a user from the repository |
void |
setBase(String base)
|
void |
setServerRoot()
|
boolean |
test(String name,
Object attributes)
Tests a user with the appropriate attributes. |
boolean |
test(String name,
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 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(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
Contextualizable.contextualize(Context)
public void compose(ComponentManager compMgr)
Composable.compose(ComponentManager)
public void configure(Configuration conf) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
Configurable.configure(Configuration)
public void setServerRoot()
public void setBase(String base)
public void initialize() throws Exception
initialize
in interface Initializable
Exception
Initializable.initialize()
public String getChildDestination(String childName)
public Iterator list()
list
in interface UsersRepository
public boolean addUser(User user)
addUser
in interface UsersRepository
user
- the user to be added
public User getUserByName(String name)
UsersRepository
getUserByName
in interface UsersRepository
name
- the name of the user to retrieve
public User getUserByNameCaseInsensitive(String name)
UsersRepository
getUserByNameCaseInsensitive
in interface UsersRepository
name
- the name of the user to retrieve
public boolean containsCaseInsensitive(String name)
UsersRepository
containsCaseInsensitive
in interface UsersRepository
name
- the name to check in the repository
public String getRealName(String name)
UsersRepository
getRealName
in interface UsersRepository
name
- the name to case-correct
public boolean updateUser(User user)
UsersRepository
updateUser
in interface UsersRepository
public boolean test(String name, String password)
UsersRepository
test
in interface UsersRepository
name
- the name of the user to be testedpassword
- the password to be tested
public void addUser(String userName, Object attributes)
addUser
in interface UsersRepository
userName
- the name of the user to be addedattributes
- see decriptionpublic Object getAttributes(String name)
UsersRepository
getAttributes
in interface UsersRepository
public void removeUser(String userName)
UsersRepository
removeUser
in interface UsersRepository
userName
- the user to remove from the repositorypublic void removeGroupFromUser(String userName)
public boolean contains(String name)
UsersRepository
contains
in interface UsersRepository
name
- the name to check in the repository
public boolean test(String name, Object attributes)
UsersRepository
test
in interface UsersRepository
public int countUsers()
UsersRepository
countUsers
in interface UsersRepository
public String getDomains()
public void dispose() throws Exception
Exception
- if an error is encountered during shutdown
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |