Class PolicyListResponse
java.lang.Object
org.apache.gravitino.dto.responses.BaseResponse
org.apache.gravitino.dto.responses.PolicyListResponse
- All Implemented Interfaces:
RESTMessage
,RESTResponse
Represents a response for a list of policies.
-
Constructor Summary
ConstructorsConstructorDescriptionThis is the constructor that is used by Jackson deserializer to create an instance of PolicyListResponse.PolicyListResponse
(PolicyDTO[] policies) Creates a new PolicyListResponse. -
Method Summary
-
Constructor Details
-
PolicyListResponse
Creates a new PolicyListResponse.- Parameters:
policies
- The list of policies.
-
PolicyListResponse
public PolicyListResponse()This is the constructor that is used by Jackson deserializer to create an instance of PolicyListResponse.
-
-
Method Details
-
validate
Description copied from class:BaseResponse
Validates the response code.- Specified by:
validate
in interfaceRESTMessage
- Overrides:
validate
in classBaseResponse
- Throws:
IllegalArgumentException
- if code value is negative.
-