Class BTSaveOperationSchedulingSlots
java.lang.Object
overit.geocall.bl.BusinessTask<SaveOperationSchedulingSlotsEvent>
overit.geocallapp.wfm.project.bl.management.planning.task.BTSaveOperationSchedulingSlots
- All Implemented Interfaces:
Serializable,Tool
@Event(SaveOperationSchedulingSlotsEvent.class)
public class BTSaveOperationSchedulingSlots
extends BusinessTask<SaveOperationSchedulingSlotsEvent>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidalignInterventionSchedulingSlots(Long planSlotId, PoolKit pk) protected voidprotected voidbody(SaveOperationSchedulingSlotsEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected LonggetNearestRcut(BOSchedulingSlot slot, PoolKit pk) protected PooledConnectionprotected BOSchedulingSlotgetUserSchedulingSlot(List<BOSchedulingSlot> schedulingSlots, Long user) protected voidprotected voidprotected DBViewloadSchedulingSlots(Long planSlotId, PooledConnection pc) protected voidsaveInterventionSchedulingSlots(BOWorkOrderOperation operation, ScheduledIntervention si, PoolKit pk) protected voidsaveSchedulingSlot(BOSchedulingSlot schedulingSlot, Long operationId, Long planSlotId, Long parentRcuaId, PoolKit pk) protected voidprotected voidupdateAppointentWorkorderStatus(BOWorkOrderOperation operation, BOPlanSlot planSlot, PoolKit pk) protected voidupdateSchedulingSlot(BOSchedulingSlot schedulingSlot, PoolKit pk) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
operationPlannings
-
-
Constructor Details
-
BTSaveOperationSchedulingSlots
public BTSaveOperationSchedulingSlots()
-
-
Method Details
-
body
protected void body(SaveOperationSchedulingSlotsEvent 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<SaveOperationSchedulingSlotsEvent>- 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
-
init
-
saveSchedulingSlots
- Throws:
DAExceptionDAValidateException
-
saveInterventionSchedulingSlots
protected void saveInterventionSchedulingSlots(BOWorkOrderOperation operation, ScheduledIntervention si, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
saveSchedulingSlot
protected void saveSchedulingSlot(BOSchedulingSlot schedulingSlot, Long operationId, Long planSlotId, Long parentRcuaId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateSchedulingSlot
protected void updateSchedulingSlot(BOSchedulingSlot schedulingSlot, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getUserSchedulingSlot
-
loadSchedulingSlots
protected DBView loadSchedulingSlots(Long planSlotId, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
alignWorkShiftSchedulingSlots
protected void alignWorkShiftSchedulingSlots(ScheduledIntervention si, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
alignInterventionSchedulingSlots
protected void alignInterventionSchedulingSlots(Long planSlotId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getNearestRcut
protected Long getNearestRcut(BOSchedulingSlot slot, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateAppointentWorkorderStatus
protected void updateAppointentWorkorderStatus(BOWorkOrderOperation operation, BOPlanSlot planSlot, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getPooledConnection
- Throws:
DAException
-
launchSavedEvent
- Throws:
DAExceptionDAValidateException
-