Package org.trustdeck.dto
Interface IObjectDTO<F,T>
- Type Parameters:
F- the type of the jOOQ-generated POJO that is backing this DTOT- the concrete DTO type implementing this interface
- All Known Implementing Classes:
AlgorithmDTO,DomainDTO,EntityInstanceDTO,EntityTypeDTO,HttpStatusDTO,PermissionDTO,ProjectDTO,ProjectImageDTO,PseudonymDTO,UserDTO
@Scope("prototype")
public interface IObjectDTO<F,T>
Interface for a proper representation object.
- Author:
- Armin Müller and Eric Wündisch
-
Method Summary
Modifier and TypeMethodDescriptionassignPojoValues(F 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.Represents an object as a string.validate()Checks if mandatory fields are filled.
-
Method Details
-
assignPojoValues
Assigns values from the given POJO to the desired DTO. -
isValidStandardView
Boolean isValidStandardView()Checks if only the fields for the standard view are filled. -
toReducedStandardView
T toReducedStandardView()Reduces an Object to its minimal view. -
toRepresentationString
String toRepresentationString()Represents an object as a string. -
validate
Boolean validate()Checks if mandatory fields are filled.
-