Class BTSlotEvaluationDataLoader
java.lang.Object
overit.geocall.bl.BusinessTask<SlotEvaluationDataLoaderEvent>
overit.geocallapp.wfm.project.bl.management.planning.task.slotevaluation.BTSlotEvaluationDataLoader
- All Implemented Interfaces:
Serializable,Tool
@Event(SlotEvaluationDataLoaderEvent.class)
public class BTSlotEvaluationDataLoader
extends BusinessTask<SlotEvaluationDataLoaderEvent>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(SlotEvaluationDataLoaderEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.List<overit.geocallapp.wfm.util.intervalli.DateTimeInterval> defineRequiredTimeranges(List<OperationTimeRange> operationTimeRanges) protected overit.geocallapp.wfm.timerange.configuration.bl.TimeRangeConfigurationloadCalendar(SlotEvaluationDataLoaderEvent event, PoolKit pk) protected Map<Long, List<BOPlanSlot>> protected Map<Long, ResourceData> loadResourceData(List<overit.geocallapp.wfm.util.intervalli.DateTimeInterval> requiredRanges, SlotEvaluationDataLoaderEvent event, PoolKit pk) protected BOWorkShiftTypeMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTSlotEvaluationDataLoader
public BTSlotEvaluationDataLoader()
-
-
Method Details
-
body
protected void body(SlotEvaluationDataLoaderEvent event, PoolKit pk) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<SlotEvaluationDataLoaderEvent>- Parameters:
event- the object upon which the task will works onpk- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
loadWorkShiftType
protected BOWorkShiftType loadWorkShiftType(SlotEvaluationDataLoaderEvent event, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadCalendar
protected overit.geocallapp.wfm.timerange.configuration.bl.TimeRangeConfiguration loadCalendar(SlotEvaluationDataLoaderEvent event, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadOperationInterventions
protected Map<Long,List<BOPlanSlot>> loadOperationInterventions(SlotEvaluationDataLoaderEvent event, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadResourceData
protected Map<Long,ResourceData> loadResourceData(List<overit.geocallapp.wfm.util.intervalli.DateTimeInterval> requiredRanges, SlotEvaluationDataLoaderEvent event, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
defineRequiredTimeranges
public List<overit.geocallapp.wfm.util.intervalli.DateTimeInterval> defineRequiredTimeranges(List<OperationTimeRange> operationTimeRanges) -
loadActivityCalendars
protected Map<Long,overit.geocallapp.wfm.timerange.configuration.bl.TimeRangeConfiguration> loadActivityCalendars(SlotEvaluationDataLoaderEvent event, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-