Package | Description |
---|---|
org.salespointframework.useraccount |
User account management.
|
Modifier and Type | Method and Description |
---|---|
static Role |
Role.of(String name)
Creates a new
Role instance with the given name. |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.util.Streamable<Role> |
UserAccount.getRoles() |
Modifier and Type | Method and Description |
---|---|
boolean |
UserAccount.add(Role role)
Adds a
Role to the UserAccount . |
int |
Role.compareTo(Role other) |
UserAccount |
UserAccountManager.create(String userName,
String password,
Role... roles)
Creates a new
UserAccount and persists it right away. |
UserAccount |
UserAccountManager.create(String userName,
String password,
String emailAddress,
Role... roles)
Creates a new
UserAccount and persists it right away. |
boolean |
UserAccount.hasRole(Role role)
Checks if a
UserAccount has a specific Role |
boolean |
UserAccount.remove(Role role)
Removes a
Role from a UserAccount . |
Copyright © 2019. All rights reserved.