Class BTAssetTreeLoad
java.lang.Object
overit.geocall.bl.BusinessTask<AssetTreeLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<AssetTreeLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<AssetTreeLoadEvent>
overit.geocallapp.wfm.assets.bl.task.BTAssetTreeLoad
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(AssetTreeLoadEvent.class)
public class BTAssetTreeLoad
extends ValidPermissionBusinessTask<AssetTreeLoadEvent>
Business task in order to load a list of
When the
BOAsset that are a subtree. When the
AssetTreeLoadEvent is launched the BT notices
the call and loads the BOAsset tree basing on the event's input. Permission:
- 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(AssetTreeLoadEvent event, PoolKit poolKit) Writes the loaded asset tree into the event journal.booleanDetermines whether the current state is valid for execution.protected voidsearchChildren(Long childId, List<BOAsset> children, PoolKit poolKit) Search recursively the asset tree referring to the given idMethods 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
-
BTAssetTreeLoad
public BTAssetTreeLoad()
-
-
Method Details
-
execute
protected void execute(AssetTreeLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the loaded asset tree into the event journal.- Specified by:
executein classValidExecutionBusinessTask<AssetTreeLoadEvent>- Parameters:
event- theAssetTreeLoadEventpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
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
-
searchChildren
protected void searchChildren(Long childId, List<BOAsset> children, PoolKit poolKit) throws DAException, DAValidateException Search recursively the asset tree referring to the given id- Parameters:
childId- theBOAssetidchildren- all the assets of the tree.poolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-