Class BTAccountContactUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<AccountContactUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<AccountContactUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<AccountContactUpdateEvent>
overit.geocallapp.wfm.accounts.bl.account.contact.task.BTAccountContactUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(AccountContactUpdateEvent.class)
public class BTAccountContactUpdate
extends ValidPermissionBusinessTask<AccountContactUpdateEvent>
Business task in order to update a
When the
BOAccountContact. When the
AccountContactUpdateEvent is launched
the BT notices the call and updates the BOAccountContact basing on the event's input. Required fields:
- address
- type
Permission:
Error code:
- Since:
- 16.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckUnique(BOAccountContact contact, PoolKit poolKit) protected voidexecute(AccountContactUpdateEvent event, PoolKit poolKit) Updates theBOAccountContactwith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidupdate(PoolKit poolKit, BOAccountContact contact) protected voidvalidate(BOAccountContact contact, PoolKit poolKit) Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTAccountContactUpdate
public BTAccountContactUpdate()
-
-
Method Details
-
execute
protected void execute(AccountContactUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBOAccountContactwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<AccountContactUpdateEvent>- Parameters:
event- theAccountContactUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
update
protected void update(PoolKit poolKit, BOAccountContact contact) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
validate
protected void validate(BOAccountContact contact, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkUnique
protected void checkUnique(BOAccountContact contact, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-