org.kuali.student.lum.workflow
Class CoursePostProcessorBase

java.lang.Object
  extended by org.kuali.student.lum.workflow.KualiStudentPostProcessorBase
      extended by org.kuali.student.lum.workflow.CoursePostProcessorBase
All Implemented Interfaces:
PostProcessor

@Transactional(readOnly=true,
               rollbackFor=java.lang.Throwable.class)
public class CoursePostProcessorBase
extends KualiStudentPostProcessorBase

A base post processor class for Course document types in Workflow.


Field Summary
private  CourseService courseService
           
private  CourseStateChangeServiceImpl courseStateChangeService
           
private static Logger LOG
           
 
Constructor Summary
CoursePostProcessorBase()
           
 
Method Summary
protected  String getCluStateForRouteStatus(String currentCluState, String newWorkflowStatusCode)
           
protected  String getCourseId(ProposalInfo proposalInfo)
           
protected  CourseService getCourseService()
           
protected  CourseStateChangeServiceImpl getCourseStateChangeService()
           
protected  String getCourseStateFromNewState(String currentCourseState, String newCourseState)
          Default behavior is to return the newCluState variable only if it differs from the currentCluState value.
protected  boolean preProcessCourseSave(IDocumentEvent iDocumentEvent, CourseInfo courseInfo)
           
protected  boolean processCustomActionTaken(ActionTakenEvent actionTakenEvent, ActionTakenValue actionTaken, ProposalInfo proposalInfo)
           
protected  boolean processCustomRouteStatusChange(DocumentRouteStatusChange statusChangeEvent, ProposalInfo proposalInfo)
           
protected  void processWithdrawActionTaken(ActionTakenEvent actionTakenEvent, ProposalInfo proposalInfo)
           
 void statementTreeViewInfoStateSetter(String courseState, Iterator<StatementTreeViewInfo> itr)
           
protected  void updateCourse(IDocumentEvent iDocumentEvent, String courseState, CourseInfo courseInfo)
           
 
Methods inherited from class org.kuali.student.lum.workflow.KualiStudentPostProcessorBase
afterProcess, beforeProcess, doActionTaken, doDeleteRouteHeader, doRouteLevelChange, doRouteStatusChange, getDocumentIdsToLock, getPrincipalIdForSystemUser, getProposalService, getProposalStateForRouteStatus, getProposalStateFromNewState, getStateFromNewState, preProcessProposalSave, processActionTakenOnAdhocRequest, processCustomRouteLevelChange, processCustomRouteStatusSavedStatusChange, processCustomSaveActionTaken, processSuperUserDisapproveActionTaken, removeCommentAdhocPermissions, removeEditAdhocPermissions, updateProposal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG

courseService

private CourseService courseService

courseStateChangeService

private CourseStateChangeServiceImpl courseStateChangeService
Constructor Detail

CoursePostProcessorBase

public CoursePostProcessorBase()
Method Detail

processWithdrawActionTaken

protected void processWithdrawActionTaken(ActionTakenEvent actionTakenEvent,
                                          ProposalInfo proposalInfo)
                                   throws Exception
Overrides:
processWithdrawActionTaken in class KualiStudentPostProcessorBase
Throws:
Exception

processCustomActionTaken

protected boolean processCustomActionTaken(ActionTakenEvent actionTakenEvent,
                                           ActionTakenValue actionTaken,
                                           ProposalInfo proposalInfo)
                                    throws Exception
Overrides:
processCustomActionTaken in class KualiStudentPostProcessorBase
Throws:
Exception

processCustomRouteStatusChange

protected boolean processCustomRouteStatusChange(DocumentRouteStatusChange statusChangeEvent,
                                                 ProposalInfo proposalInfo)
                                          throws Exception
Overrides:
processCustomRouteStatusChange in class KualiStudentPostProcessorBase
Throws:
Exception

getCourseId

protected String getCourseId(ProposalInfo proposalInfo)
                      throws OperationFailedException
Throws:
OperationFailedException

getCluStateForRouteStatus

protected String getCluStateForRouteStatus(String currentCluState,
                                           String newWorkflowStatusCode)
Parameters:
currentCluState - - the current state set on the CLU
newWorkflowStatusCode - - the new route status code that is getting set on the workflow document
Returns:
the CLU state to set or null if the CLU does not need it's state changed

getCourseStateFromNewState

protected String getCourseStateFromNewState(String currentCourseState,
                                            String newCourseState)
Default behavior is to return the newCluState variable only if it differs from the currentCluState value. Otherwise null will be returned.


updateCourse

@Transactional(readOnly=false,
               noRollbackFor=DoesNotExistException.class,
               rollbackFor=java.lang.Throwable.class)
protected void updateCourse(IDocumentEvent iDocumentEvent,
                                                                                                                              String courseState,
                                                                                                                              CourseInfo courseInfo)
                     throws Exception
Throws:
Exception

preProcessCourseSave

protected boolean preProcessCourseSave(IDocumentEvent iDocumentEvent,
                                       CourseInfo courseInfo)

getCourseService

protected CourseService getCourseService()

getCourseStateChangeService

protected CourseStateChangeServiceImpl getCourseStateChangeService()

statementTreeViewInfoStateSetter

public void statementTreeViewInfoStateSetter(String courseState,
                                             Iterator<StatementTreeViewInfo> itr)


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