Class BTSaveOperationPlanningSlots
java.lang.Object
overit.geocall.bl.BusinessTask<SaveOperationPlanningSlotsEvent>
overit.geocallapp.wfm.project.bl.management.planning.task.BTSaveOperationPlanningSlots
- All Implemented Interfaces:
Serializable,Tool
@Event(SaveOperationPlanningSlotsEvent.class)
public class BTSaveOperationPlanningSlots
extends BusinessTask<SaveOperationPlanningSlotsEvent>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(SaveOperationPlanningSlotsEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected LonggetOrCreateAppointment(HashGetter hgOperation, PooledConnection conn) protected PooledConnectionprotected voidinit(SaveOperationPlanningSlotsEvent event, PoolKit pk) protected voidprotected DBViewloadBoundOperationData(HashGetter operation, PooledConnection pc) protected HashGetterloadOperationData(BOWorkOrderOperation operation, PooledConnection pc) protected LongplanAgenda(Long idSaas, Long idAagePadre, BOPlanSlot slot, PooledConnection conn) protected voidsaveOperationPlanningSlots(OperationPlanning operationPlanning, HashGetter hgOperation, PooledConnection pc) protected voidprotected voidupdateOperationStatus(HashGetter operation, PooledConnection conn) protected voidupdateWorkorderStatus(Long workorderId, PooledConnection pc) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
BOUND_OPERATIONS
- See Also:
-
operationPlannings
-
-
Constructor Details
-
BTSaveOperationPlanningSlots
public BTSaveOperationPlanningSlots()
-
-
Method Details
-
body
protected void body(SaveOperationPlanningSlotsEvent 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<SaveOperationPlanningSlotsEvent>- 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
protected void init(SaveOperationPlanningSlotsEvent event, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
savePlanningSlots
- Throws:
DAExceptionDAValidateException
-
saveOperationPlanningSlots
protected void saveOperationPlanningSlots(OperationPlanning operationPlanning, HashGetter hgOperation, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getOrCreateAppointment
protected Long getOrCreateAppointment(HashGetter hgOperation, PooledConnection conn) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadOperationData
protected HashGetter loadOperationData(BOWorkOrderOperation operation, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadBoundOperationData
protected DBView loadBoundOperationData(HashGetter operation, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getPooledConnection
- Throws:
DAException
-
planAgenda
protected Long planAgenda(Long idSaas, Long idAagePadre, BOPlanSlot slot, PooledConnection conn) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateOperationStatus
protected void updateOperationStatus(HashGetter operation, PooledConnection conn) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateWorkorderStatus
protected void updateWorkorderStatus(Long workorderId, PooledConnection pc) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
launchSavedEvent
- Throws:
DAExceptionDAValidateException
-