Class BTAppointmentCreation
java.lang.Object
overit.geocall.bl.BusinessTask<AppointmentNotificationEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask<AppointmentNotificationEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask<AppointmentNotificationEvent>
overit.geocallapp.wfm.cee.bl.task.BTCeeManagement<AppointmentNotificationEvent>
overit.geocallapp.wfm.cee.bl.task.BTAppointmentCreation
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(AppointmentNotificationEvent.class)
public class BTAppointmentCreation
extends BTCeeManagement<AppointmentNotificationEvent>
Business task for appointment creation notification to Cee application
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CeeHelperprotected DAOAppointmentsprotected RestClientHelperprotected static final LogChannel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DTOContactbuildContactDTO(String ceeCustomerId, HashGetter contactValues) protected DTOCustomerbuildCustomerDTO(HashGetter customerValues) protected DTOInterventionInsertbuildInterventionDTO(HashGetter interventionValues, boolean isBooking, Long customerId) protected voidceeCustomerUpdateOrCreate(HashGetter interventionValues, Long ceeCustomerId, PoolKit pk) protected StringcheckUpdateOrCreateCustomer(String code, HashGetter customerValues, CustomerApi customerApi, PoolKit pk) protected StringcreateCeeContact(String ceeCustomerId, HashGetter contactValues, CustomerApi api, PoolKit pk) protected StringcreateCeeCustomer(HashGetter customerValues, CustomerApi api, PoolKit pk) protected voidcreateCeeIntervention(AppointmentNotificationInput<BOAppointment> notificationInput, InterventionApi api, PoolKit pk) protected voidexecute(AppointmentNotificationEvent event, PoolKit poolKit) protected static DBViewgetCeeContacts(DBView contacts) protected LonggetCeeCustomerId(HashGetter interventionValues, PoolKit pk) protected HashGetterloadInterventionValues(Long appointmentId, PoolKit pk) protected voidupdateCeeCustomerCode(String ceeCustomerId, HashGetter customerValues, PoolKit pk) protected voidupdateCeeInterventionCode(String ceeInterventionId, HashGetter interventionValues, 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
-
LOG
-
ceeHelper
-
helper
-
daoAppointments
-
-
Constructor Details
-
BTAppointmentCreation
public BTAppointmentCreation()
-
-
Method Details
-
execute
protected void execute(AppointmentNotificationEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classValidExecutionBusinessTask<AppointmentNotificationEvent>- Throws:
DAExceptionDAValidateException
-
loadInterventionValues
protected HashGetter loadInterventionValues(Long appointmentId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
createCeeIntervention
protected void createCeeIntervention(AppointmentNotificationInput<BOAppointment> notificationInput, InterventionApi api, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getCeeCustomerId
protected Long getCeeCustomerId(HashGetter interventionValues, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
ceeCustomerUpdateOrCreate
protected void ceeCustomerUpdateOrCreate(HashGetter interventionValues, Long ceeCustomerId, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
buildInterventionDTO
protected DTOInterventionInsert buildInterventionDTO(HashGetter interventionValues, boolean isBooking, Long customerId) -
updateCeeInterventionCode
protected void updateCeeInterventionCode(String ceeInterventionId, HashGetter interventionValues, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateCeeCustomerCode
protected void updateCeeCustomerCode(String ceeCustomerId, HashGetter customerValues, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkUpdateOrCreateCustomer
protected String checkUpdateOrCreateCustomer(String code, HashGetter customerValues, CustomerApi customerApi, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
createCeeCustomer
protected String createCeeCustomer(HashGetter customerValues, CustomerApi api, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
buildCustomerDTO
-
getCeeContacts
-
createCeeContact
protected String createCeeContact(String ceeCustomerId, HashGetter contactValues, CustomerApi api, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
buildContactDTO
-