public interface UserAccountManager
UserAccount instances.| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(UserAccount userAccount,
java.lang.String password)
Changes the passwort of the
UserAccount |
boolean |
contains(UserAccountIdentifier userAccountIdentifier)
Checks if an
UserAccount exists |
UserAccount |
create(java.lang.String userName,
java.lang.String password,
Role... roles)
Creates a new
UserAccount |
UserAccount |
create(UserAccountIdentifier userAccountIdentifier,
java.lang.String password,
Role... roles)
Deprecated.
As of release 5.3.1, replaced by
create(String, String, Role...) |
void |
disable(UserAccountIdentifier userAccountIdentifier)
Disables the
UserAccount |
void |
enable(UserAccountIdentifier userAccountIdentifier)
Enables the
UserAccount |
java.lang.Iterable<UserAccount> |
findAll()
Finds all
UserAccounts |
java.lang.Iterable<UserAccount> |
findDisabled()
Finds only disabled
UserAccounts |
java.lang.Iterable<UserAccount> |
findEnabled()
Finds only enabled
UserAccounts |
UserAccount |
get(UserAccountIdentifier userAccountIdentifier)
Returns an
UserAccount for a given identifier |
UserAccount |
save(UserAccount userAccount)
Saves the
UserAccount |
@Deprecated UserAccount create(UserAccountIdentifier userAccountIdentifier, java.lang.String password, Role... roles)
create(String, String, Role...)UserAccount create(java.lang.String userName, java.lang.String password, Role... roles)
UserAccountuserName - the unique name of the user, the name is also used as loginnamepassword - the passwordroles - zero or more rolesjava.lang.NullPointerException - if userName, password or roles is nullUserAccount get(UserAccountIdentifier userAccountIdentifier)
UserAccount for a given identifieruserAccountIdentifier - UserAccount save(UserAccount userAccount)
UserAccountuserAccount - void enable(UserAccountIdentifier userAccountIdentifier)
UserAccountuserAccountIdentifier - void disable(UserAccountIdentifier userAccountIdentifier)
UserAccountuserAccountIdentifier - void changePassword(UserAccount userAccount, java.lang.String password)
UserAccountuserAccount - password - boolean contains(UserAccountIdentifier userAccountIdentifier)
UserAccount existsuserAccountIdentifier - java.lang.Iterable<UserAccount> findAll()
UserAccountsjava.lang.Iterable<UserAccount> findEnabled()
UserAccountsjava.lang.Iterable<UserAccount> findDisabled()
UserAccounts