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

java.lang.Object
  extended by org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
      extended by org.kuali.rice.krad.maintenance.MaintainableImpl
          extended by org.kuali.student.enrollment.uif.service.impl.KSMaintainableImpl
              extended by org.kuali.student.enrollment.class2.courseoffering.service.impl.ActivityOfferingMaintainableImpl
All Implemented Interfaces:
Serializable, Maintainable, ViewHelperService, ActivityOfferingMaintainable, KSMaintainable

public class ActivityOfferingMaintainableImpl
extends KSMaintainableImpl
implements ActivityOfferingMaintainable

See Also:
Serialized Form

Constructor Summary
ActivityOfferingMaintainableImpl()
           
 
Method Summary
 boolean addScheduleRequestComponent(ActivityOfferingWrapper activityOfferingWrapper)
           
 void applyDefaultValuesForCollectionLine(View view, Object model, CollectionGroup collectionGroup, Object line)
           
protected  CourseOfferingService getCourseOfferingService()
           
protected  CourseOfferingSetService getCourseOfferingSetService()
           
protected  CourseService getCourseService()
           
protected  LuiService getLuiService()
           
protected  ActivityOfferingScheduleHelperImpl getScheduleHelper()
           
protected  SchedulingService getSchedulingService()
           
protected  SearchService getSearchService()
           
 StateService getStateService()
           
 TypeService getTypeService()
           
protected  void loadColocatedAOs(ActivityOfferingWrapper wrapper)
           
protected  boolean performAddLineValidation(View view, CollectionGroup collectionGroup, Object model, Object addLine)
          Performs validation on the new collection line before it is added to the corresponding collection
 void populateColocatedAOs(InputField field, MaintenanceDocumentForm form)
           
protected  void processAfterAddLine(View view, CollectionGroup collectionGroup, Object model, Object addLine, boolean isValidLine)
           
 void processAfterNew(MaintenanceDocument document, Map<String,String[]> requestParameters)
           
protected  void processBeforeAddLine(View view, CollectionGroup collectionGroup, Object model, Object addLine)
          Hook for service overrides to process the new collection line before it is added to the collection
 void processCollectionAddLine(View view, Object model, String collectionPath)
           
 void processCollectionDeleteLine(View view, Object model, String collectionPath, int lineIndex)
           
 List<String> retrieveActivityOfferingCode(String termId, String courseOfferingCode, String activityOfferingCode)
           
 List<BuildingInfo> retrieveBuildingInfo(String buildingCode)
           
 List<String> retrieveCourseOfferingCode(String termId, String courseOfferingCode)
           
 Object retrieveObjectForEditOrCopy(MaintenanceDocument document, Map<String,String> dataObjectKeys)
           
protected  void saveColocatedAOs(ActivityOfferingWrapper wrapper)
          This method handles the logic around the colo saving.
 void saveDataObject()
           
protected  boolean validateNewColocatedActivity(ColocatedActivity colo, ActivityOfferingWrapper activityOfferingWrapper)
           
 
Methods inherited from class org.kuali.student.enrollment.uif.service.impl.KSMaintainableImpl
convertServiceExceptionsToUI, createContextInfo, getHelper, getStateInfo, getTypeInfo, setHelperClasses
 
Methods inherited from class org.kuali.rice.krad.maintenance.MaintainableImpl
deleteDataObject, doRouteStatusChange, generateMaintenanceLocks, getBusinessObjectService, getCustomLockDescriptor, getDataObject, getDataObjectAuthorizationService, getDataObjectClass, getDataObjectMetaDataService, getDocumentDictionaryService, getDocumentNumber, getDocumentTitle, getDocumentTypeName, getEncryptionService, getLockingDocumentId, getLookupService, getMaintenanceAction, getMaintenanceDocumentService, getWorkflowEngineDocumentIdsToLock, isExternalBusinessObject, isNotesEnabled, isOldDataObjectInDocument, prepareExternalBusinessObject, prepareForSave, processAfterAddLine, processAfterCopy, processAfterDeleteLine, processAfterEdit, processAfterPost, processAfterRetrieve, setBusinessObjectService, setDataObject, setDataObjectAuthorizationService, setDataObjectClass, setDataObjectMetaDataService, setDocumentDictionaryService, setDocumentNumber, setEncryptionService, setLookupService, setMaintenanceAction, setMaintenanceDocumentService, setupNewFromExisting, useCustomLockDescriptors
 
