public class ExamOfferingScheduleHelperImpl extends Object implements ExamOfferingScheduleHelper
| Constructor and Description |
|---|
ExamOfferingScheduleHelperImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildScheduleWrapper(ScheduleWrapper scheduleWrapper,
ScheduleRequestComponentInfo componentInfo,
CourseOfferingManagementForm theForm,
ContextInfo defaultContextInfo)
This method constructs the ScheduleWrapper for a given exam offering
|
protected ContextInfo |
createContextInfo() |
StatusInfo |
deleteScheduleRequestBulk(List<ExamOfferingWrapper> eoWrappers,
ContextInfo defaultContextInfo)
This method deletes request scheduling information for a list of exam offerings
|
TimeSlotInfo |
fetchOrCreateTimeSlot(ExamOfferingWrapper eoWrapper,
ScheduleWrapper scheduleWrapper,
ContextInfo defaultContextInfo)
This method retrieves or create a timeslot given an exam offering and its scheduling infomation
|
static boolean |
isInteger(String s) |
void |
loadScheduleRequests(ExamOfferingWrapper eoWrapper,
CourseOfferingManagementForm theForm,
ContextInfo defaultContextInfo)
This method loads the schedule requests/components.
|
void |
loadSchedules(ExamOfferingWrapper eoWrapper,
CourseOfferingManagementForm theForm,
ContextInfo defaultContextInfo) |
List<BuildingInfo> |
retrieveBuildingInfoByCode(String buildingCode,
boolean strictMatch)
Searches for buildings given a building code.
|
StatusInfo |
saveScheduleRequest(ExamOfferingWrapper eoWrapper,
ContextInfo defaultContextInfo)
This method saves the Request Scheduleing Information one exam offerings
|
StatusInfo |
saveScheduleRequestBulk(List<ExamOfferingWrapper> eoWrappers,
ContextInfo defaultContextInfo)
This method saves the Request Scheduleing Information for a list of exam offerings
|
void |
setScheduleRoomAndBuilding(ScheduleWrapper scheduleWrapper,
ScheduleRequestComponentInfo componentInfo,
ContextInfo defaultContextInfo)
This method constructs facility part of the ScheduleWrapper for a given exam offering
|
void |
setScheduleTimeSlotInfo(ScheduleWrapper scheduleWrapper,
ExamPeriodWrapper examPeriodWrapper)
This method constructs timeslot part of the ScheduleWrapper for a given exam offering
|
boolean |
validateScheduleRequest(ScheduleWrapper requestedSchedule,
String selectedCollectionPath,
String selectedLine,
ContextInfo defaultContextInfo)
This method validates the request scheduling information that a user enters
|
boolean |
validateScheduleRequestBulk(ScheduleWrapper requestedSchedule,
int clusterIndex,
int eoWrapperIndex,
boolean eoDriverPerCO,
ContextInfo defaultContextInfo)
This method validates the request scheduling information that a user enters
|
public ExamOfferingScheduleHelperImpl()
@Transactional public StatusInfo saveScheduleRequestBulk(List<ExamOfferingWrapper> eoWrappers, ContextInfo defaultContextInfo)
saveScheduleRequestBulk in interface ExamOfferingScheduleHelpereoWrappers - a list of ExamOfferingWrapper@Transactional public StatusInfo saveScheduleRequest(ExamOfferingWrapper eoWrapper, ContextInfo defaultContextInfo)
saveScheduleRequest in interface ExamOfferingScheduleHelpereoWrapper - ExamOfferingWrapperpublic TimeSlotInfo fetchOrCreateTimeSlot(ExamOfferingWrapper eoWrapper, ScheduleWrapper scheduleWrapper, ContextInfo defaultContextInfo) throws Exception
scheduleWrapper - ScheduleWrapper that wraps up request scheduling informationeoWrapper - the given exam offering wrapperExceptionpublic StatusInfo deleteScheduleRequestBulk(List<ExamOfferingWrapper> eoWrappers, ContextInfo defaultContextInfo)
eoWrappers - a list of ExamOfferingWrapperpublic void loadSchedules(ExamOfferingWrapper eoWrapper, CourseOfferingManagementForm theForm, ContextInfo defaultContextInfo)
loadSchedules in interface ExamOfferingScheduleHelperpublic void loadScheduleRequests(ExamOfferingWrapper eoWrapper, CourseOfferingManagementForm theForm, ContextInfo defaultContextInfo)
eoWrapper - ExamOfferingWrappertheForm - CourseOfferingManagementFormpublic void buildScheduleWrapper(ScheduleWrapper scheduleWrapper, ScheduleRequestComponentInfo componentInfo, CourseOfferingManagementForm theForm, ContextInfo defaultContextInfo)
scheduleWrapper - ScheduleWrapper that contains request scheduling informationcomponentInfo - ScheduleRequestComponentInfotheForm - CourseOfferingManagementFormpublic void setScheduleTimeSlotInfo(ScheduleWrapper scheduleWrapper, ExamPeriodWrapper examPeriodWrapper) throws OperationFailedException
setScheduleTimeSlotInfo in interface ExamOfferingScheduleHelperscheduleWrapper - ScheduleWrapper that contains request scheduling informationexamPeriodWrapper - ExamPeriodWrapperOperationFailedExceptionpublic void setScheduleRoomAndBuilding(ScheduleWrapper scheduleWrapper, ScheduleRequestComponentInfo componentInfo, ContextInfo defaultContextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
setScheduleRoomAndBuilding in interface ExamOfferingScheduleHelperscheduleWrapper - ScheduleWrapper that contains request scheduling informationcomponentInfo - ScheduleRequestComponentInfoDoesNotExistExceptionInvalidParameterExceptionMissingParameterExceptionOperationFailedExceptionPermissionDeniedExceptionpublic boolean validateScheduleRequestBulk(ScheduleWrapper requestedSchedule, int clusterIndex, int eoWrapperIndex, boolean eoDriverPerCO, ContextInfo defaultContextInfo)
requestedSchedule - ScheduleWrapper that contains request scheduling informationclusterIndex - the AO cluster index. It is used for error message displayeoWrapperIndex - used for error message displayeoDriverPerCO - wether or not the the EO is driver per COpublic boolean validateScheduleRequest(ScheduleWrapper requestedSchedule, String selectedCollectionPath, String selectedLine, ContextInfo defaultContextInfo)
requestedSchedule - ScheduleWrapper that contains request scheduling informationselectedCollectionPath - selectedLine - public List<BuildingInfo> retrieveBuildingInfoByCode(String buildingCode, boolean strictMatch) throws Exception
buildingCode - A building code.strictMatch - If false do a wildcard search matching at the beginning of the field. Otherwise, match exactly.Exceptionprotected ContextInfo createContextInfo()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.