public interface GlobalUserApi extends DomainUserApi
Modifier and Type | Method and Description |
---|---|
User |
createUser(String userName,
String accountName,
String email,
String hashedPassword,
String firstName,
String lastName,
CreateUserOptions... options)
Create an user for an account that already exists
|
void |
deleteUser(String id)
Delete an user with the specified ID
|
ApiKeyPair |
registerUserKeys(String userId)
This command allows a user to register for the developer API, returning a
secret key and an API key
|
User |
updateUser(String id,
UpdateUserOptions... options)
Update an user
|
disableUser, enableUser, listUsers
@Named(value="createUser") @GET @Consumes(value="application/json") User createUser(@QueryParam(value="username") String userName, @QueryParam(value="account") String accountName, @QueryParam(value="email") String email, @QueryParam(value="password") String hashedPassword, @QueryParam(value="firstname") String firstName, @QueryParam(value="lastname") String lastName, CreateUserOptions... options)
userName
- unique user nameaccountName
- Creates the user under the specified account. If no
account is specified, the username will be used as the account name.email
- hashedPassword
- Hashed password (Default is MD5). If you wish to use
any other hashing algorithm, you would need to write a custom authentication
adapter See Docs section.firstName
- lastName
- options
- optional arguments@Named(value="registerUserKeys") @GET @Consumes(value="application/json") ApiKeyPair registerUserKeys(@QueryParam(value="id") String userId)
userId
- the ID of the user@Named(value="updateUser") @GET @Consumes(value="application/json") User updateUser(@QueryParam(value="id") String id, UpdateUserOptions... options)
id
- the user IDoptions
- optional arguments@Named(value="deleteUser") @GET @Consumes(value="application/json") void deleteUser(@QueryParam(value="id") String id)
id
- user IDCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.