public class Role extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Account |
account |
protected Long |
id |
protected Map<String,String> |
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 the role belongs to.
|
Long |
getId()
A unique identifier for the object.
|
Map<String,String> |
getName()
The name used to identify the role.
|
List<Permission> |
getPermissions()
The permissions granted to users with 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()
Whether users with this role are required to use two-factor authentication.
|
String |
toString() |
protected Account account
protected Long id
protected List<Permission> permissions
protected OffsetDateTime plannedPurgeDate
protected RoleState state
protected Boolean twoFactorRequired
protected Integer version
public Account getAccount()
public Long getId()
public List<Permission> getPermissions()
public OffsetDateTime getPlannedPurgeDate()
public RoleState getState()
public Boolean isTwoFactorRequired()
public Integer getVersion()
Copyright © 2024. All rights reserved.