Class BTWorkOrderValidation
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderValidationEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask<WorkOrderValidationEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask<WorkOrderValidationEvent>
overit.geocallapp.wfm.cee.bl.task.BTCeeManagement<WorkOrderValidationEvent>
overit.geocallapp.wfm.cee.bl.task.BTWorkOrderValidation
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WorkOrderValidationEvent.class)
public class BTWorkOrderValidation
extends BTCeeManagement<WorkOrderValidationEvent>
Business task for WO validation notification to Cee application
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CeeHelperprotected RestClientHelperprotected static final LogChannel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DTOContactbuildContactDTO(String ceeCustomerId, HashGetter contactValues) protected DTOCustomerbuildCustomerDTO(HashGetter customerValues) protected StringcheckUpdateOrCreate(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 voidexecute(WorkOrderValidationEvent event, PoolKit poolKit) protected static DBViewgetCeeContacts(DBView contacts) protected voidupdateCeeCode(String ceeCustomerId, HashGetter customerValues, 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
-
-
Constructor Details
-
BTWorkOrderValidation
public BTWorkOrderValidation()
-
-
Method Details
-
execute
protected void execute(WorkOrderValidationEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classValidExecutionBusinessTask<WorkOrderValidationEvent>- Throws:
DAExceptionDAValidateException
-
checkUpdateOrCreate
protected String checkUpdateOrCreate(String code, HashGetter customerValues, CustomerApi customerApi, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getCeeContacts
-
createCeeCustomer
protected String createCeeCustomer(HashGetter customerValues, CustomerApi api, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateCeeCode
protected void updateCeeCode(String ceeCustomerId, HashGetter customerValues, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
buildCustomerDTO
-
createCeeContact
protected String createCeeContact(String ceeCustomerId, HashGetter contactValues, CustomerApi api, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
buildContactDTO
-