public interface UserServiceInterface extends Remote
| Modifier and Type | Method and Description |
|---|---|
User |
createUser(User user)
Creates a new
User. |
User[] |
createUsers(User[] users)
Creates new
User objects. |
Role[] |
getAllRoles()
Returns the
Role objects that are defined for the users
of the
network. |
User |
getCurrentUser()
Returns the current
User. |
User |
getUser(Long userId)
Returns the
User uniquely identified by the given ID. |
UserPage |
getUsersByStatement(Statement filterStatement)
|
UpdateResult |
performUserAction(UserAction userAction,
Statement filterStatement)
Performs actions on
User objects that match the given
Statement.query. |
User |
updateUser(User user)
Updates the specified
User. |
User[] |
updateUsers(User[] users)
Updates the specified
User objects. |
User createUser(User user) throws RemoteException, ApiException
User.
The following fields are required:
user - the user to createRemoteExceptionApiExceptionUser[] createUsers(User[] users) throws RemoteException, ApiException
User objects.users - the users to createRemoteExceptionApiExceptionRole[] getAllRoles() throws RemoteException, ApiException
Role objects that are defined for the users
of the
network.RemoteExceptionApiExceptionUser getCurrentUser() throws RemoteException, ApiException
User.RemoteExceptionApiExceptionUser getUser(Long userId) throws RemoteException, ApiException
User uniquely identified by the given ID.userId - The optional ID of the user. For current user set to
null.User uniquely identified by the given IDRemoteExceptionApiExceptionUserPage getUsersByStatement(Statement filterStatement) throws RemoteException, ApiException
UserPage of User objects that satisfy
the given
Statement.query. The following fields are supported
for filtering:
| PQL Property | Object Property |
|---|---|
email |
UserRecord.email |
id |
UserRecord.id |
name |
UserRecord.name |
roleId |
UserRecord.roleId
|
rolename |
UserRecord.roleName
|
status |
ACTIVE if User.isActive is true; INACTIVE
otherwise |
filterStatement - a Publisher Query Language statement used to
filter
a set of usersRemoteExceptionApiExceptionUpdateResult performUserAction(UserAction userAction, Statement filterStatement) throws RemoteException, ApiException
User objects that match the given
Statement.query.userAction - the action to performfilterStatement - a Publisher Query Language statement used to
filter
a set of usersRemoteExceptionApiExceptionUser updateUser(User user) throws RemoteException, ApiException
User.user - the user to updateRemoteExceptionApiExceptionUser[] updateUsers(User[] users) throws RemoteException, ApiException
User objects.users - the users to updateRemoteExceptionApiExceptionCopyright © 2013. All Rights Reserved.