org.kuali.student.enrollment.class2.courseoffering.service.impl
Class ManageSOCViewHelperServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
      extended by org.kuali.student.enrollment.class2.courseoffering.service.impl.ManageSOCViewHelperServiceImpl
All Implemented Interfaces:
Serializable, ViewHelperService, ManageSOCViewHelperService

public class ManageSOCViewHelperServiceImpl
extends ViewHelperServiceImpl
implements ManageSOCViewHelperService

See Also:
Serialized Form

Constructor Summary
ManageSOCViewHelperServiceImpl()
           
 
Method Summary
 void allowSOCFinalEdit(ManageSOCForm socForm)
          This method changes the SOC state to FINALEDIT so that the departments can make final edits to their COs
 void buildModel(ManageSOCForm socForm)
          Builds the model for the UI.
 void changeSOCState(SocInfo socInfo, String stateKey, String message)
          This method changes the state of SOC.
 void closeSOC(ManageSOCForm socForm)
          This method allows the PUBLISHED SOCs to be closed.
protected  String formatScheduleDate(Date date)
           
protected  AcademicCalendarService getAcalService()
           
protected  CourseOfferingSetService getCourseOfferingSetService()
           
protected  String getSocPublishingStatus(SocInfo info)
           
protected  String getSocSchedulingStatus(SocInfo info)
           
 StateService getStateService()
           
 List<TermInfo> getTermByCode(String termCode)
           
protected  String getTimeDiffUI(Date dateOne, Date dateTwo)
          This calculates the time difference for display.
protected  void highlightAndGreyTextHistories(ManageSOCForm socForm)
          Highlight and grey color History entries.
 void lockSOC(ManageSOCForm socForm)
          This will lock the SOC state to LOCKED so that the departments cant make any changes to the CO/FO/AOs.
 void publishSOC(ManageSOCForm socForm)
          This method changes the SOC state to PUBLISHING.
 void startMassScheduling(ManageSOCForm socForm)
           
 
Methods inherited from class org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
addClientSideStateForComponent, addCustomContainerComponents, addLine, applyAuthorizationAndPresentationLogic, applyDefaultValues, applyDefaultValuesForCollectionLine, buildClientSideStateScript, buildGrowlScript, buildInquiryLink, cleanViewAfterRender, findNestedDictionaryAttribute, getCommonContext, getConfigurationService, getDataDictionaryService, getExpressionEvaluatorService, getPreModelContext, getViewDictionaryService, initializeDataFieldFromDataDictionary, invokeMethodFinalizer, logAndThrowRuntime, performAddLineValidation, performApplyModel, performComponentApplyModel, performComponentFinalize, performComponentInitialization, performComponentLifecycle, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performDeleteLineValidation, performFinalize, performInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAfterAddLine, processAfterDeleteLine, processAfterSaveLine, processAnyRemoteFieldsHolder, processBeforeAddLine, processBeforeSaveLine, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults, retrieveEditModesAndActionFlags, runComponentModifiers, setConfigurationService, setDataDictionaryService, setExpressionEvaluatorService, setViewContext, setViewDictionaryService, syncClientSideStateForComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.uif.service.ViewHelperService
applyDefaultValuesForCollectionLine, buildInquiryLink, cleanViewAfterRender, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults
 

Constructor Detail

ManageSOCViewHelperServiceImpl

public ManageSOCViewHelperServiceImpl()
Method Detail

getTermByCode

public List<TermInfo> getTermByCode(String termCode)
                             throws Exception
Specified by:
getTermByCode in interface ManageSOCViewHelperService
Throws:
Exception

buildModel

public void buildModel(ManageSOCForm socForm)
Builds the model for the UI. 1. It gets the SOC for the user entered term and builds the state change history details (ManageSOCStatusHistory). 2. Sort the state history entries (ManageSOCStatusHistory implements Comparable) 3. Iterate all the history entries and mark each one for UI highlight and grey text (UX requirement) 4. Calculates the process duration for both scheduling and publishing

Specified by:
buildModel in interface ManageSOCViewHelperService
Parameters:
socForm - SOC form

highlightAndGreyTextHistories

protected void highlightAndGreyTextHistories(ManageSOCForm socForm)
Highlight and grey color History entries.

Parameters:
socForm -

getTimeDiffUI

protected String getTimeDiffUI(Date dateOne,
                               Date dateTwo)
This calculates the time difference for display. Generates a time difference string in the format hh:mm

Parameters:
dateOne -
dateTwo -
Returns:
formatted date String (hh:mm)

lockSOC

public void lockSOC(ManageSOCForm socForm)
This will lock the SOC state to LOCKED so that the departments cant make any changes to the CO/FO/AOs. Once we change the state, disable the 'LOCK Set' button

Specified by:
lockSOC in interface ManageSOCViewHelperService
Parameters:
socForm - SOC form

allowSOCFinalEdit

public void allowSOCFinalEdit(ManageSOCForm socForm)
This method changes the SOC state to FINALEDIT so that the departments can make final edits to their COs

Specified by:
allowSOCFinalEdit in interface ManageSOCViewHelperService
Parameters:
socForm - SOC form

publishSOC

public void publishSOC(ManageSOCForm socForm)
This method changes the SOC state to PUBLISHING. This will be processed by mass publishing process and it changes the state to PUBLISHED

Specified by:
publishSOC in interface ManageSOCViewHelperService
Parameters:
socForm - SOC form

closeSOC

public void closeSOC(ManageSOCForm socForm)
This method allows the PUBLISHED SOCs to be closed.

Specified by:
closeSOC in interface ManageSOCViewHelperService
Parameters:
socForm - SOC form

changeSOCState

public void changeSOCState(SocInfo socInfo,
                           String stateKey,
                           String message)
This method changes the state of SOC. This is called to change the SOC state to locked,finaledits,publishing and closed.

Parameters:
socInfo - SOCInfo
stateKey -

formatScheduleDate

protected String formatScheduleDate(Date date)

getSocSchedulingStatus

protected String getSocSchedulingStatus(SocInfo info)

getAcalService

protected AcademicCalendarService getAcalService()

getCourseOfferingSetService

protected CourseOfferingSetService getCourseOfferingSetService()

getStateService

public StateService getStateService()

startMassScheduling

public void startMassScheduling(ManageSOCForm socForm)
Specified by:
startMassScheduling in interface ManageSOCViewHelperService

getSocPublishingStatus

protected String getSocPublishingStatus(SocInfo info)


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