Class UserListResponse
java.lang.Object
org.apache.gravitino.dto.responses.BaseResponse
org.apache.gravitino.dto.responses.UserListResponse
- All Implemented Interfaces:
RESTMessage
,RESTResponse
Represents a response containing a list of users.
-
Constructor Summary
ConstructorsConstructorDescriptionThis is the constructor that is used by Jackson deserializer to create an instance of UserListResponse.UserListResponse
(UserDTO[] users) Constructor for UserListResponse. -
Method Summary
-
Constructor Details
-
UserListResponse
Constructor for UserListResponse.- Parameters:
users
- The array of users.
-
UserListResponse
public UserListResponse()This is the constructor that is used by Jackson deserializer to create an instance of UserListResponse.
-
-
Method Details
-
validate
Validates the response data.- Specified by:
validate
in interfaceRESTMessage
- Overrides:
validate
in classBaseResponse
- Throws:
IllegalArgumentException
- if users are not set.
-