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.materials.bl.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 {0}.Codes.PROPERTY_REQUIRED: Property {0} is required.Codes.CODE_ALREADY_DEFINED: Code already defined.
- 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(BOMaterialClass materialClass, PoolKit poolKit) Validate the code of the material itemprotected voidexecute(MaterialClassUpdateEvent event, PoolKit pk) Updates theBOMaterialClasswith all its needed components.booleanChecks if the execution is execution.voidvalidateData(BOMaterialClass materialClass, PoolKit poolKit) 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 poolKit) throws DAValidateException, DAException Validates the material class data before the update.- Parameters:
materialClass- the current material classpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkCode
protected void checkCode(BOMaterialClass materialClass, PoolKit poolKit) throws DAValidateException, DAException Validate the code of the material item- Parameters:
materialClass- the current material classpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-