public class Role extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Role.RoleLinks |
| Modifier and Type | Field and Description |
|---|---|
Role.RoleLinks |
_links |
String |
description |
Integer |
id |
String |
name |
List<Permission> |
permissions |
String |
product |
Integer |
version |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
toMap()
Converts the Role object's fields into a map representation.
|
String |
toString() |
void |
update(Map<String,Object> roleData)
Updates the fields of this
Role based on the provided role data. |
public Role.RoleLinks _links
public String description
public Integer id
public String name
public List<Permission> permissions
public String product
public Integer version
public Map<String,Object> toMap()
Map<String, Object> containing field names as keys and their corresponding values.
If a field is null, it will still be included in the map.public void update(Map<String,Object> roleData)
Role based on the provided role data.roleData - a Map<String, Object> containing role attributes to update.
name: the role name.product: the role product. One of confm, userm, recordm, integrationm, elasticsearch.description: the role description.Copyright © 2021 Cult Of Bits, lda