Class RoleGrantRequest
java.lang.Object
org.apache.gravitino.dto.requests.RoleGrantRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Represents a request to grant roles to the user or the group.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for RoleGrantRequest.RoleGrantRequest
(List<String> roleNames) Constructor for RoleGrantRequest. -
Method Summary
-
Constructor Details
-
RoleGrantRequest
Constructor for RoleGrantRequest.- Parameters:
roleNames
- The roleName for the RoleGrantRequest.
-
RoleGrantRequest
public RoleGrantRequest()Default constructor for RoleGrantRequest.
-
-
Method Details
-
validate
Validates the fields of the request.- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
- if the role names is not set or empty.
-