Class BTLinearAssetLocationLoad
java.lang.Object
overit.geocall.bl.BusinessTask<LinearAssetLocationLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<LinearAssetLocationLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<LinearAssetLocationLoadEvent>
overit.geocallapp.wfm.assets.bl.linearassetlocation.task.BTLinearAssetLocationLoad
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(LinearAssetLocationLoadEvent.class)
public class BTLinearAssetLocationLoad
extends ValidPermissionBusinessTask<LinearAssetLocationLoadEvent>
Business task in order to load a
When the
BOLinearAssetLocation. When the
LinearAssetLocationLoadEvent is launched the BT notices
the call and loads the BOLinearAssetLocation 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(LinearAssetLocationLoadEvent event, PoolKit poolKit) Writes the loaded linear asset location into the event journal.booleanDetermines whether the current state is valid for execution.protected BOAddressloadAddressFromAsset(Long assetId, PoolKit poolKit) Starting from the asset id, it loads the associatedBOAddress.protected voidValidates the data before the load.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
-
BTLinearAssetLocationLoad
public BTLinearAssetLocationLoad()
-
-
Method Details
-
execute
protected void execute(LinearAssetLocationLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the loaded linear asset location into the event journal.- Specified by:
executein classValidExecutionBusinessTask<LinearAssetLocationLoadEvent>- Parameters:
event- theLinearAssetLocationLoadEventpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
validate
Validates the data before the load.- Parameters:
assetId- theBOAsset's idpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadAddressFromAsset
protected BOAddress loadAddressFromAsset(Long assetId, PoolKit poolKit) throws DAException, DAValidateException Starting from the asset id, it loads the associatedBOAddress.- Parameters:
assetId- theBOAsset's idpoolKit- thePoolKit- Returns:
- the required asset
- 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
-