Class BTMaterialClassUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<MaterialClassUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MaterialClassUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MaterialClassUpdateEvent>
overit.geocallapp.wfm.core.bl.material.materialclass.task.BTMaterialClassUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MaterialClassUpdateEvent.class)
public class BTMaterialClassUpdate
extends ValidPermissionBusinessTask<MaterialClassUpdateEvent>
Business task in order to update a
When the
BOMaterialClass. When the
MaterialClassUpdateEvent is launched the BT notices the call and updates the BOMaterialClass basing on the event's input.
Error Code:
Codes.INVALID_PROPERTY_VALUE: Invalid value for property feature class type
- Since:
- 13.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(MaterialClassUpdateEvent event, PoolKit pk) Updates theBOMaterialClasswith all its needed components.booleanChecks if the execution is execution.voidvalidateData(BOMaterialClass materialClass, PoolKit pk) Validates the material class 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
-
BTMaterialClassUpdate
public BTMaterialClassUpdate()
-
-
Method Details
-
execute
protected void execute(MaterialClassUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates theBOMaterialClasswith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<MaterialClassUpdateEvent>- Parameters:
event- theMaterialClassUpdateEventpk- 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(BOMaterialClass materialClass, PoolKit pk) throws DAValidateException, DAException Validates the material class data before the update.- Parameters:
materialClass- the current material classpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-