Package lumis.portal.webservice.user
Class UserService
- java.lang.Object
-
- lumis.portal.webservice.user.UserService
-
public class UserService extends Object
Web Service class for User operations.- Since:
- 4.0.9
- Version:
- $Revision: 16824 $ $Date: 2015-01-23 18:49:12 -0200 (Fri, 23 Jan 2015) $
-
-
Constructor Summary
Constructors Constructor Description UserService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
add(String sessionId, User user, String password)
Add a user to portal and returns its identifier.void
delete(String sessionId, String userId)
Delete a userUser
get(String sessionId, String userId)
Get aUser
object by its identifierString
getUserIdByLogin(String sessionId, String login)
Get a user identifier by its loginvoid
setPassword(String sessionId, String userId, String password)
Change a user's passwordvoid
update(String sessionId, User user)
Update a user's data.
-
-
-
Method Detail
-
add
public String add(String sessionId, User user, String password) throws WebServicePortalFault
Add a user to portal and returns its identifier.- Parameters:
sessionId
- session identifieruser
- user data to be addedpassword
- password of user being added- Returns:
- identifier (userId) of the added user
- Throws:
WebServicePortalFault
- if the operation failed.
-
update
public void update(String sessionId, User user) throws WebServicePortalFault
Update a user's data.- Parameters:
sessionId
- session identifieruser
- user data to be updated- Throws:
WebServicePortalFault
- if the operation failed.
-
delete
public void delete(String sessionId, String userId) throws WebServicePortalFault
Delete a user- Parameters:
sessionId
- session identifieruserId
- identifier of user to be deleted- Throws:
WebServicePortalFault
- if the operation failed.
-
get
public User get(String sessionId, String userId) throws WebServicePortalFault
Get aUser
object by its identifier- Parameters:
sessionId
- session identifieruserId
- identifier of the user to get- Returns:
- user object
- Throws:
WebServicePortalFault
- if the operation failed.
-
getUserIdByLogin
public String getUserIdByLogin(String sessionId, String login) throws WebServicePortalFault
Get a user identifier by its login- Parameters:
sessionId
- session identifierlogin
- user login- Returns:
- user identifier
- Throws:
WebServicePortalFault
- if the operation failed.
-
setPassword
public void setPassword(String sessionId, String userId, String password) throws WebServicePortalFault
Change a user's password- Parameters:
sessionId
- session identifieruserId
- user identifierpassword
- new user's password- Throws:
WebServicePortalFault
- if the operation failed.
-
-