Class BTLinearAssetLocationInsert
java.lang.Object
overit.geocall.bl.BusinessTask<LinearAssetLocationInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<LinearAssetLocationInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<LinearAssetLocationInsertEvent>
overit.geocallapp.wfm.assets.bl.linearassetlocation.task.BTLinearAssetLocationInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(LinearAssetLocationInsertEvent.class)
public class BTLinearAssetLocationInsert
extends ValidPermissionBusinessTask<LinearAssetLocationInsertEvent>
Business task in order to insert a
When the
BOLinearAssetLocation. When the
LinearAssetLocationInsertEvent is launched
the BT notices the call and inserts 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(LinearAssetLocationInsertEvent event, PoolKit poolKit) Inserts aBOLinearAssetLocation.protected LonginsertLinearAssetLocation(BOLinearAssetLocation input, PoolKit poolKit) booleanDetermines whether the current state is valid for execution.protected voidvalidate(BOLinearAssetLocation input, PoolKit poolKit) Validates the data before the insert.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
-
BTLinearAssetLocationInsert
public BTLinearAssetLocationInsert()
-
-
Method Details
-
execute
protected void execute(LinearAssetLocationInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts aBOLinearAssetLocation. The id of the just inserted object is written into the journal of the event.- Specified by:
executein classValidExecutionBusinessTask<LinearAssetLocationInsertEvent>- Parameters:
event- theLinearAssetLocationInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOLinearAssetLocation input, PoolKit poolKit) throws DAValidateException, DAException Validates the data before the insert.- Parameters:
input- theBOLinearAssetLocationpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
insertLinearAssetLocation
protected Long insertLinearAssetLocation(BOLinearAssetLocation input, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
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
-