public interface IUserManagement extends ILifecycleComponent
Modifier and Type | Method and Description |
---|---|
java.util.List<IGrantedAuthority> |
addGrantedAuthorities(java.lang.String username,
java.util.List<java.lang.String> authorities)
Add user authorities.
|
IUser |
authenticate(java.lang.String username,
java.lang.String password)
Authenticate the given username and password.
|
IGrantedAuthority |
createGrantedAuthority(IGrantedAuthorityCreateRequest request)
Create a new granted authority.
|
IUser |
createUser(IUserCreateRequest request,
boolean encodePassword)
Create a new user based on the given input.
|
void |
deleteGrantedAuthority(java.lang.String authority)
Delete a granted authority.
|
IUser |
deleteUser(java.lang.String username,
boolean force)
Delete the user with the given username.
|
java.util.List<IGrantedAuthority> |
getGrantedAuthorities(java.lang.String username)
Get the granted authorities for a specific user.
|
IGrantedAuthority |
getGrantedAuthorityByName(java.lang.String name)
Get a granted authority by name.
|
IUser |
getUserByUsername(java.lang.String username)
Get a user given unique username.
|
IUser |
importUser(IUser user,
boolean overwrite)
Imports a user (including encrypted password) from an external system.
|
java.util.List<IGrantedAuthority> |
listGrantedAuthorities(IGrantedAuthoritySearchCriteria criteria)
List granted authorities that match the given criteria.
|
java.util.List<IUser> |
listUsers(IUserSearchCriteria criteria)
Get the list of all users that meet the given criteria.
|
java.util.List<IGrantedAuthority> |
removeGrantedAuthorities(java.lang.String username,
java.util.List<java.lang.String> authorities)
Remove user authorities.
|
IGrantedAuthority |
updateGrantedAuthority(java.lang.String name,
IGrantedAuthorityCreateRequest request)
Update a granted authority.
|
IUser |
updateUser(java.lang.String username,
IUserCreateRequest request,
boolean encodePassword)
Update details for a user.
|
canPause, findComponentsOfType, getComponentId, getComponentName, getComponentType, getCreatedDate, getLifecycleComponents, getLifecycleError, getLifecycleStatus, getLogger, initialize, initializeNestedComponent, lifecycleInitialize, lifecyclePause, lifecycleStart, lifecycleStop, lifecycleStop, logState, pause, start, startNestedComponent, stop, stop
IUser createUser(IUserCreateRequest request, boolean encodePassword) throws SiteWhereException
request
- encodePassword
- SiteWhereException
IUser importUser(IUser user, boolean overwrite) throws SiteWhereException
user
- overwrite
- SiteWhereException
IUser authenticate(java.lang.String username, java.lang.String password) throws SiteWhereException
username
- password
- SiteWhereException
IUser updateUser(java.lang.String username, IUserCreateRequest request, boolean encodePassword) throws SiteWhereException
username
- request
- encodePassword
- SiteWhereException
IUser getUserByUsername(java.lang.String username) throws SiteWhereException
username
- SiteWhereException
java.util.List<IGrantedAuthority> getGrantedAuthorities(java.lang.String username) throws SiteWhereException
username
- SiteWhereException
java.util.List<IGrantedAuthority> addGrantedAuthorities(java.lang.String username, java.util.List<java.lang.String> authorities) throws SiteWhereException
username
- authorities
- SiteWhereException
java.util.List<IGrantedAuthority> removeGrantedAuthorities(java.lang.String username, java.util.List<java.lang.String> authorities) throws SiteWhereException
username
- authorities
- SiteWhereException
java.util.List<IUser> listUsers(IUserSearchCriteria criteria) throws SiteWhereException
criteria
- SiteWhereException
IUser deleteUser(java.lang.String username, boolean force) throws SiteWhereException
username
- force
- SiteWhereException
IGrantedAuthority createGrantedAuthority(IGrantedAuthorityCreateRequest request) throws SiteWhereException
request
- SiteWhereException
IGrantedAuthority getGrantedAuthorityByName(java.lang.String name) throws SiteWhereException
name
- SiteWhereException
IGrantedAuthority updateGrantedAuthority(java.lang.String name, IGrantedAuthorityCreateRequest request) throws SiteWhereException
name
- request
- SiteWhereException
java.util.List<IGrantedAuthority> listGrantedAuthorities(IGrantedAuthoritySearchCriteria criteria) throws SiteWhereException
criteria
- SiteWhereException
void deleteGrantedAuthority(java.lang.String authority) throws SiteWhereException
authority
- SiteWhereException