public class ARGCourseOfferingManagementViewHelperServiceImpl extends CO_AO_RG_ViewHelperServiceImpl implements ARGCourseOfferingManagementViewHelperService
roomService, schedulingService, stateService, typeService
Constructor and Description |
---|
ARGCourseOfferingManagementViewHelperServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
_performAOCompletePerClusterValidation(List<String> aoTypeKeys,
List<ActivityOfferingInfo> aoList,
ActivityOfferingClusterWrapper aoClusterWrapper,
int clusterIndex,
ContextInfo contextInfo)
This method will indicate to the user if the cluster canot be generated because the AO Set does not contain
enough activities that meet the requirements of the FormatOffering
|
void |
approveActivityOfferings(ARGCourseOfferingManagementForm form) |
void |
approveCourseOfferings(ARGCourseOfferingManagementForm form) |
void |
build_AOs_RGs_AOCs_Lists_For_TheCourseOffering(ARGCourseOfferingManagementForm form,
CourseOfferingWrapper theCourseOffering)
This method fetches, prepares and sets
activityWrapperList for View All Activities tab,
clusterResultList for View byClusters
rgResultList for View Registration Groupsall the course offerings for a term and course/subject code.
|
void |
createActivityOfferings(String formatOfferingId,
String activityId,
int noOfActivityOfferings,
ARGCourseOfferingManagementForm form) |
void |
deleteCourseOfferings(ARGCourseOfferingManagementForm form) |
void |
draftActivityOfferings(ARGCourseOfferingManagementForm form) |
List<ActivityOfferingWrapper> |
getActivityOfferingsByCourseOfferingId(String courseOfferingId,
ARGCourseOfferingManagementForm form) |
AtpService |
getAtpService() |
CourseOfferingService |
getCourseOfferingService() |
CourseService |
getCourseService() |
static org.kuali.rice.kim.api.identity.IdentityService |
getIdentityService() |
protected org.kuali.rice.kim.api.identity.entity.EntityDefaultQueryResults |
getInstructorsInfoFromKim(List<String> principalIds) |
static LprService |
getLprService() |
protected LRCService |
getLrcService() |
SearchService |
getSearchService() |
CourseOfferingSetService |
getSocService() |
void |
loadActivityOfferingsByCourseOffering(CourseOfferingInfo theCourseOfferingInfo,
ARGCourseOfferingManagementForm form) |
protected void |
loadCourseOfferings(SearchRequestInfo searchRequest,
ARGCourseOfferingManagementForm form)
This method fetches all the course offerings for a term and course/subject code.
|
void |
loadCourseOfferingsByTermAndCourseCode(String termId,
String courseCode,
ARGCourseOfferingManagementForm form)
This method loads all the course offerings for a term and course code.
|
void |
loadCourseOfferingsByTermAndSubjectCode(String termId,
String subjectCode,
ARGCourseOfferingManagementForm form)
This method loads all the course offerings for a term and subject area/code.
|
void |
loadPreviousAndNextCourseOffering(ARGCourseOfferingManagementForm form)
This method loads the previous and next course offerings for navigation purpose.
|
void |
markCourseOfferingsForScheduling(List<CourseOfferingListSectionWrapper> coWrappers,
String viewId,
String socStateKey,
boolean checkedOnly)
Notes by Bonnie: The following implementation tries to support "Approve for Scheduling" in two cases historically:
1)when some COs are checked and approve for scheduling link or button is clicked
vs.
|
void |
populateTerm(ARGCourseOfferingManagementForm form)
This method fetches the
TermInfo and validate for exact match |
protected void |
processAosData(String coId,
Map<String,ActivityOfferingClusterWrapper> clusterMap)
After the performance improvements, the clusterMap does not contain set information.
|
protected void |
processScheduleRequestsForAos(Collection<String> aoIdsWithoutSch,
Map<String,List<ScheduleRequestCalcContainer>> ao2sch,
ContextInfo contextInfo)
Add scheduling information to the map if there are no "actual" schedules already in place for a particular AO.
|
TimeSlotInfo |
toTimeSlotInfo(ScheduleCalcContainer sched) |
convertAOInfoToWrapper, getRoomService, getSchedulingService
convertServiceExceptionsToUI, createContextInfo, getHelper, getStateInfo, getStateService, getTypeInfo, getTypeService, setHelperClasses
addCustomContainerComponents, addLine, adjustIdIfNecessary, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertAOInfoToWrapper
convertServiceExceptionsToUI, createContextInfo, getStateInfo, getTypeInfo
applyDefaultValuesForCollectionLine, buildInquiryLink, cleanViewAfterRender, getCommonContext, performApplyModel, performComponentInitialization, performComponentLifecycle, performFinalize, performInitialization, populateViewFromRequestParameters, processCollectionAddBlankLine, processCollectionAddLine, processCollectionDeleteLine, processCollectionSaveLine, processMultipleValueLookupResults
public ARGCourseOfferingManagementViewHelperServiceImpl()
public void populateTerm(ARGCourseOfferingManagementForm form) throws Exception
TermInfo
and validate for exact matchpopulateTerm
in interface ARGCourseOfferingManagementViewHelperService
form
- input ARGCourseOfferingManagementFormException
public void loadCourseOfferingsByTermAndCourseCode(String termId, String courseCode, ARGCourseOfferingManagementForm form) throws Exception
loadCourseOfferingsByTermAndCourseCode
in interface ARGCourseOfferingManagementViewHelperService
termId
- Term IdcourseCode
- Course Codeform
- Input FormException
public void loadCourseOfferingsByTermAndSubjectCode(String termId, String subjectCode, ARGCourseOfferingManagementForm form) throws Exception
loadCourseOfferingsByTermAndSubjectCode
in interface ARGCourseOfferingManagementViewHelperService
termId
- term idsubjectCode
- subject areaform
- course offering management formException
public void build_AOs_RGs_AOCs_Lists_For_TheCourseOffering(ARGCourseOfferingManagementForm form, CourseOfferingWrapper theCourseOffering) throws Exception
build_AOs_RGs_AOCs_Lists_For_TheCourseOffering
in interface ARGCourseOfferingManagementViewHelperService
form
- input formtheCourseOffering
- course offeringException
protected void processScheduleRequestsForAos(Collection<String> aoIdsWithoutSch, Map<String,List<ScheduleRequestCalcContainer>> ao2sch, ContextInfo contextInfo) throws Exception
aoIdsWithoutSch
- list of aoIds without schedule informationao2sch
- map of aos to schedulescontextInfo
- @throws ExceptionException
protected void processAosData(String coId, Map<String,ActivityOfferingClusterWrapper> clusterMap) throws InvalidParameterException, MissingParameterException, DoesNotExistException, PermissionDeniedException, OperationFailedException
coId
- Course Offering IdclusterMap
- map of AoIds to AO cluster wrappersInvalidParameterException
MissingParameterException
DoesNotExistException
PermissionDeniedException
OperationFailedException
protected org.kuali.rice.kim.api.identity.entity.EntityDefaultQueryResults getInstructorsInfoFromKim(List<String> principalIds)
protected void _performAOCompletePerClusterValidation(List<String> aoTypeKeys, List<ActivityOfferingInfo> aoList, ActivityOfferingClusterWrapper aoClusterWrapper, int clusterIndex, ContextInfo contextInfo) throws Exception
aoTypeKeys
- list of AO Type KeysaoList
- List Of Activity OfferingsaoClusterWrapper
- AO ClusterclusterIndex
- Used to tack the warning message onto a particular part of the screencontextInfo
- context of the callException
public TimeSlotInfo toTimeSlotInfo(ScheduleCalcContainer sched)
protected void loadCourseOfferings(SearchRequestInfo searchRequest, ARGCourseOfferingManagementForm form) throws Exception
searchRequest
- search requestform
- input formException
Actual CO search happens here
public void loadPreviousAndNextCourseOffering(ARGCourseOfferingManagementForm form)
loadPreviousAndNextCourseOffering
in interface ARGCourseOfferingManagementViewHelperService
form
- input formpublic void createActivityOfferings(String formatOfferingId, String activityId, int noOfActivityOfferings, ARGCourseOfferingManagementForm form)
createActivityOfferings
in interface ARGCourseOfferingManagementViewHelperService
public void loadActivityOfferingsByCourseOffering(CourseOfferingInfo theCourseOfferingInfo, ARGCourseOfferingManagementForm form) throws Exception
loadActivityOfferingsByCourseOffering
in interface ARGCourseOfferingManagementViewHelperService
Exception
public List<ActivityOfferingWrapper> getActivityOfferingsByCourseOfferingId(String courseOfferingId, ARGCourseOfferingManagementForm form) throws Exception
getActivityOfferingsByCourseOfferingId
in interface ARGCourseOfferingManagementViewHelperService
Exception
public void approveCourseOfferings(ARGCourseOfferingManagementForm form) throws Exception
approveCourseOfferings
in interface ARGCourseOfferingManagementViewHelperService
Exception
public void deleteCourseOfferings(ARGCourseOfferingManagementForm form) throws Exception
deleteCourseOfferings
in interface ARGCourseOfferingManagementViewHelperService
Exception
public void approveActivityOfferings(ARGCourseOfferingManagementForm form) throws Exception
approveActivityOfferings
in interface ARGCourseOfferingManagementViewHelperService
Exception
public void draftActivityOfferings(ARGCourseOfferingManagementForm form) throws Exception
draftActivityOfferings
in interface ARGCourseOfferingManagementViewHelperService
Exception
public void markCourseOfferingsForScheduling(List<CourseOfferingListSectionWrapper> coWrappers, String viewId, String socStateKey, boolean checkedOnly) throws Exception
markCourseOfferingsForScheduling
in interface ARGCourseOfferingManagementViewHelperService
coWrappers,
- viewId, socStateKey provides list of CourseOfferings, viewId, socState.checkedOnly
- True if the CO wrapper isChecked() flag should be respected.Exception
public CourseOfferingService getCourseOfferingService()
getCourseOfferingService
in class CO_AO_RG_ViewHelperServiceImpl
public CourseService getCourseService()
protected LRCService getLrcService()
public SearchService getSearchService()
public AtpService getAtpService()
public CourseOfferingSetService getSocService()
public static org.kuali.rice.kim.api.identity.IdentityService getIdentityService()
public static LprService getLprService()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.