Class BTAssetContactUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<AssetContactUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<AssetContactUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<AssetContactUpdateEvent>
overit.geocallapp.wfm.assets.bl.contact.task.BTAssetContactUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(AssetContactUpdateEvent.class)
public class BTAssetContactUpdate
extends ValidPermissionBusinessTask<AssetContactUpdateEvent>
Business task in order to update a
When the
BOAssetContact. When the
AssetContactUpdateEvent is launched
the BT notices the call and updates the BOAssetContact 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(BOAssetContact contact, PoolKit poolKit) protected voidexecute(AssetContactUpdateEvent event, PoolKit poolKit) Updates theBOAssetContactwith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidupdate(PoolKit poolKit, BOAssetContact contact) protected voidvalidate(BOAssetContact 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
-
BTAssetContactUpdate
public BTAssetContactUpdate()
-
-
Method Details
-
execute
protected void execute(AssetContactUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBOAssetContactwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<AssetContactUpdateEvent>- Parameters:
event- theAssetContactUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
update
protected void update(PoolKit poolKit, BOAssetContact contact) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
validate
protected void validate(BOAssetContact contact, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkUnique
protected void checkUnique(BOAssetContact 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
-