Class BTGoodsGroupUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<GoodsGroupUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<GoodsGroupUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<GoodsGroupUpdateEvent>
overit.geocallapp.wfm.materials.bl.goodsgroup.task.BTGoodsGroupUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(GoodsGroupUpdateEvent.class)
public class BTGoodsGroupUpdate
extends ValidPermissionBusinessTask<GoodsGroupUpdateEvent>
Business task in order to update a
When the
BOGoodsGroup. When the
GoodsGroupUpdateEvent is launched the BT notices the call and updates 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(GoodsGroupUpdateEvent event, PoolKit pk) Updates theBOGoodsGroupwith all its needed components.booleanChecks if the execution is execution.protected voidvalidateData(BOGoodsGroup goodsGroup, PoolKit poolKit) Validates the goods group data before the insertion.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
-
BTGoodsGroupUpdate
public BTGoodsGroupUpdate()
-
-
Method Details
-
execute
protected void execute(GoodsGroupUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates theBOGoodsGroupwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<GoodsGroupUpdateEvent>- Parameters:
event- theGoodsGroupUpdateEventpk- 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 insertion.- 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
-