public class CourseOfferingCreateMaintainableImpl extends CourseOfferingMaintainableImpl implements Maintainable
Constructor and Description |
---|
CourseOfferingCreateMaintainableImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addFormatOffering(CourseOfferingCreateWrapper wrapper)
Adds a format offering.
|
protected static String |
convertCourseFinalExamTypeToCourseOfferingFinalExamType(String courseFinalExamType)
Services needs to come up with a standard way to represent final exams.
|
void |
copyJointFormatOfferings(CourseOfferingCreateWrapper wrapper)
This method copies all the selected joint format offerings and creates format offering for the
main course as well as for the selected joint courses.
|
protected CourseOfferingInfo |
createCourseOfferingInfo(String termId,
CourseInfo courseInfo,
String courseOfferingSuffix,
CourseOfferingInfo courseOffering)
This method creates the CourseOffering for a course and for a specific term.
|
protected void |
createFormatOfferings(CourseOfferingCreateWrapper wrapper)
This method creates format offerings for all the format selected by the user.
|
protected void |
createJointCOs(CourseOfferingCreateWrapper wrapper)
This method creates all the Course Offerings for joint courses.
|
FormatInfo |
getMatchingFormatInfo(CourseInfo courseInfoToSearch,
FormatInfo formatInfoToMatchWith)
This method iterates all the
FormatInfo in a CourseInfo to match with the passed it FormatInfo . |
void |
loadCourseJointInfos(CourseOfferingCreateWrapper wrapper,
String viewId)
This method loads the wrapper details for the joint courses
|
void |
processAfterNew(MaintenanceDocument document,
Map<String,String[]> requestParameters)
Sets a default maintenace document description and if term code exists in the request parameter, set it to the wrapper.
|
void |
processCollectionDeleteLine(View view,
Object model,
String collectionPath,
int lineIndex)
This is overridden from KRAD to implement deleting the format from the joint courses.
|
List<String> |
retrieveCourseCodes(String targetTermCode,
String catalogCourseCode)
The premise of this is rather simple.
|
void |
saveDataObject()
Overrides from KRAD to handle saving the DTOs
|
collectActivityTypeKeyValues, getFormatShortAndLongNames, getTypeName, loadCrossListedCOs, populateFinalExamDriverTypes, populateFormatNames, populateGradeRosterLevelTypes, processAfterDeleteLine, processCollectionAddBlankLine
deleteDataObject, doRouteStatusChange, generateMaintenanceLocks, getCustomLockDescriptor, getDataObject, getDataObjectAuthorizationService, getDataObjectClass, getDataObjectMetaDataService, getDocumentDictionaryService, getDocumentNumber, getDocumentTitle, getDocumentTypeName, getEncryptionService, getLockingDocumentId, getLookupService, getMaintenanceAction, getMaintenanceDocumentService, getPersistableBusinessObject, getWorkflowEngineDocumentIdsToLock, isExternalBusinessObject, isLockable, isNotesEnabled, isOldDataObjectInDocument, prepareExternalBusinessObject, prepareForSave, processAfterAddLine, processAfterCopy, processAfterEdit, processAfterPost, processAfterRetrieve, retrieveObjectForEditOrCopy, setDataObject, setDataObjectAuthorizationService, setDataObjectClass, setDataObjectMetaDataService, setDocumentDictionaryService, setDocumentNumber, setEncryptionService, setLookupService, setMaintenanceAction, setMaintenanceDocumentService, setupNewFromExisting, useCustomLockDescriptors
addCustomContainerComponents, addLine, adjustIdIfNecessary, applyAuthorizationAndPresentationLogic, applyDefaultValues, applyDefaultValuesForCollectionLine, buildClientSideStateScript, buildExportTableData, buildExportTableRow, buildGrowlScript, buildInquiryLink, cleanViewAfterRender, findNestedDictionaryAttribute, getBusinessObjectService, getCommonContext, getConfigurationService, getDataDictionaryService, getExportTableFormatOptions, getExpressionEvaluator, getPersistenceService, getPersistenceStructureService, getPreModelContext, getViewDictionaryService, initializeDataFieldFromDataDictionary, invokeMethodFinalizer, logAndThrowRuntime, performAddLineValidation, performApplyModel, performComponentApplyModel, performComponentFinalize, performComponentInitialization, performComponentLifecycle, performCustomApplyModel, performCustomFinalize, performCustomInitialization, performDeleteLineValidation, performFinalize, performInitialization, populateDefaultValueForField, populateViewFromRequestParameters, processAfterSaveLine, processAnyRemoteFieldsHolder, processBeforeAddLine, processBeforeSaveLine, processCollectionAddLine, processCollectionSaveLine, processMultipleValueLookupResults, refreshReferences, retrieveEditModesAndActionFlags, runComponentModifiers, setBusinessObjectService, setConfigurationService, setDataDictionaryService, setExpressionEvaluator, setPersistenceService, setPersistenceStructureService, setViewContext, setViewDictionaryService, spawnSubLifecyle, syncClientSideStateForComponent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteDataObject, doRouteStatusChange, generateMaintenanceLocks, getCustomLockDescriptor, getDataObject, getDataObjectClass, getDocumentTitle, getLockingDocumentId, getMaintenanceAction, getPersistableBusinessObject, getWorkflowEngineDocumentIdsToLock, isExternalBusinessObject, isLockable, isNotesEnabled, isOldDataObjectInDocument, prepareExternalBusinessObject, prepareForSave, processAfterCopy, processAfterEdit, processAfterPost, processAfterRetrieve, retrieveObjectForEditOrCopy, setDataObject, setDataObjectClass, setDocumentNumber, setMaintenanceAction, setupNewFromExisting, useCustomLockDescriptors
applyDefaultValuesForCollectionLine, buildExportTableData, buildInquiryLink, cleanViewAfterRender, getCommonContext, getExpressionEvaluator, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionAddBlankLine, processCollectionAddLine, processCollectionSaveLine, processMultipleValueLookupResults, refreshReferences, spawnSubLifecyle
public CourseOfferingCreateMaintainableImpl()
public void processAfterNew(MaintenanceDocument document, Map<String,String[]> requestParameters)
processAfterNew
in interface Maintainable
processAfterNew
in class MaintainableImpl
public void saveDataObject()
saveDataObject
in interface Maintainable
saveDataObject
in class MaintainableImpl
protected CourseOfferingInfo createCourseOfferingInfo(String termId, CourseInfo courseInfo, String courseOfferingSuffix, CourseOfferingInfo courseOffering) throws Exception
termId
- courseing offering created for this termcourseInfo
- this is the course info for which this mehtod is going to create course offeringcourseOfferingSuffix
- the suffix entered by the userException
- throws any of the services exception from the service callprotected static String convertCourseFinalExamTypeToCourseOfferingFinalExamType(String courseFinalExamType)
courseFinalExamType
- course final exam typeprotected void createFormatOfferings(CourseOfferingCreateWrapper wrapper)
CourseOfferingCreateWrapper.formatOfferingWrappers
list holds all the formats for the joint courses
as well (just to display the list at the ui), this method skips those formats here.wrapper
- CourseOfferingCreateWrapperprotected void createJointCOs(CourseOfferingCreateWrapper wrapper) throws Exception
wrapper
- CourseOfferingCreateWrapperException
public void loadCourseJointInfos(CourseOfferingCreateWrapper wrapper, String viewId) throws Exception
wrapper
- CourseOfferingCreateWrapperException
- throws one of the services exceptionspublic void addFormatOffering(CourseOfferingCreateWrapper wrapper)
public void copyJointFormatOfferings(CourseOfferingCreateWrapper wrapper)
wrapper
- course offering wrapperpublic void processCollectionDeleteLine(View view, Object model, String collectionPath, int lineIndex)
processCollectionDeleteLine
in interface ViewHelperService
processCollectionDeleteLine
in class ViewHelperServiceImpl
public FormatInfo getMatchingFormatInfo(CourseInfo courseInfoToSearch, FormatInfo formatInfoToMatchWith)
FormatInfo
in a CourseInfo
to match with the passed it FormatInfo
.
There is no id match here. It simply iterates all the formats and match the activities count and type. If all the
activity types matches, it returns that FormatInfo
courseInfoToSearch
- course info to search for a matching formatformatInfoToMatchWith
- format info to match withpublic List<String> retrieveCourseCodes(String targetTermCode, String catalogCourseCode) throws InvalidParameterException, MissingParameterException, PermissionDeniedException, OperationFailedException
InvalidParameterException
MissingParameterException
PermissionDeniedException
OperationFailedException
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.