| 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. |
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 © 2018. All rights reserved.