com.xebialabs.deployit.engine.api
Interface UserService


public interface UserService

Manages users in Deployit's internal user repository. Use this service only if you're not connected to an external user repository like LDAP.


Method Summary
 User create(java.lang.String username, User user)
          Creates a new user.
 void delete(java.lang.String username)
          Deletes the user.
 void modifyPassword(java.lang.String username, User user)
          Changes the password of the indicated user.
 User read(java.lang.String username)
          Returns the user details without the password.
 

Method Detail

create

User create(java.lang.String username,
            User user)
Creates a new user.

Parameters:
username - the login name
user - the details of the user, containing username and new password. Username in here should be the same as the username in the URL path.
Returns:
the created user, without the password.

read

User read(java.lang.String username)
Returns the user details without the password.

Parameters:
username - the login name of the user.
Returns:
the details of the user.

modifyPassword

void modifyPassword(java.lang.String username,
                    User user)
Changes the password of the indicated user.

Parameters:
username - the login name of the user.
user - the details of the user, containing username and new password. Username in here should be the same as the username in the URL path.

delete

void delete(java.lang.String username)
Deletes the user.

Parameters:
username - the login name of the user.