Methods inherited from class org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl
addClientSideStateForComponent, addCustomContainerComponents, addLine, adjustIdIfNecessary, applyAuthorizationAndPresentationLogic, applyDefaultValues, buildClientSideStateScript, buildGrowlScript, buildInquiryLink, cleanViewAfterRender, findNestedDictionaryAttribute, getCommonContext, getConfigurationService, getDataDictionaryService, getExpressionEvaluatorService, getPreModelContext, getViewDictionaryService, initializeDataFieldFromDataDictionary, invokeMethodFinalizer, logAndThrowRuntime, performApplyModel, performComponentApplyModel, performComponentFinalize, performComponentInitialization, performComponentLifecycle, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performDeleteLineValidation, performFinalize, performInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAfterSaveLine, processAnyRemoteFieldsHolder, processBeforeSaveLine, processCollectionAddBlankLine, 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.maintenance.Maintainable
deleteDataObject, doRouteStatusChange, generateMaintenanceLocks, getCustomLockDescriptor, getDataObject, getDataObjectClass, getDocumentTitle, getLockingDocumentId, getMaintenanceAction, getWorkflowEngineDocumentIdsToLock, isExternalBusinessObject, isNotesEnabled, isOldDataObjectInDocument, prepareExternalBusinessObject, prepareForSave, processAfterCopy, processAfterEdit, processAfterPost, processAfterRetrieve, setDataObject, setDataObjectClass, setDocumentNumber, setMaintenanceAction, setupNewFromExisting, useCustomLockDescriptors
 
Methods inherited from interface org.kuali.rice.krad.uif.service.ViewHelperService
buildInquiryLink, cleanViewAfterRender, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionAddBlankLine, processCollectionSaveLine, processMultipleValueLookupResults
 

Constructor Detail

ActivityOfferingMaintainableImpl

public ActivityOfferingMaintainableImpl()
Method Detail

saveDataObject

public void saveDataObject()
Specified by:
saveDataObject in interface Maintainable
Overrides:
saveDataObject in class MaintainableImpl

saveColocatedAOs

protected void saveColocatedAOs(ActivityOfferingWrapper wrapper)
This method handles the logic around the colo saving.

If the AO is marked for colocation, following should be done 1. If max enrollment is shared, update all the AOs in the colo set with the user entered seat details We save the AOs later once all the save operation on the current AO is done successfully 2. If max enrollment is maintained individually, just update the enrollment information on the current AO only. 3. Create/Update Colo Set If the AO is not marked for colocation and the colo set already exists, just delete the current AO from the colo set

Parameters:
wrapper -

addScheduleRequestComponent

public boolean addScheduleRequestComponent(ActivityOfferingWrapper activityOfferingWrapper)
Specified by:
addScheduleRequestComponent in interface ActivityOfferingMaintainable

retrieveObjectForEditOrCopy

public Object retrieveObjectForEditOrCopy(MaintenanceDocument document,
                                          Map<String,String> dataObjectKeys)
Specified by:
retrieveObjectForEditOrCopy in interface Maintainable
Overrides:
retrieveObjectForEditOrCopy in class MaintainableImpl

loadColocatedAOs

protected void loadColocatedAOs(ActivityOfferingWrapper wrapper)
                         throws Exception
Throws:
Exception

applyDefaultValuesForCollectionLine

public void applyDefaultValuesForCollectionLine(View view,
                                                Object model,
                                                CollectionGroup collectionGroup,
                                                Object line)
Specified by:
applyDefaultValuesForCollectionLine in interface ViewHelperService
Overrides:
applyDefaultValuesForCollectionLine in class ViewHelperServiceImpl
See Also:
ViewHelperService.applyDefaultValuesForCollectionLine(org.kuali.rice.krad.uif.view.View, Object, org.kuali.rice.krad.uif.container.CollectionGroup, Object)

processAfterNew

public void processAfterNew(MaintenanceDocument document,
                            Map<String,String[]> requestParameters)
Specified by:
processAfterNew in interface Maintainable
Overrides:
processAfterNew in class MaintainableImpl

processCollectionAddLine

public void processCollectionAddLine(View view,
                                     Object model,
                                     String collectionPath)
Specified by:
processCollectionAddLine in interface ViewHelperService
Overrides:
processCollectionAddLine in class ViewHelperServiceImpl
See Also:
ViewHelperService.processCollectionAddLine(org.kuali.rice.krad.uif.view.View, Object, String)

processAfterAddLine

protected void processAfterAddLine(View view,
                                   CollectionGroup collectionGroup,
                                   Object model,
                                   Object addLine,
                                   boolean isValidLine)

performAddLineValidation

protected boolean performAddLineValidation(View view,
                                           CollectionGroup collectionGroup,
                                           Object model,
                                           Object addLine)
Description copied from class: ViewHelperServiceImpl
Performs validation on the new collection line before it is added to the corresponding collection

Overrides:
performAddLineValidation in class ViewHelperServiceImpl
Parameters:
view - - view instance that the action was taken on
collectionGroup - - collection group component for the collection
model - - object instance that contain's the views data
addLine - - new line instance to validate
Returns:
boolean true if the line is valid and it should be added to the collection, false if it was not valid and should not be added to the collection

validateNewColocatedActivity

protected boolean validateNewColocatedActivity(ColocatedActivity colo,
                                               ActivityOfferingWrapper activityOfferingWrapper)

retrieveBuildingInfo

public List<BuildingInfo> retrieveBuildingInfo(String buildingCode)

retrieveCourseOfferingCode

public List<String> retrieveCourseOfferingCode(String termId,
                                               String courseOfferingCode)

populateColocatedAOs

public void populateColocatedAOs(InputField field,
                                 MaintenanceDocumentForm form)

retrieveActivityOfferingCode

public List<String> retrieveActivityOfferingCode(String termId,
                                                 String courseOfferingCode,
                                                 String activityOfferingCode)

processBeforeAddLine

protected void processBeforeAddLine(View view,
                                    CollectionGroup collectionGroup,
                                    Object model,
                                    Object addLine)
Description copied from class: ViewHelperServiceImpl
Hook for service overrides to process the new collection line before it is added to the collection

Overrides:
processBeforeAddLine in class ViewHelperServiceImpl
Parameters:
view - - view instance that is being presented (the action was taken on)
collectionGroup - - collection group component for the collection the line will be added to
model - - object instance that contain's the views data
addLine - - the new line instance to be processed

processCollectionDeleteLine

public void processCollectionDeleteLine(View view,
                                        Object model,
                                        String collectionPath,
                                        int lineIndex)
Specified by:
processCollectionDeleteLine in interface ViewHelperService
Overrides:
processCollectionDeleteLine in class ViewHelperServiceImpl
See Also:
ViewHelperService.processCollectionDeleteLine(org.kuali.rice.krad.uif.view.View, Object, String, int)

getTypeService

public TypeService getTypeService()

getStateService

public StateService getStateService()

getCourseOfferingService

protected CourseOfferingService getCourseOfferingService()

getCourseService

protected CourseService getCourseService()

getCourseOfferingSetService

protected CourseOfferingSetService getCourseOfferingSetService()

getScheduleHelper

protected ActivityOfferingScheduleHelperImpl getScheduleHelper()

getSearchService

protected SearchService getSearchService()

getLuiService

protected LuiService getLuiService()

getSchedulingService

protected SchedulingService getSchedulingService()


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