public interface SecurityService
| Modifier and Type | Method and Description |
|---|---|
int |
changePassword(String sid,
long userId,
String oldPassword,
String newPassword)
Changes the password of a user
|
void |
deleteGroup(String sid,
long groupId)
Deletes an existing group with the given identifier.
|
void |
deleteUser(String sid,
long userId)
Deletes an existing user with the given identifier.
|
WSGroup |
getGroup(String sid,
long groupId)
Gets group metadata of an existing group with the given identifier.
|
WSUser |
getUser(String sid,
long userId)
Gets user metadata of an existing user with the given identifier.
|
WSUser |
getUserByUsername(String sid,
String username)
Gets user metadata of an existing user with the given username.
|
WSGroup[] |
listGroups(String sid)
Gets group metadata of all existing groups.
|
WSUser[] |
listUsers(String sid)
Gets metadata of all existing users.
|
long |
storeGroup(String sid,
WSGroup group)
Create/Update a group.
|
long |
storeUser(String sid,
WSUser user)
Create/Update a user.
|
WSUser[] listUsers(String sid) throws Exception
sid - Session identifier. Must be an administrator.ExceptionWSGroup[] listGroups(String sid) throws Exception
sid - Session identifier. Must be an administrator.Exceptionlong storeUser(String sid, WSUser user) throws Exception
sid - Session identifier. Must be an administrator.user - Web service value object containing the user's metadataExceptionlong storeGroup(String sid, WSGroup group) throws Exception
sid - Session identifier. Must be an administrator.group - Web service value object containing the group's metadataExceptionvoid deleteUser(String sid, long userId) throws Exception
sid - Session identifier. Must be an administrator.userId - The user idExceptionvoid deleteGroup(String sid, long groupId) throws Exception
sid - Session identifier. Must be an administrator.groupId - The group idExceptionint changePassword(String sid, long userId, String oldPassword, String newPassword) throws Exception
userId - The user Identifier. Must be an administrator.oldPassword - can be nullnewPassword - ExceptionWSUser getUser(String sid, long userId) throws Exception
sid - Session identifieruserId - The user idExceptionWSUser getUserByUsername(String sid, String username) throws Exception
sid - Session identifierusername - The user nameExceptionCopyright © 2008-2014 Logical Objects. All Rights Reserved.