lumis.portal.webservice.user
Class UserService

Package class diagram package UserService
java.lang.Object
  extended by lumis.portal.webservice.user.UserService

public class UserService
extends Object

Web Service class for User operations.

Since:
4.0.9

Constructor Summary
UserService()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserService

public UserService()
Method Detail

add

public String add(String sessionId,
                  User user,
                  String password)
           throws PortalException
Add a user to portal and returns its identifier.

Parameters:
sessionId - session identifier
user - user data to be added
password - password of user being added
Returns:
identifier (userId) of the added user
Throws:
PortalException

update

public void update(String sessionId,
                   User user)
            throws PortalException
Update a user's data.

Parameters:
sessionId - session identifier
user - user data to be updated
Throws:
PortalException

delete

public void delete(String sessionId,
                   String userId)
            throws PortalException
Delete a user

Parameters:
sessionId - session identifier
userId - identifier of user to be deleted
Throws:
PortalException

get

public User get(String sessionId,
                String userId)
         throws PortalException
Get a User object by its identifier

Parameters:
sessionId - session identifier
userId - identifier of the user to get
Returns:
user object
Throws:
PortalException

getUserIdByLogin

public String getUserIdByLogin(String sessionId,
                               String login)
                        throws PortalException
Get a user identifier by its login

Parameters:
sessionId - session identifier
login - user login
Returns:
user identifier
Throws:
PortalException

setPassword

public void setPassword(String sessionId,
                        String userId,
                        String password)
                 throws PortalException
Change a user's password

Parameters:
sessionId - session identifier
userId - user identifier
password - new user's password
Throws:
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.