Class SoapSecurityService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.webservice.soap.endpoint.SoapSecurityService
- All Implemented Interfaces:
- SecurityService
Security Web Service Implementation
- Since:
- 6.1
- Author:
- Matteo Caruso - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintchangePassword(String sid, long userId, String oldPassword, String newPassword) changes the password of a user.
 0 if all is ok, 1 if the password is incorrect, 2 if the new password cannot be notified, otherwise a positive number grater than 2voiddeleteGroup(String sid, long groupId) Deletes an existing group with the given identifiervoiddeleteUser(String sid, long userId) Deletes an existing user with the given identifierGets group metadata of an existing group with the given identifierGets user metadata of an existing user with the given identifiergetUserByUsername(String sid, String username) Gets user metadata of an existing user with the given usernamelistGroups(String sid) Gets group metadata of all existing groups.Gets metadata of all existing userslongstoreGroup(String sid, WSGroup group) Creates/Updates a group.longCreates/Updates a user.Methods inherited from class com.logicaldoc.webservice.AbstractServiceconvertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
- 
Constructor Details- 
SoapSecurityServicepublic SoapSecurityService()
 
- 
- 
Method Details- 
listUserspublic List<WSUser> listUsers(String sid, String group) throws AuthenticationException, WebserviceException, PersistenceException Description copied from interface:SecurityServiceGets metadata of all existing users- Specified by:
- listUsersin interface- SecurityService
- Parameters:
- sid- identifier of the session, must be an administrator
- group- name od the group
- Returns:
- the list of users
- Throws:
- AuthenticationException- Invalid session
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
- 
listGroupsDescription copied from interface:SecurityServiceGets group metadata of all existing groups.- Specified by:
- listGroupsin interface- SecurityService
- Parameters:
- sid- identifier of the session, must be an administrator
- Returns:
- List of groups
- Throws:
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
- 
storeUserDescription copied from interface:SecurityServiceCreates/Updates a user. You can completely customize the user through a value object containing the user's metadata. The current user must be an administrator- Specified by:
- storeUserin interface- SecurityService
- Parameters:
- sid- identifier of the session, must be an administrator
- wsUser- Web service value object containing the user's metadata
- Returns:
- the identifier of the created/updated user
- Throws:
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
- 
storeGroupDescription copied from interface:SecurityServiceCreates/Updates a group. You can completely customize the group through a value object containing the group's metadata.- Specified by:
- storeGroupin interface- SecurityService
- Parameters:
- sid- Session identifier. Must be an administrator.
- group- Web service value object containing the group's metadata
- Returns:
- id of the created/updated group.
- Throws:
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
- 
deleteUserpublic void deleteUser(String sid, long userId) throws WebserviceException, PersistenceException, PermissionException Description copied from interface:SecurityServiceDeletes an existing user with the given identifier- Specified by:
- deleteUserin interface- SecurityService
- Parameters:
- sid- Session identifier. Must be an administrator
- userId- The user id
- Throws:
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
- PermissionException- The user does not have the required permission
 
- 
deleteGrouppublic void deleteGroup(String sid, long groupId) throws PermissionException, PersistenceException, WebserviceException Description copied from interface:SecurityServiceDeletes an existing group with the given identifier- Specified by:
- deleteGroupin interface- SecurityService
- Parameters:
- sid- Session identifier. Must be an administrator
- groupId- The group id
- Throws:
- PermissionException- The user does not have the required permission
- PersistenceException- Error in the database
- WebserviceException- Error in the webservice
 
- 
changePasswordpublic int changePassword(String sid, long userId, String oldPassword, String newPassword) throws WebserviceException, PersistenceException Description copied from interface:SecurityServicechanges the password of a user.
 0 if all is ok, 1 if the password is incorrect, 2 if the new password cannot be notified, otherwise a positive number grater than 2- Specified by:
- changePasswordin interface- SecurityService
- Parameters:
- sid- identifier of the session
- userId- The user Identifier. Must be an administrator.
- oldPassword- can be null
- newPassword- the new password
- Returns:
- 0 if all is ok, 1 if the password is incorrect, 2 if the new password cannot be notified, otherwise a positive number grater than 2
- Throws:
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
- 
getUserDescription copied from interface:SecurityServiceGets user metadata of an existing user with the given identifier- Specified by:
- getUserin interface- SecurityService
- Parameters:
- sid- Session identifier
- userId- The user id
- Returns:
- A value object containing the user's metadata
- Throws:
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
- 
getUserByUsernamepublic WSUser getUserByUsername(String sid, String username) throws WebserviceException, PersistenceException Description copied from interface:SecurityServiceGets user metadata of an existing user with the given username- Specified by:
- getUserByUsernamein interface- SecurityService
- Parameters:
- sid- Session identifier
- username- The user name
- Returns:
- A value object containing the user's metadata
- Throws:
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
- 
getGroupDescription copied from interface:SecurityServiceGets group metadata of an existing group with the given identifier- Specified by:
- getGroupin interface- SecurityService
- Parameters:
- sid- Session identifier
- groupId- The group id
- Returns:
- A value object containing the group's metadata
- Throws:
- WebserviceException- Error in the webservice
- PersistenceException- Error in the database
 
 
-