|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
User |
createUser(java.lang.String userName,
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. |
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 IdentityException, java.lang.IllegalArgumentException, NoSuchUserException
userName
- the user name
IdentityException
java.lang.IllegalArgumentException
NoSuchUserException
public User findUserById(java.lang.Object id) throws IdentityException, java.lang.IllegalArgumentException, NoSuchUserException
id
- the user id
java.lang.IllegalArgumentException
- if the id is null
IdentityException
NoSuchUserException
public User findUserById(java.lang.String id) throws IdentityException, java.lang.IllegalArgumentException, NoSuchUserException
id
- the user id
java.lang.IllegalArgumentException
- if the id is null or not in the good format
IdentityException
NoSuchUserException
public User createUser(java.lang.String userName, java.lang.String password, java.lang.String realEmail) throws IdentityException, java.lang.IllegalArgumentException
userName
-
IdentityException
java.lang.IllegalArgumentException
public void removeUser(java.lang.Object id) throws IdentityException, java.lang.IllegalArgumentException
id
- the user id
IdentityException
java.lang.IllegalArgumentException
public java.util.Set findUsers(int offset, int limit) throws IdentityException, java.lang.IllegalArgumentException
offset
- the offset of the first result to retrievelimit
- the maximum number of users to retrieve
IdentityException
java.lang.IllegalArgumentException
public java.util.Set findUsersFilteredByUserName(java.lang.String filter, int offset, int limit) throws IdentityException, java.lang.IllegalArgumentException
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
IdentityException
java.lang.IllegalArgumentException
public int getUserCount() throws IdentityException, java.lang.IllegalArgumentException
IdentityException
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |