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 Details

    • UserDTO

      public UserDTO()
  • Method Details

    • assignPojoValues

      public UserDTO assignPojoValues(org.keycloak.representations.idm.UserRepresentation pojo)
      Description copied from interface: IObjectDTO
      Assigns values from the given POJO to the desired DTO.
      Specified by:
      assignPojoValues in interface IObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO>
    • isValidStandardView

      public Boolean isValidStandardView()
      Description copied from interface: IObjectDTO
      Checks if only the fields for the standard view are filled.
      Specified by:
      isValidStandardView in interface IObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO>
    • toReducedStandardView

      public UserDTO toReducedStandardView()
      Description copied from interface: IObjectDTO
      Reduces an Object to its minimal view.
      Specified by:
      toReducedStandardView in interface IObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO>
    • toRepresentationString

      public String toRepresentationString()
      Converts the UserDTO into a string representation.
      Specified by:
      toRepresentationString in interface IObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO>
      Returns:
      the string representation of this DTO
    • validate

      public Boolean validate()
      Description copied from interface: IObjectDTO
      Checks if mandatory fields are filled.
      Specified by:
      validate in interface IObjectDTO<org.keycloak.representations.idm.UserRepresentation,UserDTO>