public class UserService extends Object
Constructor and Description |
---|
UserService() |
Modifier and Type | Method and 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 user
|
User |
get(String sessionId,
String userId)
Get a
User object by its identifier |
String |
getUserIdByLogin(String sessionId,
String login)
Get a user identifier by its login
|
void |
setPassword(String sessionId,
String userId,
String password)
Change a user's password
|
void |
update(String sessionId,
User user)
Update a user's data.
|
public String add(String sessionId, User user, String password) throws WebServicePortalFault
sessionId
- session identifieruser
- user data to be addedpassword
- password of user being addedWebServicePortalFault
- if the operation failed.public void update(String sessionId, User user) throws WebServicePortalFault
sessionId
- session identifieruser
- user data to be updatedWebServicePortalFault
- if the operation failed.public void delete(String sessionId, String userId) throws WebServicePortalFault
sessionId
- session identifieruserId
- identifier of user to be deletedWebServicePortalFault
- if the operation failed.public User get(String sessionId, String userId) throws WebServicePortalFault
User
object by its identifiersessionId
- session identifieruserId
- identifier of the user to getWebServicePortalFault
- if the operation failed.public String getUserIdByLogin(String sessionId, String login) throws WebServicePortalFault
sessionId
- session identifierlogin
- user loginWebServicePortalFault
- if the operation failed.public void setPassword(String sessionId, String userId, String password) throws WebServicePortalFault
sessionId
- session identifieruserId
- user identifierpassword
- new user's passwordWebServicePortalFault
- if the operation failed.LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.