Class BTInterventionCancellation
java.lang.Object
overit.geocall.bl.BusinessTask<InterventionCancellationEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask<InterventionCancellationEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask<InterventionCancellationEvent>
overit.geocallapp.wfm.cee.bl.task.BTCeeManagement<InterventionCancellationEvent>
overit.geocallapp.wfm.cee.bl.intervention.task.BTInterventionCancellation
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(InterventionCancellationEvent.class)
public class BTInterventionCancellation
extends BTCeeManagement<InterventionCancellationEvent>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CeeHelperprotected booleanprotected RestClientHelperprotected Dateprotected overit.geocallapp.wfm.util.OneShotTimeSlot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(InterventionCancellationEvent event, PoolKit poolKit) protected voidprotected intprotected StringgetTimeSlotName(Long appointmentId) protected booleaninitTimeSlot(Long appointmentId) protected DBViewprotected overit.geocallapp.wfm.booking.reservation.InputParamprepareBookingCancellationInput(Long aodlId, Long saasId, PoolKit pk) protected DTOInterventionStatusChangeprepareRequest(Long appointmentId, Long interventionEventType, PoolKit pk) protected voidtryBookingCancellation(DBView appointmentsWorkorders, PoolKit pk) Methods inherited from class overit.geocallapp.wfm.cee.bl.task.BTCeeManagement
checkValidExecution, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask
getExceptionMethods inherited from class overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
helper
-
ceeHelper
-
timeSlot
protected overit.geocallapp.wfm.util.OneShotTimeSlot timeSlot -
processDate
-
externalTimeslot
protected boolean externalTimeslot
-
-
Constructor Details
-
BTInterventionCancellation
public BTInterventionCancellation()
-
-
Method Details
-
execute
protected void execute(InterventionCancellationEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classValidExecutionBusinessTask<InterventionCancellationEvent>- Throws:
DAExceptionDAValidateException
-
tryBookingCancellation
protected void tryBookingCancellation(DBView appointmentsWorkorders, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
prepareRequest
protected DTOInterventionStatusChange prepareRequest(Long appointmentId, Long interventionEventType, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadAppoinmentsWorkorders
protected DBView loadAppoinmentsWorkorders(DAOAppointments dao, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
prepareBookingCancellationInput
protected overit.geocallapp.wfm.booking.reservation.InputParam prepareBookingCancellationInput(Long aodlId, Long saasId, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getTimeSlotName
-
getTimeSlotDuration
protected int getTimeSlotDuration() -
freeTimeSlot
- Throws:
DAExceptionDAValidateException
-
initTimeSlot
- Throws:
DAExceptionDAValidateException
-