public class PrivilegeRevokeRequest extends java.lang.Object implements RESTRequest
Constructor and Description |
---|
PrivilegeRevokeRequest()
Default constructor for PrivilegeRevokeRequest.
|
PrivilegeRevokeRequest(java.util.List<PrivilegeDTO> privileges)
Constructor for privilegeRevokeRequest.
|
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the fields of the request.
|
public PrivilegeRevokeRequest(java.util.List<PrivilegeDTO> privileges)
privileges
- The privileges for the PrivilegeRevokeRequest.public PrivilegeRevokeRequest()
public void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
java.lang.IllegalArgumentException
- if the privileges field is not set or empty.