|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.jaxrs.JaxrsCollection
ccc.api.jaxrs.UsersImpl
public class UsersImpl
Implementation of the Users
interface.
Field Summary |
---|
Fields inherited from interface ccc.api.core.Users |
---|
NAME |
Constructor Summary | |
---|---|
UsersImpl(Users users)
Constructor. |
Method Summary | |
---|---|
User |
create(User user)
Create a new user in the system. |
java.util.Collection<java.lang.String> |
listUserMetadataValuesWithKey(java.lang.String key)
Query metadata values with given key. |
PagedCollection<User> |
query(java.lang.String username,
java.lang.String email,
java.lang.String groups,
java.lang.String metadataKey,
java.lang.String metadataValue,
java.lang.String sort,
SortOrder order,
int pageNo,
int pageSize)
Query users. |
User |
retrieve(java.util.UUID userId)
Retrieve a user. |
User |
retrieveCurrent()
Returns currently logged in user. |
void |
update(java.util.UUID userId,
User delta)
Updates the user in the system. |
void |
updateCurrent(User user)
Update the email and/or password for the current user. |
void |
updateUserPassword(java.util.UUID userId,
User pu)
Update the password for the specified user. |
User |
userByLegacyId(java.lang.String legacyId)
Look up the user for a specified legacy id. |
java.lang.Boolean |
usernameExists(Username username)
Query whether the specified username is in use. |
Methods inherited from class ccc.api.jaxrs.JaxrsCollection |
---|
convertException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UsersImpl(Users users)
users
- Method Detail |
---|
public User retrieveCurrent()
retrieveCurrent
in interface Users
public User retrieve(java.util.UUID userId)
retrieve
in interface Users
userId
- The user's id.
public java.lang.Boolean usernameExists(Username username)
usernameExists
in interface Users
username
- The username to check
public User create(User user)
create
in interface Users
user
- The new user details.
public void updateUserPassword(java.util.UUID userId, User pu)
updateUserPassword
in interface Users
userId
- The user's id.pu
- New details for the user.public void updateCurrent(User user)
updateCurrent
in interface Users
user
- New details for the user.public void update(java.util.UUID userId, User delta)
update
in interface Users
userId
- The id of the user to update.delta
- The changes to apply.public User userByLegacyId(java.lang.String legacyId)
userByLegacyId
in interface Users
legacyId
- The legacy id of the user.
public java.util.Collection<java.lang.String> listUserMetadataValuesWithKey(java.lang.String key)
listUserMetadataValuesWithKey
in interface Users
key
- The key as a string.
public PagedCollection<User> query(java.lang.String username, java.lang.String email, java.lang.String groups, java.lang.String metadataKey, java.lang.String metadataValue, java.lang.String sort, SortOrder order, int pageNo, int pageSize)
query
in interface Users
username
- The username criteria.email
- The email criteria.groups
- The groups criteria.metadataKey
- The metadata key criteria.metadataValue
- The metadata value criteria.sort
- The column to sort.order
- The sort order (ASC/DESC).pageNo
- The page to display.pageSize
- The number of results per page.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |