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
UserAccount s |
java.lang.Iterable<UserAccount> |
findDisabled()
Finds only disabled
UserAccount s |
java.lang.Iterable<UserAccount> |
findEnabled()
Finds only enabled
UserAccount s |
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)
UserAccount
userName
- 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)
UserAccount
userAccount
- void enable(UserAccountIdentifier userAccountIdentifier)
UserAccount
userAccountIdentifier
- void disable(UserAccountIdentifier userAccountIdentifier)
UserAccount
userAccountIdentifier
- void changePassword(UserAccount userAccount, java.lang.String password)
UserAccount
userAccount
- password
- boolean contains(UserAccountIdentifier userAccountIdentifier)
UserAccount
existsuserAccountIdentifier
- java.lang.Iterable<UserAccount> findAll()
UserAccount
sjava.lang.Iterable<UserAccount> findEnabled()
UserAccount
sjava.lang.Iterable<UserAccount> findDisabled()
UserAccount
s