Class BTWarehouseDeactivate<I>
java.lang.Object
overit.geocall.bl.BusinessTask<I>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<I>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<I>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<I>
overit.geocallapp.wfm.inventory.bl.warehouse.task.BTWarehouseDeactivate<I>
- Type Parameters:
I- the generic type
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTCentralWarehouseDeactivate,BTMobileWarehouseDeactivate
Generic business task for deactivate Warehouse.
Implement deactivation checks for warehouses
Implement deactivation checks for warehouses
- 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 voidcheckIfLinkedWarehouse(Long warehouseId, PoolKit poolKit) Checks if linked warehouse.protected voidcheckMaterialsInStocks(Long warehouseId, PoolKit poolKit) Checks if the warehouse have goods in stock.protected voidcheckTransferRequests(Long warehouseId, PoolKit poolKit) Checks if the warehouse have pending transfer request.protected BOWarehouseloadWarehouse(Long id, PoolKit poolKit) Loads theBOWarehousestarting from its id.Methods 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, execute, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackgroundMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecution
isValidExecution
-
Constructor Details
-
BTWarehouseDeactivate
public BTWarehouseDeactivate()
-
-
Method Details
-
loadWarehouse
protected BOWarehouse loadWarehouse(Long id, PoolKit poolKit) throws DAValidateException, DAException Loads theBOWarehousestarting from its id.- Parameters:
id- theBOWarehouseidpoolKit- thePoolKit- Returns:
- the loaded
BOWarehouse - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkMaterialsInStocks
protected void checkMaterialsInStocks(Long warehouseId, PoolKit poolKit) throws DAValidateException, DAException Checks if the warehouse have goods in stock.- Parameters:
warehouseId- theBOWarehouseidpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkTransferRequests
protected void checkTransferRequests(Long warehouseId, PoolKit poolKit) throws DAValidateException, DAException Checks if the warehouse have pending transfer request.- Parameters:
warehouseId- theBOWarehouseidpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkIfLinkedWarehouse
protected void checkIfLinkedWarehouse(Long warehouseId, PoolKit poolKit) throws DAValidateException, DAException Checks if linked warehouse.- Parameters:
warehouseId- theBOWarehouseidpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-