org.kuali.student.lum.course.service.assembler
Class ActivityAssembler

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

public class ActivityAssembler
extends Object
implements BOAssembler<ActivityInfo,CluInfo>

Assembles/Disassembles ActivityInfo DTO from/To CluInfo

Author:
Kuali Student Team

Field Summary
private  LuService luService
           
 
Constructor Summary
ActivityAssembler()
           
 
Method Summary
 ActivityInfo assemble(CluInfo clu, ActivityInfo activity, boolean shallowBuild)
          This method assembles the business DTO from its base DTO.
 BaseDTOAssemblyNode<ActivityInfo,CluInfo> disassemble(ActivityInfo activity, 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
 LuService getLuService()
           
 void setLuService(LuService luService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

luService

private LuService luService
Constructor Detail

ActivityAssembler

public ActivityAssembler()
Method Detail

assemble

public ActivityInfo assemble(CluInfo clu,
                             ActivityInfo activity,
                             boolean shallowBuild)
Description copied from interface: BOAssembler
This method assembles the business DTO from its base DTO.

Specified by:
assemble in interface BOAssembler<ActivityInfo,CluInfo>
Parameters:
clu - Base DTO that corresponds to the business DTO
activity - Reference to Business DTO
shallowBuild - boolean flag to indicate if the assembly should be shallow or deep
Returns:
Assembled business DTO

disassemble

public BaseDTOAssemblyNode<ActivityInfo,CluInfo> disassemble(ActivityInfo activity,
                                                             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<ActivityInfo,CluInfo>
Parameters:
activity - 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

setLuService

public void setLuService(LuService luService)

getLuService

public LuService getLuService()


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