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

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

public class CourseAssembler
extends Object
implements BOAssembler<CourseInfo,CluInfo>

Assembler for CourseInfo. Provides assemble and disassemble operation on CourseInfo from/to CluInfo and other base DTOs

Author:
Kuali Student Team

Constructor Summary
CourseAssembler()
           
 
Method Summary
 CourseInfo assemble(CluInfo clu, CourseInfo courseInfo, boolean shallowBuild, ContextInfo contextInfo)
          This method assembles the business DTO from its base DTO.
 BaseDTOAssemblyNode<CourseInfo,CluInfo> disassemble(CourseInfo course, 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
 void setAtpService(AtpService atpService)
           
 void setCluAssemblerUtils(CluAssemblerUtils cluAssemblerUtils)
           
 void setCluService(CluService cluService)
           
 void setCourseJointAssembler(CourseJointAssembler courseJointAssembler)
           
 void setDefaultCreditIncrement(float defaultCreditIncrement)
           
 void setFormatAssembler(FormatAssembler formatAssembler)
           
 void setLoAssembler(LoAssembler loAssembler)
           
 void setLoService(LearningObjectiveService loService)
           
 void setLrcService(LRCService lrcService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CourseAssembler

public CourseAssembler()
Method Detail

assemble

public CourseInfo assemble(CluInfo clu,
                           CourseInfo courseInfo,
                           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<CourseInfo,CluInfo>
Parameters:
clu - Base DTO that corresponds to the business DTO
courseInfo - 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<CourseInfo,CluInfo> disassemble(CourseInfo course,
                                                           BaseDTOAssemblyNode.NodeOperation operation,
                                                           ContextInfo contextInfo)
                                                    throws AssemblyException,
                                                           PermissionDeniedException
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<CourseInfo,CluInfo>
Parameters:
course - 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
PermissionDeniedException

setCluService

public void setCluService(CluService cluService)

setFormatAssembler

public void setFormatAssembler(FormatAssembler formatAssembler)

setCourseJointAssembler

public void setCourseJointAssembler(CourseJointAssembler courseJointAssembler)

setLoAssembler

public void setLoAssembler(LoAssembler loAssembler)

setLoService

public void setLoService(LearningObjectiveService loService)

setCluAssemblerUtils

public void setCluAssemblerUtils(CluAssemblerUtils cluAssemblerUtils)

setLrcService

public void setLrcService(LRCService lrcService)

setAtpService

public void setAtpService(AtpService atpService)

setDefaultCreditIncrement

public void setDefaultCreditIncrement(float defaultCreditIncrement)


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