org.kuali.student.lum.program.service.assembler
Class ProgramVariationAssembler
java.lang.Object
org.kuali.student.lum.program.service.assembler.ProgramVariationAssembler
- All Implemented Interfaces:
- BOAssembler<ProgramVariationInfo,CluInfo>
public class ProgramVariationAssembler
- extends Object
- implements BOAssembler<ProgramVariationInfo,CluInfo>
- Author:
- KS
Method Summary |
ProgramVariationInfo |
assemble(CluInfo clu,
ProgramVariationInfo programVariation,
boolean shallowBuild)
This method assembles the business DTO from its base DTO. |
BaseDTOAssemblyNode<ProgramVariationInfo,CluInfo> |
disassemble(ProgramVariationInfo variation,
BaseDTOAssemblyNode.NodeOperation operation)
This method returns a collection of base DTOs and the operations that
need to be performed on them in a given order |
private void |
disassembleLearningObjectives(ProgramVariationInfo variation,
BaseDTOAssemblyNode.NodeOperation operation,
BaseDTOAssemblyNode<ProgramVariationInfo,CluInfo> result)
|
private void |
disassembleResultOptions(ProgramVariationInfo variation,
BaseDTOAssemblyNode.NodeOperation operation,
BaseDTOAssemblyNode<ProgramVariationInfo,CluInfo> result)
|
void |
setCluAssemblerUtils(CluAssemblerUtils cluAssemblerUtils)
|
void |
setLuService(LuService luService)
|
void |
setProgramAssemblerUtils(ProgramAssemblerUtils programAssemblerUtils)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
static final Logger LOG
luService
private LuService luService
cluAssemblerUtils
private CluAssemblerUtils cluAssemblerUtils
programAssemblerUtils
private ProgramAssemblerUtils programAssemblerUtils
ProgramVariationAssembler
public ProgramVariationAssembler()
assemble
public ProgramVariationInfo assemble(CluInfo clu,
ProgramVariationInfo programVariation,
boolean shallowBuild)
throws AssemblyException
- Description copied from interface:
BOAssembler
- This method assembles the business DTO from its base DTO.
- Specified by:
assemble
in interface BOAssembler<ProgramVariationInfo,CluInfo>
- Parameters:
clu
- Base DTO that corresponds to the business DTOprogramVariation
- Reference to Business DTOshallowBuild
- boolean flag to indicate if the assembly should be shallow or deep
- Returns:
- Assembled business DTO
- Throws:
AssemblyException
disassemble
public BaseDTOAssemblyNode<ProgramVariationInfo,CluInfo> disassemble(ProgramVariationInfo variation,
BaseDTOAssemblyNode.NodeOperation operation)
throws AssemblyException
- Description copied from interface:
BOAssembler
- This method returns a collection of base DTOs and the operations that
need to be performed on them in a given order
- Specified by:
disassemble
in interface BOAssembler<ProgramVariationInfo,CluInfo>
- Parameters:
variation
- Business DTO to be disassembled
- Returns:
- A sorted map of BaseDTOAssemblyNodes to be processed in the given
order. The key (Integer) is the sequence in which the nodes have
to be processed
- Throws:
AssemblyException
disassembleLearningObjectives
private void disassembleLearningObjectives(ProgramVariationInfo variation,
BaseDTOAssemblyNode.NodeOperation operation,
BaseDTOAssemblyNode<ProgramVariationInfo,CluInfo> result)
throws AssemblyException
- Throws:
AssemblyException
disassembleResultOptions
private void disassembleResultOptions(ProgramVariationInfo variation,
BaseDTOAssemblyNode.NodeOperation operation,
BaseDTOAssemblyNode<ProgramVariationInfo,CluInfo> result)
throws AssemblyException
- Throws:
AssemblyException
setLuService
public void setLuService(LuService luService)
setCluAssemblerUtils
public void setCluAssemblerUtils(CluAssemblerUtils cluAssemblerUtils)
setProgramAssemblerUtils
public void setProgramAssemblerUtils(ProgramAssemblerUtils programAssemblerUtils)
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.