public class SecurityServiceImpl extends AbstractService implements SecurityService
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
context| Constructor and Description |
|---|
SecurityServiceImpl() |
| 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.
|
checkAdministrator, checkDownloadEnable, checkGroup, checkPermission, checkPublished, checkReadEnable, checkWriteEnable, convertDateToString, convertStringToDate, getSettings, isWebserviceEnabled, setValidateSession, validateSessionpublic WSUser[] listUsers(String sid) throws Exception
SecurityServicelistUsers in interface SecurityServicesid - Session identifier. Must be an administrator.Exceptionpublic WSGroup[] listGroups(String sid) throws Exception
SecurityServicelistGroups in interface SecurityServicesid - Session identifier. Must be an administrator.Exceptionpublic long storeUser(String sid, WSUser user) throws Exception
SecurityServicestoreUser in interface SecurityServicesid - Session identifier. Must be an administrator.user - Web service value object containing the user's metadataExceptionpublic long storeGroup(String sid, WSGroup group) throws Exception
SecurityServicestoreGroup in interface SecurityServicesid - Session identifier. Must be an administrator.group - Web service value object containing the group's metadataExceptionpublic void deleteUser(String sid, long userId) throws Exception
SecurityServicedeleteUser in interface SecurityServicesid - Session identifier. Must be an administrator.userId - The user idExceptionpublic void deleteGroup(String sid, long groupId) throws Exception
SecurityServicedeleteGroup in interface SecurityServicesid - Session identifier. Must be an administrator.groupId - The group idExceptionpublic int changePassword(String sid, long userId, String oldPassword, String newPassword) throws Exception
SecurityServicechangePassword in interface SecurityServiceuserId - The user Identifier. Must be an administrator.oldPassword - can be nullExceptionpublic WSUser getUser(String sid, long userId) throws Exception
SecurityServicegetUser in interface SecurityServicesid - Session identifieruserId - The user idExceptionpublic WSUser getUserByUsername(String sid, String username) throws Exception
SecurityServicegetUserByUsername in interface SecurityServicesid - Session identifierusername - The user nameExceptionpublic WSGroup getGroup(String sid, long groupId) throws Exception
SecurityServicegetGroup in interface SecurityServicesid - Session identifiergroupId - The group idExceptionCopyright © 2008-2014 Logical Objects. All Rights Reserved.