Class AddRoleRequest
Object
AddRoleRequest
- All Implemented Interfaces:
Serializable
The properties of the role to be added.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AddRoleRequest.Builderbuilder()protected booleanbooleanThe description of the role.getId()The ID of the new role.getName()Required. The name of the new role.The permissions to be granted for this role.inthashCode()booleanWhether the role should be disabled or not.booleanisGlobal()Whether the role should be a global or resource role.voidsetDescription(String description) The description of the role.voidsetDisabled(boolean disabled) Whether the role should be disabled or not.voidsetGlobal(boolean global) Whether the role should be a global or resource role.voidThe ID of the new role.voidRequired. The name of the new role.voidsetPermissions(List<Permission> permissions) The permissions to be granted for this role.toString()
-
Constructor Details
-
AddRoleRequest
public AddRoleRequest()
-
-
Method Details
-
builder
-
getId
The ID of the new role. Should be unique within all roles.It should have a format of universally unique identifier (UUID) and should not start with
00000000-0000-0000-which is a reserved prefix -
getName
Required. The name of the new role. Should be unique within all roles. -
isGlobal
public boolean isGlobal()Whether the role should be a global or resource role. -
getDescription
The description of the role. -
getPermissions
The permissions to be granted for this role. -
isDisabled
public boolean isDisabled()Whether the role should be disabled or not. -
setId
The ID of the new role. Should be unique within all roles.It should have a format of universally unique identifier (UUID) and should not start with
00000000-0000-0000-which is a reserved prefix -
setName
Required. The name of the new role. Should be unique within all roles. -
setGlobal
public void setGlobal(boolean global) Whether the role should be a global or resource role. -
setDescription
The description of the role. -
setPermissions
The permissions to be granted for this role. -
setDisabled
public void setDisabled(boolean disabled) Whether the role should be disabled or not. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-