Class BTAssetUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<AssetUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<AssetUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<AssetUpdateEvent>
overit.geocallapp.wfm.assets.bl.task.BTAssetUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(AssetUpdateEvent.class)
public class BTAssetUpdate
extends ValidPermissionBusinessTask<AssetUpdateEvent>
Business task in order to update a
When the
BOAsset. When the
AssetUpdateEvent is launched
the BT notices the call and updates the BOAsset basing on the event's input. 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 voidexecute(AssetUpdateEvent event, PoolKit poolKit) Updates theBOAsset.Returns the list containing the names of the fields that cannot be updated.booleanDetermines whether the current state is valid for execution.protected voidupdateAsset(BOAsset asset, PoolKit poolKit) Updates the given asset.protected voidValidates the data before the update.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
-
BTAssetUpdate
public BTAssetUpdate()
-
-
Method Details
-
execute
protected void execute(AssetUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBOAsset.- Specified by:
executein classValidExecutionBusinessTask<AssetUpdateEvent>- Parameters:
event- theAssetUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
Validates the data before the update.- Parameters:
asset- theBOAssetpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
updateAsset
Updates the given asset.- Parameters:
asset- theBOAssetpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
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
-
getNotUpdatableFields
Returns the list containing the names of the fields that cannot be updated.- Returns:
- the list of fields that cannot be updated
-