public class ActivityOfferingScheduleHelperImpl extends Object implements ActivityOfferingScheduleHelper
Constructor and Description |
---|
ActivityOfferingScheduleHelperImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
addScheduleRequestComponent(ActivityOfferingWrapper activityOfferingWrapper) |
protected void |
buildScheduleWrapper(ActivityOfferingWrapper wrapper,
ScheduleWrapper scheduleWrapper,
ScheduleRequestComponentInfo componentInfo,
ContextInfo defaultContextInfo) |
protected ContextInfo |
createContextInfo() |
void |
deleteRequestedAndActualSchedules(ScheduleRequestSetInfo schSet,
String activityId,
List<String> deleteScheduleIds,
ContextInfo defaultContextInfo) |
TimeSlotInfo |
fetchOrCreateTimeSlot(ActivityOfferingWrapper aoWrapper,
ScheduleWrapper scheduleWrapper,
ContextInfo defaultContextInfo) |
List<String> |
getEndTimes(String days,
String startTime,
String timeSlotType)
This method retrieves a list of matching end times for days and startime entered by the user.
|
protected void |
loadColocatedAOs(ActivityOfferingWrapper wrapper,
ScheduleWrapper scheduleWrapper) |
void |
loadScheduleRequests(ActivityOfferingWrapper wrapper,
ContextInfo defaultContextInfo)
This method loads the schedule requests/components.
|
void |
loadSchedules(ActivityOfferingWrapper wrapper,
ContextInfo defaultContextInfo) |
void |
loadSchedulesAndComponents(ActivityOfferingWrapper wrapper,
ContextInfo defaultContextInfo) |
List<BuildingInfo> |
retrieveBuildingInfoByCode(String buildingCode)
Searches for buildings given a building code.
|
List<BuildingInfo> |
retrieveBuildingInfoByCode(String buildingCode,
boolean strictMatch)
Searches for buildings given a building code.
|
void |
savePostMSE(ActivityOfferingWrapper activityOfferingWrapper,
ContextInfo defaultContextInfo) |
void |
savePreMSE(ActivityOfferingWrapper wrapper,
ContextInfo contextInfo) |
void |
saveSchedules(ActivityOfferingWrapper wrapper,
ContextInfo defaultContextInfo) |
protected ActivityOfferingInfo |
updateScheduledActivityOffering(ActivityOfferingInfo activityOfferingInfo,
ContextInfo context) |
protected boolean |
validateNewScheduleRequest(ScheduleWrapper scheduleWrapper) |
public ActivityOfferingScheduleHelperImpl()
@Transactional public void saveSchedules(ActivityOfferingWrapper wrapper, ContextInfo defaultContextInfo)
saveSchedules
in interface ActivityOfferingScheduleHelper
public void loadSchedules(ActivityOfferingWrapper wrapper, ContextInfo defaultContextInfo)
loadSchedules
in interface ActivityOfferingScheduleHelper
public void savePostMSE(ActivityOfferingWrapper activityOfferingWrapper, ContextInfo defaultContextInfo)
public boolean addScheduleRequestComponent(ActivityOfferingWrapper activityOfferingWrapper)
protected boolean validateNewScheduleRequest(ScheduleWrapper scheduleWrapper)
public void savePreMSE(ActivityOfferingWrapper wrapper, ContextInfo contextInfo)
public TimeSlotInfo fetchOrCreateTimeSlot(ActivityOfferingWrapper aoWrapper, ScheduleWrapper scheduleWrapper, ContextInfo defaultContextInfo) throws Exception
Exception
public void loadScheduleRequests(ActivityOfferingWrapper wrapper, ContextInfo defaultContextInfo)
wrapper
- ActivityOfferingWrapperprotected void buildScheduleWrapper(ActivityOfferingWrapper wrapper, ScheduleWrapper scheduleWrapper, ScheduleRequestComponentInfo componentInfo, ContextInfo defaultContextInfo)
protected void loadColocatedAOs(ActivityOfferingWrapper wrapper, ScheduleWrapper scheduleWrapper)
public void loadSchedulesAndComponents(ActivityOfferingWrapper wrapper, ContextInfo defaultContextInfo)
protected ActivityOfferingInfo updateScheduledActivityOffering(ActivityOfferingInfo activityOfferingInfo, ContextInfo context) throws InvalidParameterException, MissingParameterException, DoesNotExistException, PermissionDeniedException, OperationFailedException, DataValidationErrorException, ReadOnlyException, VersionMismatchException
public void deleteRequestedAndActualSchedules(ScheduleRequestSetInfo schSet, String activityId, List<String> deleteScheduleIds, ContextInfo defaultContextInfo)
protected ContextInfo createContextInfo()
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.Exception
public List<BuildingInfo> retrieveBuildingInfoByCode(String buildingCode) throws Exception
buildingCode
- A building code.Exception
public List<String> getEndTimes(String days, String startTime, String timeSlotType) throws Exception
getEndTimes
in interface ActivityOfferingScheduleHelper
days
- startTime
- timeSlotType
- Exception
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.