Class BTMobileWarehouseDeactivate
java.lang.Object
overit.geocall.bl.BusinessTask<MobileWarehouseDeactivateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MobileWarehouseDeactivateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MobileWarehouseDeactivateEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<MobileWarehouseDeactivateEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.task.BTWarehouseDeactivate<MobileWarehouseDeactivateEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.mobile.task.BTMobileWarehouseDeactivate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MobileWarehouseDeactivateEvent.class)
public class BTMobileWarehouseDeactivate
extends BTWarehouseDeactivate<MobileWarehouseDeactivateEvent>
Business task in order to deactivate a
When the
BOWarehouse. When the
MobileWarehouseDeactivateEvent is launched
the BT notices the call and activates the BOWarehouse basing on the event's input. - Since:
- 14.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 voidchangeStatus(BOWarehouse mobileWarehouse, PoolKit poolKit) Changes the state of the givenBOWarehousetoBOWarehouseState.Values.INOPERATIVEby calling theWarehouseStateUpdateEventprotected voidexecute(MobileWarehouseDeactivateEvent event, PoolKit poolKit) Deactivates the givenBOWarehouse.booleanChecks if the execution is valid.protected voidValidates the given state for the update, which can only beBOWarehouseState.Values.INOPERATIVE.Methods inherited from class overit.geocallapp.wfm.inventory.bl.warehouse.task.BTWarehouseDeactivate
checkIfLinkedWarehouse, checkMaterialsInStocks, checkTransferRequests, loadWarehouseMethods inherited from class overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement
checkValidExecutionMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
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
-
BTMobileWarehouseDeactivate
public BTMobileWarehouseDeactivate()
-
-
Method Details
-
execute
protected void execute(MobileWarehouseDeactivateEvent event, PoolKit poolKit) throws DAException, DAValidateException Deactivates the givenBOWarehouse.- Specified by:
executein classValidExecutionBusinessTask<MobileWarehouseDeactivateEvent>- Parameters:
event- theMobileWarehouseDeactivateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-
validate
protected void validate(Long warehouseId, Long state, PoolKit poolKit) throws DAValidateException, DAException Validates the given state for the update, which can only beBOWarehouseState.Values.INOPERATIVE.- Parameters:
warehouseId- theBOWarehouseidpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
changeStatus
protected void changeStatus(BOWarehouse mobileWarehouse, PoolKit poolKit) throws DAValidateException, DAException Changes the state of the givenBOWarehousetoBOWarehouseState.Values.INOPERATIVEby calling theWarehouseStateUpdateEvent- Parameters:
mobileWarehouse- theBOWarehouseto updatepoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-