Class BTMaterialItemUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<MaterialItemUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MaterialItemUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MaterialItemUpdateEvent>
overit.geocallapp.wfm.materials.bl.item.task.BTMaterialItemUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MaterialItemUpdateEvent.class)
public class BTMaterialItemUpdate
extends ValidPermissionBusinessTask<MaterialItemUpdateEvent>
Business task in order to update a
When the
BOMaterialItem. When the
MaterialItemUpdateEvent is launched the BT notices the
call and updates the BOMaterialItem 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(BOMaterialItem materialItem, PoolKit poolKit) Validate the code of the material itemprotected voidexecute(MaterialItemUpdateEvent event, PoolKit pk) Updates theBOMaterialItemwith all its needed components.booleanChecks if the execution is execution.voidvalidateData(BOMaterialItem materialItem, PoolKit poolKit) Validates the material item 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
-
BTMaterialItemUpdate
public BTMaterialItemUpdate()
-
-
Method Details
-
execute
protected void execute(MaterialItemUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates theBOMaterialItemwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<MaterialItemUpdateEvent>- Parameters:
event- the MaterialItemTypeUpdateEventpk- 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
public void validateData(BOMaterialItem materialItem, PoolKit poolKit) throws DAValidateException, DAException Validates the material item data before the update.- Parameters:
materialItem- the current material itempoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkCode
protected void checkCode(BOMaterialItem materialItem, PoolKit poolKit) throws DAValidateException, DAException Validate the code of the material item- Parameters:
materialItem- the current material itempoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-