public class RoleCreateRequest extends java.lang.Object implements RESTRequest
Constructor and Description |
---|
RoleCreateRequest()
Default constructor for RoleCreateRequest.
|
RoleCreateRequest(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> properties,
java.util.List<java.lang.String> privileges,
SecurableObjectDTO securableObject)
Creates a new RoleCreateRequest.
|
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the
RoleCreateRequest request. |
public RoleCreateRequest()
public RoleCreateRequest(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties, java.util.List<java.lang.String> privileges, SecurableObjectDTO securableObject)
name
- The name of the role.properties
- The properties of the role.securableObject
- The securable object of the role.privileges
- The privileges of the role.public void validate() throws java.lang.IllegalArgumentException
RoleCreateRequest
request.validate
in interface RESTMessage
java.lang.IllegalArgumentException
- If the request is invalid, this exception is thrown.