org.kuali.student.lum.program.service.assembler
Class CredentialProgramAssembler

java.lang.Object
  extended by org.kuali.student.lum.program.service.assembler.CredentialProgramAssembler
All Implemented Interfaces:
BOAssembler<CredentialProgramInfo,CluInfo>

public class CredentialProgramAssembler
extends Object
implements BOAssembler<CredentialProgramInfo,CluInfo>


Field Summary
private  CluAssemblerUtils cluAssemblerUtils
           
(package private) static Logger LOG
           
private  LuService luService
           
private  ProgramAssemblerUtils programAssemblerUtils
           
 
Constructor Summary
CredentialProgramAssembler()
           
 
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
 

Field Detail

LOG

static final Logger LOG

programAssemblerUtils

private ProgramAssemblerUtils programAssemblerUtils

cluAssemblerUtils

private CluAssemblerUtils cluAssemblerUtils

luService

private LuService luService
Constructor Detail

CredentialProgramAssembler

public CredentialProgramAssembler()
Method Detail

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 DTO
credentialProgram - Reference to Business DTO
shallowBuild - 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.