Class BTOperationCenterUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<OperationCenterUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<OperationCenterUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<OperationCenterUpdateEvent>
overit.geocallapp.wfm.organizationalstructures.bl.operationcenter.task.BTOperationCenterUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(OperationCenterUpdateEvent.class)
public class BTOperationCenterUpdate
extends ValidPermissionBusinessTask<OperationCenterUpdateEvent>
Business task in order to update a
When the
BOOperationCenter. When the
OperationCenterUpdateEvent is launched the BT notices the
call and updates the BOOperationCenter basing on the event's input.
Required fields:
- Operation Center ID
Permission:
Error Code:x
Codes.INVALID_PROPERTY_VALUE: Invalid value for property {0}Codes.MISSING_REQUIRED_MULTILANGUAGE_VALUES: Missing required multilanguage values for the property "code"Codes.PROPERTY_REQUIRED: Property {0} is required
- Since:
- 16.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 voidcheckUniqueCode(BOOperationCenter operationCenter, PoolKit poolKit) Checks if the code of the given operation center is unique.protected voidexecute(OperationCenterUpdateEvent event, PoolKit pk) Updates a newBOOperationCenterwith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidnotifyUpdate(BOOperationCenter operationCenter, PoolKit poolKit) protected voidupdateOperationCenter(BOOperationCenter operationCenter, PoolKit pk) Updates the givenBOOperationCenter.protected voidupdateZone(BOOperationCenter operationCenter, PoolKit pk) Updates theBOZoneassociated to the givenBOOperationCenter.protected voidvalidate(BOOperationCenter operationCenter, PoolKit poolKit) Validates the givenBOOperationCenter.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
-
BTOperationCenterUpdate
public BTOperationCenterUpdate()
-
-
Method Details
-
execute
protected void execute(OperationCenterUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates a newBOOperationCenterwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<OperationCenterUpdateEvent>- Parameters:
event- theOperationCenterUpdateEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOOperationCenter operationCenter, PoolKit poolKit) throws DAValidateException, DAException Validates the givenBOOperationCenter.- Parameters:
operationCenter- the operation centerpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkUniqueCode
protected void checkUniqueCode(BOOperationCenter operationCenter, PoolKit poolKit) throws DAValidateException, DAException Checks if the code of the given operation center is unique.- Parameters:
operationCenter- the operation centerpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
updateOperationCenter
protected void updateOperationCenter(BOOperationCenter operationCenter, PoolKit pk) throws DAValidateException, DAException Updates the givenBOOperationCenter.- Parameters:
operationCenter- the operation centerpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
updateZone
protected void updateZone(BOOperationCenter operationCenter, PoolKit pk) throws DAException, DAValidateException Updates theBOZoneassociated to the givenBOOperationCenter.- Parameters:
operationCenter- the operation centerpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
notifyUpdate
protected void notifyUpdate(BOOperationCenter operationCenter, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
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
-