Package org.trustdeck.dto
Class DomainDTO
java.lang.Object
org.trustdeck.dto.DomainDTO
- All Implemented Interfaces:
IObjectDTO<IDomain,DomainDTO>
Data transfer object for the exchange of domain data.
- Author:
- Armin Müller and Eric Wündisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignPojoValues(IDomain pojo) Maps all values from jOOQ's Domain object to a DomainDTO 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
-
DomainDTO
public DomainDTO()
-
-
Method Details
-
assignPojoValues
Maps all values from jOOQ's Domain object to a DomainDTO object.- Specified by:
assignPojoValuesin interfaceIObjectDTO<IDomain,DomainDTO>
-
isValidStandardView
Description copied from interface:IObjectDTOChecks if only the fields for the standard view are filled.- Specified by:
isValidStandardViewin interfaceIObjectDTO<IDomain,DomainDTO>
-
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<IDomain,DomainDTO> - Returns:
- the altered domain DTO containing only the standard information (name, prefix, validFrom, validTo, description, superDomainName)
-
toRepresentationString
Creates a readable string representation.- Specified by:
toRepresentationStringin interfaceIObjectDTO<IDomain,DomainDTO>
-
validate
Description copied from interface:IObjectDTOChecks if mandatory fields are filled.- Specified by:
validatein interfaceIObjectDTO<IDomain,DomainDTO>
-