Interface UserService
@Path("/security/user")
@Consumes({"application/xml","application/json"})
@Produces({"application/xml","application/json"})
public interface UserService
Manages users in XL Deploy's internal user repository. Use this service only if you're not connected to an external user repository like LDAP.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new user.void
Deletes the user.listUserNames
(String username, com.xebialabs.deployit.engine.api.dto.Paging paging, com.xebialabs.deployit.engine.api.dto.Ordering order) Returns the user details without the password.void
modifyPassword
(String username, User user) Changes the password of the indicated user.Returns the user details without the password.validatePassword
(User user)
-
Method Details
-
create
Creates a new user.- Parameters:
username
- the login nameuser
- 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.
- Permission:
- security#edit
-
read
Returns the user details without the password.- Parameters:
username
- the login name of the user.- Returns:
- the details of the user.
- Permission:
- security#edit
-
listUserNames
@GET List<String> listUserNames(@QueryParam("username") String username, @BeanParam com.xebialabs.deployit.engine.api.dto.Paging paging, @QueryParam("order") com.xebialabs.deployit.engine.api.dto.Ordering order) Returns the user details without the password.- Returns:
- the details of the user.
- Permission:
- security#edit
-
modifyPassword
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.- RestDetails:
- Username should be the same as the username in the URL path.
- Permission:
- security#edit
-
validatePassword
-
delete
Deletes the user.- Parameters:
username
- the login name of the user.- Permission:
- security#edit
-