org.kuali.student.r2.lum.course.service.assembler
Class FormatAssembler

java.lang.Object
  extended by org.kuali.student.r2.lum.course.service.assembler.FormatAssembler
All Implemented Interfaces:
BOAssembler<FormatInfo,CluInfo>

public class FormatAssembler
extends Object
implements BOAssembler<FormatInfo,CluInfo>

Assembler for FormatInfo. Assembles/Disassemble FormatInfo from CluInfo and other structures.

Author:
Kuali Student Team

Constructor Summary
FormatAssembler()
           
 
Method Summary
 FormatInfo assemble(CluInfo clu, FormatInfo formatInfo, boolean shallowBuild, ContextInfo contextInfo)
          This method assembles the business DTO from its base DTO.
 BaseDTOAssemblyNode<FormatInfo,CluInfo> disassemble(FormatInfo format, BaseDTOAssemblyNode.NodeOperation operation, ContextInfo contextInfo)
          This method returns a collection of base DTOs and the operations that need to be performed on them in a given order
 BOAssembler<ActivityInfo,CluInfo> getActivityAssembler()
           
 CluService getCluService()
           
 void setActivityAssembler(BOAssembler<ActivityInfo,CluInfo> activityAssembler)
           
 void setCluService(CluService cluService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatAssembler

public FormatAssembler()
Method Detail

assemble

public FormatInfo assemble(CluInfo clu,
                           FormatInfo formatInfo,
                           boolean shallowBuild,
                           ContextInfo contextInfo)
                    throws AssemblyException
Description copied from interface: BOAssembler
This method assembles the business DTO from its base DTO.

Specified by:
assemble in interface BOAssembler<FormatInfo,CluInfo>
Parameters:
clu - Base DTO that corresponds to the business DTO
formatInfo - 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<FormatInfo,CluInfo> disassemble(FormatInfo format,
                                                           BaseDTOAssemblyNode.NodeOperation operation,
                                                           ContextInfo contextInfo)
                                                    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<FormatInfo,CluInfo>
Parameters:
format - 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

getActivityAssembler

public BOAssembler<ActivityInfo,CluInfo> getActivityAssembler()

setActivityAssembler

public void setActivityAssembler(BOAssembler<ActivityInfo,CluInfo> activityAssembler)

getCluService

public CluService getCluService()

setCluService

public void setCluService(CluService cluService)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.