public class UserManagementRequestBuilder
extends java.lang.Object
Constructor and Description |
---|
UserManagementRequestBuilder(IUserManagement userManagement) |
Modifier and Type | Method and Description |
---|---|
IGrantedAuthority |
getAuthority(java.lang.String authority)
Get an existing authority by name.
|
IUserManagement |
getUserManagement() |
boolean |
hasAuthority(java.lang.String authority)
Indicates if the system already contains the given authority.
|
boolean |
hasUsers()
Indicates if the system has users defined.
|
java.util.List<IUser> |
listUsers()
List all users.
|
GrantedAuthorityCreateRequest.Builder |
newGrantedAuthority(java.lang.String authority)
Create builder for new granted authority request.
|
UserCreateRequest.Builder |
newUser(java.lang.String username,
java.lang.String password,
java.lang.String firstName,
java.lang.String lastName)
Create builder for new user request.
|
IGrantedAuthority |
persist(GrantedAuthorityCreateRequest.Builder builder)
Persist granted authority constructed via builder.
|
IUser |
persist(UserCreateRequest.Builder builder)
Persist user contructed via builder.
|
void |
setUserManagement(IUserManagement userManagement) |
public UserManagementRequestBuilder(IUserManagement userManagement)
public UserCreateRequest.Builder newUser(java.lang.String username, java.lang.String password, java.lang.String firstName, java.lang.String lastName)
username
- password
- firstName
- lastName
- public IUser persist(UserCreateRequest.Builder builder) throws SiteWhereException
builder
- SiteWhereException
public GrantedAuthorityCreateRequest.Builder newGrantedAuthority(java.lang.String authority)
authority
- public IGrantedAuthority persist(GrantedAuthorityCreateRequest.Builder builder) throws SiteWhereException
builder
- SiteWhereException
public IGrantedAuthority getAuthority(java.lang.String authority) throws SiteWhereException
authority
- SiteWhereException
public boolean hasAuthority(java.lang.String authority) throws SiteWhereException
authority
- SiteWhereException
public java.util.List<IUser> listUsers() throws SiteWhereException
SiteWhereException
public boolean hasUsers() throws SiteWhereException
SiteWhereException
public IUserManagement getUserManagement()
public void setUserManagement(IUserManagement userManagement)