Class RoleCreateRequest
java.lang.Object
org.apache.gravitino.dto.requests.RoleCreateRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Represents a request to create a role.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for RoleCreateRequest.RoleCreateRequest
(String name, Map<String, String> properties, SecurableObjectDTO[] securableObjects) Creates a new RoleCreateRequest. -
Method Summary
-
Constructor Details
-
RoleCreateRequest
public RoleCreateRequest()Default constructor for RoleCreateRequest. (Used for Jackson deserialization.) -
RoleCreateRequest
public RoleCreateRequest(String name, Map<String, String> properties, SecurableObjectDTO[] securableObjects) Creates a new RoleCreateRequest.- Parameters:
name
- The name of the role.properties
- The properties of the role.securableObjects
- The securable objects of the role.
-
-
Method Details
-
validate
Validates theRoleCreateRequest
request.- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
- If the request is invalid, this exception is thrown.
-