Class PrivilegeOverrideRequest
java.lang.Object
org.apache.gravitino.dto.requests.PrivilegeOverrideRequest
- All Implemented Interfaces:
RESTMessage,RESTRequest
Represents a request to update a role by overriding its securable objects.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for PrivilegeOverrideRequest.PrivilegeOverrideRequest(SecurableObjectDTO[] overrides) Creates a new PrivilegeOverrideRequest. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates thePrivilegeOverrideRequestrequest.
-
Constructor Details
-
PrivilegeOverrideRequest
public PrivilegeOverrideRequest()Default constructor for PrivilegeOverrideRequest. (Used for Jackson deserialization.) -
PrivilegeOverrideRequest
Creates a new PrivilegeOverrideRequest.- Parameters:
overrides- The securable objects to override for the role.
-
-
Method Details
-
validate
Validates thePrivilegeOverrideRequestrequest.- Specified by:
validatein interfaceRESTMessage- Throws:
IllegalArgumentException- If the request is invalid, this exception is thrown.
-