Class ChangeRoleRequest
Object
ChangeRoleRequest
- All Implemented Interfaces:
Serializable
The properties of the role to be changed.
Only properties that are specified in this request and have not null
values are updated.
All other properties are ignored.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeRoleRequest.Builder
builder()
protected boolean
boolean
The new description for the role.Whether the role should be disabled or not.getId()
Required. The ID of the role to be changed.getName()
The new name for the role.The new permissions to be set.int
hashCode()
void
setDescription
(String description) The new description for the role.void
setDisabled
(Boolean disabled) Whether the role should be disabled or not.void
Required. The ID of the role to be changed.void
The new name for the role.void
setPermissions
(List<Permission> permissions) The new permissions to be set.toString()
-
Constructor Details
-
ChangeRoleRequest
public ChangeRoleRequest()
-
-
Method Details
-
builder
-
getId
Required. The ID of the role to be changed. -
getName
The new name for the role. Should be unique within all roles. -
getDescription
The new description for the role. -
getPermissions
The new permissions to be set. If null, no changes are made, otherwise the current permissions are replaced with the given ones. -
getDisabled
Whether the role should be disabled or not. -
setId
Required. The ID of the role to be changed. -
setName
The new name for the role. Should be unique within all roles. -
setDescription
The new description for the role. -
setPermissions
The new permissions to be set. If null, no changes are made, otherwise the current permissions are replaced with the given ones. -
setDisabled
Whether the role should be disabled or not. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-