|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.core.LocalUsersRepository
public class LocalUsersRepository
Field Summary |
---|
Fields inherited from interface org.apache.james.services.UsersRepository |
---|
ROLE, USER |
Constructor Summary | |
---|---|
LocalUsersRepository()
|
Method Summary | |
---|---|
void |
addUser(java.lang.String name,
java.lang.Object attributes)
Adds a user to the repository with the specified attributes. |
boolean |
addUser(java.lang.String username,
java.lang.String password)
Adds a user to the repository with the specified password |
boolean |
addUser(User user)
Adds a user to the repository with the specified User object. |
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. |
int |
countUsers()
Returns a count of the users in the repository. |
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 |
removeUser(java.lang.String name)
Removes a user from the repository |
void |
service(org.apache.avalon.framework.service.ServiceManager serviceManager)
|
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 LocalUsersRepository()
Method Detail |
---|
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
public boolean addUser(User user)
UsersRepository
addUser
in interface UsersRepository
user
- the user to be added
public void addUser(java.lang.String name, java.lang.Object attributes)
UsersRepository
addUser
in interface UsersRepository
name
- the name of the user to be addedattributes
- see decriptionpublic boolean addUser(java.lang.String username, java.lang.String password)
UsersRepository
addUser
in interface UsersRepository
username
- the username of the user to be addedpassword
- the password of the user to add
public User getUserByName(java.lang.String name)
UsersRepository
getUserByName
in interface UsersRepository
name
- the name of the user to retrieve
public User getUserByNameCaseInsensitive(java.lang.String name)
UsersRepository
getUserByNameCaseInsensitive
in interface UsersRepository
name
- the name of the user to retrieve
public java.lang.String getRealName(java.lang.String name)
UsersRepository
getRealName
in interface UsersRepository
name
- the name to case-correct
public boolean updateUser(User user)
UsersRepository
updateUser
in interface UsersRepository
public void removeUser(java.lang.String name)
UsersRepository
removeUser
in interface UsersRepository
name
- the user to remove from the repositorypublic boolean contains(java.lang.String name)
UsersRepository
contains
in interface UsersRepository
name
- the name to check in the repository
public boolean containsCaseInsensitive(java.lang.String name)
UsersRepository
containsCaseInsensitive
in interface UsersRepository
name
- the name to check in the repository
public boolean test(java.lang.String name, java.lang.String password)
UsersRepository
test
in interface UsersRepository
name
- the name of the user to be testedpassword
- the password to be tested
public int countUsers()
UsersRepository
countUsers
in interface UsersRepository
public java.util.Iterator list()
UsersRepository
list
in interface UsersRepository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |