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.Exception
WSGroup[] listGroups(String sid) throws Exception
sid
- Session identifier. Must be an administrator.Exception
long storeUser(String sid, WSUser user) throws Exception
sid
- Session identifier. Must be an administrator.user
- Web service value object containing the user's metadataException
long storeGroup(String sid, WSGroup group) throws Exception
sid
- Session identifier. Must be an administrator.group
- Web service value object containing the group's metadataException
void deleteUser(String sid, long userId) throws Exception
sid
- Session identifier. Must be an administrator.userId
- The user idException
void deleteGroup(String sid, long groupId) throws Exception
sid
- Session identifier. Must be an administrator.groupId
- The group idException
int changePassword(String sid, long userId, String oldPassword, String newPassword) throws Exception
userId
- The user Identifier. Must be an administrator.oldPassword
- can be nullnewPassword
- Exception
WSUser getUser(String sid, long userId) throws Exception
sid
- Session identifieruserId
- The user idException
WSUser getUserByUsername(String sid, String username) throws Exception
sid
- Session identifierusername
- The user nameException
Copyright © 2008-2014 Logical Objects. All Rights Reserved.