Class BTMaterialItemInsert
java.lang.Object
overit.geocall.bl.BusinessTask<MaterialItemInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MaterialItemInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MaterialItemInsertEvent>
overit.geocallapp.wfm.materials.bl.item.task.BTMaterialItemInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MaterialItemInsertEvent.class)
public class BTMaterialItemInsert
extends ValidPermissionBusinessTask<MaterialItemInsertEvent>
Business task in order to insert a
When the
BOMaterialItem. When the
MaterialItemInsertEvent is launched the BT notices the call and inserts 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(MaterialItemInsertEvent event, PoolKit pk) Inserts the givenBOMaterialItemand writes the newly generated id into the event journal.booleanChecks if the execution is execution.voidvalidateData(BOMaterialItem materialItem, PoolKit poolKit) Validates the material item 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
-
BTMaterialItemInsert
public BTMaterialItemInsert()
-
-
Method Details
-
execute
protected void execute(MaterialItemInsertEvent event, PoolKit pk) throws DAException, DAValidateException Inserts the givenBOMaterialItemand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<MaterialItemInsertEvent>- Parameters:
event- theMaterialItemInsertEventpk- 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 insertion.- 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
-