public class Permission extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Permission.PermissionLinks |
Modifier and Type | Field and Description |
---|---|
Permission.PermissionLinks |
_links |
String |
description |
Integer |
id |
String |
name |
String |
product |
Integer |
version |
Constructor and Description |
---|
Permission(Map<String,Object> permissionData) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
toMap()
Converts the Permission object's fields into a map representation.
|
String |
toString() |
void |
update(Map<String,Object> permissionData)
Updates the fields of this
Permission based on the provided permission data. |
public Permission.PermissionLinks _links
public String description
public Integer id
public String name
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> permissionData)
Permission
based on the provided permission data.permissionData
- a Map<String, Object>
containing role attributes to update.
name
: the permission name.product
: the permission product. One of confm, userm, recordm, integrationm, elasticsearch.description
: the permission description.Copyright © 2021 Cult Of Bits, lda