Package org.trustdeck.dto
Class UserDTO
java.lang.Object
org.trustdeck.dto.UserDTO
- All Implemented Interfaces:
IObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO>
@Scope("prototype")
public class UserDTO
extends Object
implements IObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO>
Data Transfer Object (DTO) for an user. This class represents the user's
details such as user ID, username, first name, last name, email, federation,
and federation ID.
- Author:
- Eric Wündisch, Armin Müller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignPojoValues(org.keycloak.representations.idm.UserRepresentation pojo) Assigns values from the given POJO to the desired DTO.Checks if only the fields for the standard view are filled.Reduces an Object to its minimal view.Converts the UserDTO into a string representation.validate()Checks if mandatory fields are filled.
-
Constructor Details
-
UserDTO
public UserDTO()
-
-
Method Details
-
assignPojoValues
Description copied from interface:IObjectDTOAssigns values from the given POJO to the desired DTO.- Specified by:
assignPojoValuesin interfaceIObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO>
-
isValidStandardView
Description copied from interface:IObjectDTOChecks if only the fields for the standard view are filled.- Specified by:
isValidStandardViewin interfaceIObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO>
-
toReducedStandardView
Description copied from interface:IObjectDTOReduces an Object to its minimal view.- Specified by:
toReducedStandardViewin interfaceIObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO>
-
toRepresentationString
Converts the UserDTO into a string representation.- Specified by:
toRepresentationStringin interfaceIObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO> - Returns:
- the string representation of this DTO
-
validate
Description copied from interface:IObjectDTOChecks if mandatory fields are filled.- Specified by:
validatein interfaceIObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO>
-