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.core.bl.base.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:
WfmPermissions.FSM_CORE_STRUCTURE_EDIT
Error Code:
Codes.INVALID_PROPERTY_VALUE: Invalid value for property "structure"Codes.MISSING_REQUIRED_MULTILANGUAGE_VALUES: Property "description" is requiredCodes.MODULE_NOT_ACTIVE: Module time sheet is not active
Visibility:
- all the operation centers that are connected to the user
- all the structures, all the zones and warehouse that are connected to the user
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddeleteWarehouseRelations(BOOperationCenter operationCenter, PooledConnection conn) protected voidexecute(OperationCenterUpdateEvent event, PoolKit pk) Updates a newBOOperationCenterwith all its needed components.protected voidinsertWarehouseRelations(BOOperationCenter operationCenter, PooledConnection conn) booleanDetermines whether the current state is valid for execution.protected voidupdateOperationCenter(BOOperationCenter operationCenter, PoolKit pk) protected voidupdateWarehouseRelations(BOOperationCenter operationCenter, PooledConnection conn) protected voidupdateZone(BOOperationCenter operationCenter, PoolKit pk) protected voidMethods 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
-
Field Details
-
dbWarehouse
-
-
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
-
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
-
updateOperationCenter
protected void updateOperationCenter(BOOperationCenter operationCenter, PoolKit pk) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateZone
protected void updateZone(BOOperationCenter operationCenter, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateWarehouseRelations
protected void updateWarehouseRelations(BOOperationCenter operationCenter, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
deleteWarehouseRelations
protected void deleteWarehouseRelations(BOOperationCenter operationCenter, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
insertWarehouseRelations
protected void insertWarehouseRelations(BOOperationCenter operationCenter, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
validate
- Throws:
DAValidateException
-