Package org.trustdeck.dto
Class PseudonymDTO
java.lang.Object
org.trustdeck.dto.PseudonymDTO
- All Implemented Interfaces:
IObjectDTO<IPseudonym,PseudonymDTO>
@Scope("prototype")
public class PseudonymDTO
extends Object
implements IObjectDTO<IPseudonym,PseudonymDTO>
This class offers an Data Transfer Object (DTO) for a pseudonym.
- Author:
- Armin Müller and Eric Wündisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignPojoValues(IPseudonym pojo) Maps all values from jOOQ's Pseudonym object to a PseudonymDTO object.Checks if only the fields for the standard view are filled.This method creates a reduced standard view by setting all attributes that shouldn't be displayed by default tonull, so that they are excluded in the JSON representation.Creates a readable string representation.validate()Checks if mandatory fields are filled.
-
Constructor Details
-
PseudonymDTO
public PseudonymDTO()
-
-
Method Details
-
assignPojoValues
Maps all values from jOOQ's Pseudonym object to a PseudonymDTO object.- Specified by:
assignPojoValuesin interfaceIObjectDTO<IPseudonym,PseudonymDTO>
-
isValidStandardView
Description copied from interface:IObjectDTOChecks if only the fields for the standard view are filled.- Specified by:
isValidStandardViewin interfaceIObjectDTO<IPseudonym,PseudonymDTO>
-
toReducedStandardView
This method creates a reduced standard view by setting all attributes that shouldn't be displayed by default tonull, so that they are excluded in the JSON representation.- Specified by:
toReducedStandardViewin interfaceIObjectDTO<IPseudonym,PseudonymDTO> - Returns:
- the altered record DTO containing only the standard information (identifier, idType, psn, vFrom, vTo, domainName)
-
toRepresentationString
Creates a readable string representation.- Specified by:
toRepresentationStringin interfaceIObjectDTO<IPseudonym,PseudonymDTO>
-
validate
Description copied from interface:IObjectDTOChecks if mandatory fields are filled.- Specified by:
validatein interfaceIObjectDTO<IPseudonym,PseudonymDTO>
-