| Package | Description |
|---|---|
| net.leanix.dropkit.oauth.models |
| Modifier and Type | Method and Description |
|---|---|
UserRole |
User.getRole() |
UserRole |
Principal.getRole()
Returns the role of the user in his company.
|
static UserRole |
UserRole.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserRole[] |
UserRole.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
User.isActive(UserRole role) |
boolean |
Principal.isActive(UserRole role)
Convenience method to check if user is active and has the given role.
|
void |
User.setRole(UserRole role) |
Copyright © 2016 LeanIX GmbH. All rights reserved.