public class UserResponse extends BaseResponse
Constructor and Description |
---|
UserResponse()
Default constructor for UserResponse.
|
UserResponse(UserDTO user)
Constructor for UserResponse.
|
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the response data.
|
public UserResponse(UserDTO user)
user
- The user data transfer object.public UserResponse()
public void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
validate
in class BaseResponse
java.lang.IllegalArgumentException
- if the name or audit is not set.