|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface BOAssembler<E,T>
An assembler that provides assembly and disassembly of business DTO from/to their base DTO. During disassembly of business DTO, it is required that all implementations generate the id (if newly created base DTO) from UUID and use that in mapping relations. Generic Mapping: E -> Business DTO e.g. CourseInfo T -> Base DTO e.g. CluInfo It is a good practice to propagate state from the parent objects through to the children
Method Summary | |
---|---|
E |
assemble(T baseDTO,
E businessDTO,
boolean shallowBuild,
ContextInfo contextInfo)
Deprecated. This method assembles the business DTO from its base DTO. |
BaseDTOAssemblyNode<E,T> |
disassemble(E businessDTO,
BaseDTOAssemblyNode.NodeOperation operation,
ContextInfo contextInfo)
Deprecated. This method returns a collection of base DTOs and the operations that need to be performed on them in a given order |
Method Detail |
---|
E assemble(T baseDTO, E businessDTO, boolean shallowBuild, ContextInfo contextInfo) throws AssemblyException, PermissionDeniedException
baseDTO
- Base DTO that corresponds to the business DTObusinessDTO
- Reference to Business DTOshallowBuild
- boolean flag to indicate if the assembly should be shallow or deep
AssemblyException
PermissionDeniedException
BaseDTOAssemblyNode<E,T> disassemble(E businessDTO, BaseDTOAssemblyNode.NodeOperation operation, ContextInfo contextInfo) throws AssemblyException, PermissionDeniedException, InvalidParameterException, MissingParameterException, DoesNotExistException, OperationFailedException
businessDTO
- Business DTO to be disassembledisCreate
- Is the disassembly done for create
AssemblyException
PermissionDeniedException
InvalidParameterException
MissingParameterException
DoesNotExistException
OperationFailedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |