|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
User |
createUser(java.lang.String name,
java.lang.String password,
java.lang.String realEmail)
Creates a new user with the specified name. |
User |
findUserById(java.lang.Object id)
Retrieve a user by its id. |
User |
findUserById(java.lang.String id)
Retrieve a user by its id. |
User |
findUserByUserName(java.lang.String userName)
Retrieve a user by its name. |
java.util.Set |
findUsers(int offset,
int limit)
Get a range of users. |
java.util.Set |
findUsersFilteredByUserName(java.lang.String filter,
int offset,
int limit)
Get a range of users. |
PreferencesGroup |
getPreferencesGroup(User user)
Deprecated. this will be detached from the UserModule interfaces in next versions |
int |
getUserCount()
Returns the number of users. |
void |
removeUser(java.lang.Object id)
Remove a user. |
| Method Detail |
public User findUserByUserName(java.lang.String userName) throws java.lang.IllegalArgumentException, ModuleException, NoSuchUserException
userName - the user name
java.lang.IllegalArgumentException
ModuleException
NoSuchUserExceptionpublic User findUserById(java.lang.Object id) throws java.lang.IllegalArgumentException, ModuleException, NoSuchUserException
id - the user id
java.lang.IllegalArgumentException - if the id is null
ModuleException
NoSuchUserExceptionpublic User findUserById(java.lang.String id) throws java.lang.IllegalArgumentException, ModuleException, NoSuchUserException
id - the user id
java.lang.IllegalArgumentException - if the id is null or not in the good format
ModuleException
NoSuchUserExceptionpublic User createUser(java.lang.String name, java.lang.String password, java.lang.String realEmail) throws java.lang.IllegalArgumentException, ModuleException
name - the user name
java.lang.IllegalArgumentException
ModuleException
public void removeUser(java.lang.Object id)
throws java.lang.IllegalArgumentException,
ModuleException
id - the user id
java.lang.IllegalArgumentException
ModuleException
public java.util.Set findUsers(int offset,
int limit)
throws java.lang.IllegalArgumentException,
ModuleException
offset - the offset of the first result to retrievelimit - the maximum number of users to retrieve
java.lang.IllegalArgumentException
ModuleException
public java.util.Set findUsersFilteredByUserName(java.lang.String filter,
int offset,
int limit)
throws ModuleException
filter - a string filter applied to the user name.offset - the offset of the frist result to retrievelimit - the maximum number of users to retrieve
ModuleException
public int getUserCount()
throws java.lang.IllegalArgumentException,
ModuleException
java.lang.IllegalArgumentException
ModuleExceptionpublic PreferencesGroup getPreferencesGroup(User user)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||