|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.user.lib.AbstractUsersRepository
org.apache.james.user.jpa.JPAUsersRepository
public class JPAUsersRepository
JPA based UserRepository
| Constructor Summary | |
|---|---|
JPAUsersRepository()
|
|
| Method Summary | |
|---|---|
boolean |
contains(String name)
Returns whether or not this user is in the repository |
int |
countUsers()
Returns a count of the users in the repository. |
protected void |
doAddUser(String username,
String password)
|
void |
doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config)
|
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. |
void |
init()
|
Iterator<String> |
list()
List users in repository. |
void |
removeUser(String name)
Removes a user from the repository |
void |
setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
Sets entity manager. |
boolean |
test(String name,
String password)
Test if user with name 'name' has password 'password'. |
void |
updateUser(User user)
Update the repository with the specified user object. |
| Methods inherited from class org.apache.james.user.lib.AbstractUsersRepository |
|---|
addUser, configure, getLogger, isValidUsername, setDomainList, setEnableVirtualHosting, setLog, supportVirtualHosting |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPAUsersRepository()
| Method Detail |
|---|
public final void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
entityManagerFactory - the entityManager to set@PostConstruct public void init()
public User getUserByName(String name)
throws UsersRepositoryException
name - the name of the user to retrieve
UsersRepositoryException
public String getRealName(String name)
throws UsersRepositoryException
name - the name to case-correct
UsersRepositoryException
public void updateUser(User user)
throws UsersRepositoryException
UsersRepositoryException
public void removeUser(String name)
throws UsersRepositoryException
name - the user to remove from the repository
UsersRepositoryException
public boolean contains(String name)
throws UsersRepositoryException
name - the name to check in the repository
UsersRepositoryException
public boolean test(String name,
String password)
throws UsersRepositoryException
name - the name of the user to be testedpassword - the password to be tested
UsersRepositoryException
public int countUsers()
throws UsersRepositoryException
UsersRepositoryException
public Iterator<String> list()
throws UsersRepositoryException
UsersRepositoryException
public void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config)
throws org.apache.commons.configuration.ConfigurationException
doConfigure in class AbstractUsersRepositoryorg.apache.commons.configuration.ConfigurationExceptionAbstractUsersRepository.doConfigure(org.apache.commons.configuration.HierarchicalConfiguration)
protected void doAddUser(String username,
String password)
throws UsersRepositoryException
doAddUser in class AbstractUsersRepositoryUsersRepositoryExceptionAbstractUsersRepository.doAddUser(java.lang.String, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||