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