Class BTCatalogGroupUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<CatalogGroupUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<CatalogGroupUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<CatalogGroupUpdateEvent>
overit.geocallapp.wfm.catalogs.bl.cataloggroup.task.BTCatalogGroupUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CatalogGroupUpdateEvent.class)
public class BTCatalogGroupUpdate
extends ValidPermissionBusinessTask<CatalogGroupUpdateEvent>
Business task in order to update a
When the
BOCatalogGroup. When the
CatalogGroupUpdateEvent is launched the BT notices the call and
updates the BOCatalogGroup according to the event's input. - 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 voidActions to perform after the update.protected voidcheckUnique(BOCatalogGroup catalogGroup, PoolKit pk) Checks if the givenBOCatalogGrouphas a unique code.protected voidexecute(CatalogGroupUpdateEvent event, PoolKit pk) Updates theBOCatalogGroupobject.booleanDetermines whether the current state is valid for execution.protected voidvalidateInput(BOCatalogGroup catalogGroup, PoolKit pk) Validates theBOCatalogGroupobject 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
-
BTCatalogGroupUpdate
public BTCatalogGroupUpdate()
-
-
Method Details
-
execute
protected void execute(CatalogGroupUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates theBOCatalogGroupobject.- Specified by:
executein classValidExecutionBusinessTask<CatalogGroupUpdateEvent>- Parameters:
event- theCatalogGroupUpdateEventeventpk- thePoolKitpk- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
validateInput
protected void validateInput(BOCatalogGroup catalogGroup, PoolKit pk) throws DAValidateException, DAException Validates theBOCatalogGroupobject data before its update.- Parameters:
catalogGroup- theBOCatalogGroupobject to be updatedpk- thePoolKitpk- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
checkUnique
protected void checkUnique(BOCatalogGroup catalogGroup, PoolKit pk) throws DAValidateException, DAException Checks if the givenBOCatalogGrouphas a unique code.- Parameters:
catalogGroup- the currentBOCatalogGrouppk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
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
-
afterUpdate
protected void afterUpdate()Actions to perform after the update.
-