Class BTCatalogCodeUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<CatalogCodeUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<CatalogCodeUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<CatalogCodeUpdateEvent>
overit.geocallapp.wfm.catalogs.bl.catalogcode.task.BTCatalogCodeUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CatalogCodeUpdateEvent.class)
public class BTCatalogCodeUpdate
extends ValidPermissionBusinessTask<CatalogCodeUpdateEvent>
Business task in order to update a
When the
Error codes:
BOCatalogCode. When the
CatalogCodeUpdateEvent is launched the BT notices the call and
updates the BOCatalogCode according to the event's input. Error codes:
- Since:
- 20.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 voidprotected voidcheckUnique(BOCatalogCode catalogCode, PoolKit pk) Checks if the givenBOCatalogCodehas a unique code.protected voidexecute(CatalogCodeUpdateEvent event, PoolKit pk) Updates theBOCatalogCodeobject.booleanDetermines whether the current state is valid for execution.protected voidvalidateInput(BOCatalogCode catalogCode, PoolKit pk) Validates theBOCatalogCodeobject data before its 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
-
BTCatalogCodeUpdate
public BTCatalogCodeUpdate()
-
-
Method Details
-
execute
protected void execute(CatalogCodeUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates theBOCatalogCodeobject.- Specified by:
executein classValidExecutionBusinessTask<CatalogCodeUpdateEvent>- Parameters:
event- theCatalogCodeUpdateEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateInput
protected void validateInput(BOCatalogCode catalogCode, PoolKit pk) throws DAValidateException, DAException Validates theBOCatalogCodeobject data before its update.- Parameters:
catalogCode- theBOCatalogCodeobject to be updatedpk- thePoolKitpk- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
checkUnique
protected void checkUnique(BOCatalogCode catalogCode, PoolKit pk) throws DAValidateException, DAException Checks if the givenBOCatalogCodehas a unique code.- Parameters:
catalogCode- the currentBOCatalogCodepk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
afterUpdate
protected void afterUpdate() -
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-