Class BTLinearAssetLocationUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<LinearAssetLocationUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<LinearAssetLocationUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<LinearAssetLocationUpdateEvent>
overit.geocallapp.wfm.assets.bl.linearassetlocation.task.BTLinearAssetLocationUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(LinearAssetLocationUpdateEvent.class)
public class BTLinearAssetLocationUpdate
extends ValidPermissionBusinessTask<LinearAssetLocationUpdateEvent>
Business task in order to update a
When the
BOLinearAssetLocation. When the
LinearAssetLocationUpdateEvent is launched
the BT notices the call and updates the BOLinearAssetLocation 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(LinearAssetLocationUpdateEvent event, PoolKit poolKit) Updates theBOLinearAssetLocationwith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidupdateLinearAssetLocation(BOLinearAssetLocation linearAssetLocation, PoolKit poolKit) Performs the update of the givenBOLinearAssetLocation.protected voidvalidate(BOLinearAssetLocation linearAssetLocation, PoolKit poolKit) Checks whether the linear asset location and the asset are already associated.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
-
BTLinearAssetLocationUpdate
public BTLinearAssetLocationUpdate()
-
-
Method Details
-
execute
protected void execute(LinearAssetLocationUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBOLinearAssetLocationwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<LinearAssetLocationUpdateEvent>- Parameters:
event- theLinearAssetLocationUpdateEventpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
validate
protected void validate(BOLinearAssetLocation linearAssetLocation, PoolKit poolKit) throws DAException, DAValidateException Checks whether the linear asset location and the asset are already associated.- Parameters:
linearAssetLocation- theBOLinearAssetLocationpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
updateLinearAssetLocation
protected void updateLinearAssetLocation(BOLinearAssetLocation linearAssetLocation, PoolKit poolKit) throws DAException, DAValidateException Performs the update of the givenBOLinearAssetLocation.- Parameters:
linearAssetLocation- theBOLinearAssetLocationpoolKit- 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
-