org.kuali.student.lum.program.service.assembler
Class CredentialProgramAssembler
java.lang.Object
org.kuali.student.lum.program.service.assembler.CredentialProgramAssembler
- All Implemented Interfaces:
- BOAssembler<CredentialProgramInfo,CluInfo>
public class CredentialProgramAssembler
- extends Object
- implements BOAssembler<CredentialProgramInfo,CluInfo>
Method Summary |
CredentialProgramInfo |
assemble(CluInfo clu,
CredentialProgramInfo credentialProgram,
boolean shallowBuild)
This method assembles the business DTO from its base DTO. |
BaseDTOAssemblyNode<CredentialProgramInfo,CluInfo> |
disassemble(CredentialProgramInfo credential,
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 |
disassembleCorePrograms(CredentialProgramInfo credential,
BaseDTOAssemblyNode.NodeOperation operation,
BaseDTOAssemblyNode<CredentialProgramInfo,CluInfo> result)
|
private void |
disassembleLearningObjectives(CredentialProgramInfo credential,
BaseDTOAssemblyNode.NodeOperation operation,
BaseDTOAssemblyNode<CredentialProgramInfo,CluInfo> result)
|
private void |
disassembleResultOptions(CredentialProgramInfo credential,
BaseDTOAssemblyNode.NodeOperation operation,
BaseDTOAssemblyNode<CredentialProgramInfo,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
programAssemblerUtils
private ProgramAssemblerUtils programAssemblerUtils
cluAssemblerUtils
private CluAssemblerUtils cluAssemblerUtils
luService
private LuService luService
CredentialProgramAssembler
public CredentialProgramAssembler()
assemble
public CredentialProgramInfo assemble(CluInfo clu,
CredentialProgramInfo credentialProgram,
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<CredentialProgramInfo,CluInfo>
- Parameters:
clu
- Base DTO that corresponds to the business DTOcredentialProgram
- 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<CredentialProgramInfo,CluInfo> disassemble(CredentialProgramInfo credential,
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<CredentialProgramInfo,CluInfo>
- Parameters:
credential
- 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
disassembleResultOptions
private void disassembleResultOptions(CredentialProgramInfo credential,
BaseDTOAssemblyNode.NodeOperation operation,
BaseDTOAssemblyNode<CredentialProgramInfo,CluInfo> result)
throws AssemblyException
- Throws:
AssemblyException
disassembleLearningObjectives
private void disassembleLearningObjectives(CredentialProgramInfo credential,
BaseDTOAssemblyNode.NodeOperation operation,
BaseDTOAssemblyNode<CredentialProgramInfo,CluInfo> result)
throws AssemblyException
- Throws:
AssemblyException
disassembleCorePrograms
private void disassembleCorePrograms(CredentialProgramInfo credential,
BaseDTOAssemblyNode.NodeOperation operation,
BaseDTOAssemblyNode<CredentialProgramInfo,CluInfo> result)
throws AssemblyException
- Throws:
AssemblyException
setProgramAssemblerUtils
public void setProgramAssemblerUtils(ProgramAssemblerUtils programAssemblerUtils)
setLuService
public void setLuService(LuService luService)
setCluAssemblerUtils
public void setCluAssemblerUtils(CluAssemblerUtils cluAssemblerUtils)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.