public class Role extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Account |
account |
protected Long |
id |
protected DatabaseTranslatedString |
name |
protected List<Permission> |
permissions |
protected OffsetDateTime |
plannedPurgeDate |
protected RoleState |
state |
protected Boolean |
twoFactorRequired |
protected Integer |
version |
| Constructor and Description |
|---|
Role() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Account |
getAccount()
The account to which this role belongs to.
|
Long |
getId()
A unique identifier for the object.
|
DatabaseTranslatedString |
getName()
The name of this role is used to identify the role within administrative interfaces.
|
List<Permission> |
getPermissions()
Set of permissions that are granted to this role.
|
OffsetDateTime |
getPlannedPurgeDate()
The date and time when the object is planned to be permanently removed.
|
RoleState |
getState()
The object's current state.
|
Integer |
getVersion()
The version is used for optimistic locking and incremented whenever the object is updated.
|
int |
hashCode() |
Boolean |
isTwoFactorRequired()
Defines whether having been granted this role will force a user to use two-factor authentication.
|
String |
toString() |
protected Account account
protected Long id
protected DatabaseTranslatedString name
protected List<Permission> permissions
protected OffsetDateTime plannedPurgeDate
protected RoleState state
protected Boolean twoFactorRequired
protected Integer version
public Account getAccount()
public Long getId()
public DatabaseTranslatedString getName()
public List<Permission> getPermissions()
public OffsetDateTime getPlannedPurgeDate()
public RoleState getState()
public Boolean isTwoFactorRequired()
public Integer getVersion()
Copyright © 2023. All rights reserved.