Class BTGoodsGroupInsert
java.lang.Object
overit.geocall.bl.BusinessTask<GoodsGroupInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<GoodsGroupInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<GoodsGroupInsertEvent>
overit.geocallapp.wfm.materials.bl.goodsgroup.task.BTGoodsGroupInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(GoodsGroupInsertEvent.class)
public class BTGoodsGroupInsert
extends ValidPermissionBusinessTask<GoodsGroupInsertEvent>
Business task in order to insert a
When the
BOGoodsGroup. When the
GoodsGroupInsertEvent is launched the BT notices the call
and inserts the BOGoodsGroup basing on the event's input. Error Code:
Codes.INVALID_PROPERTY_VALUE: Invalid value for property feature class type
- Since:
- 17.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 voidcheckCode(BOGoodsGroup goodsGroup, PoolKit poolKit) Validate the code of the goods groupprotected voidexecute(GoodsGroupInsertEvent event, PoolKit pk) Inserts the givenBOGoodsGroupand writes the newly generated id into the event journal.booleanChecks if the execution is execution.protected voidvalidateData(BOGoodsGroup goodsGroup, PoolKit poolKit) Validates the goods group 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
-
BTGoodsGroupInsert
public BTGoodsGroupInsert()
-
-
Method Details
-
execute
protected void execute(GoodsGroupInsertEvent event, PoolKit pk) throws DAException, DAValidateException Inserts the givenBOGoodsGroupand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<GoodsGroupInsertEvent>- Parameters:
event- theGoodsGroupInsertEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is execution.- Returns:
- true, if successful
-
validateData
protected void validateData(BOGoodsGroup goodsGroup, PoolKit poolKit) throws DAValidateException, DAException Validates the goods group data before the update.- Parameters:
goodsGroup- the current goods grouppoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkCode
protected void checkCode(BOGoodsGroup goodsGroup, PoolKit poolKit) throws DAValidateException, DAException Validate the code of the goods group- Parameters:
goodsGroup- the current goods grouppoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-