Class BTVCAppointmentDefinition
java.lang.Object
overit.geocall.bl.BusinessTask<VCAppointmentDefinitionEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask<VCAppointmentDefinitionEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask<VCAppointmentDefinitionEvent>
overit.geocallapp.wfm.cee.bl.task.BTCeeManagement<VCAppointmentDefinitionEvent>
overit.geocallapp.wfm.cee.bl.vcappointment.task.BTVCAppointmentDefinition
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(VCAppointmentDefinitionEvent.class)
public class BTVCAppointmentDefinition
extends BTCeeManagement<VCAppointmentDefinitionEvent>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcancelVCAppointments(Long operationId, PoolKit pk) protected voidcreateVCAppointment(VCAppointment vcAppointment, PoolKit pk) protected voidexecute(VCAppointmentDefinitionEvent event, PoolKit poolKit) protected LonggetInterventionId(Long operationId, PoolKit pk) protected VCAppointmentgetNewVCAppointment(VCAppointment vcAppointment, Long interventionId) protected DategetVCAppointmentDate(VCAppointment vcAppointment, Integer minutes) protected voidprotected VCAppointmentinsertVCAppointment(VCAppointment vcAppointment, PoolKit pk) protected intupdateVCAppointment(VCAppointment vcAppointment, 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
-
daoVCAppointments
-
-
Constructor Details
-
BTVCAppointmentDefinition
public BTVCAppointmentDefinition()
-
-
Method Details
-
execute
protected void execute(VCAppointmentDefinitionEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classValidExecutionBusinessTask<VCAppointmentDefinitionEvent>- Throws:
DAExceptionDAValidateException
-
initialize
protected void initialize() -
getInterventionId
protected Long getInterventionId(Long operationId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
cancelVCAppointments
protected void cancelVCAppointments(Long operationId, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateVCAppointment
protected int updateVCAppointment(VCAppointment vcAppointment, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getNewVCAppointment
-
getVCAppointmentDate
-
insertVCAppointment
protected VCAppointment insertVCAppointment(VCAppointment vcAppointment, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
createVCAppointment
protected void createVCAppointment(VCAppointment vcAppointment, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-