Class BTCustomerSave
java.lang.Object
overit.geocall.bl.BusinessTask<CustomerSaveEvent>
overit.geocallapp.wfm.core.soap.technicalobjects.customer.v1.task.BTCustomerSave
- All Implemented Interfaces:
Serializable,Tool
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(CustomerSaveEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected BOAddressgetExistingAddress(Long technicalObjectAddressId, PoolKit poolKit) protected TechnicalObjectgetExistingTechnicalObject(Long id, PoolKit poolKit) protected LonginsertCustomer(TechnicalObject technicalObject, List<BOContact> contacts, List<BOMeter> meters, PoolKit poolKit) protected booleanisAddressChanged(BOAddress address, PoolKit poolKit) protected voidnormalizeAddress(BOAddress technicalObjectAddress, PoolKit poolKit) protected voidsaveCustomer(CustomerSaveInput input, PoolKit poolKit) protected voidupdateCustomer(TechnicalObject technicalObject, List<BOContact> contacts, List<BOMeter> meters, PoolKit poolKit) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTCustomerSave
public BTCustomerSave()
-
-
Method Details
-
body
protected void body(CustomerSaveEvent event, PoolKit poolKit) 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<CustomerSaveEvent>- Parameters:
event- the object upon which the task will works onpoolKit- 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
-
normalizeAddress
protected void normalizeAddress(BOAddress technicalObjectAddress, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
isAddressChanged
protected boolean isAddressChanged(BOAddress address, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getExistingAddress
protected BOAddress getExistingAddress(Long technicalObjectAddressId, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
saveCustomer
protected void saveCustomer(CustomerSaveInput input, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
insertCustomer
protected Long insertCustomer(TechnicalObject technicalObject, List<BOContact> contacts, List<BOMeter> meters, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateCustomer
protected void updateCustomer(TechnicalObject technicalObject, List<BOContact> contacts, List<BOMeter> meters, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getExistingTechnicalObject
protected TechnicalObject getExistingTechnicalObject(Long id, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-