Class InventoryUtility
java.lang.Object
overit.geocallapp.wfm.inventory.bl.util.InventoryUtility
The utility class that provides commonly usable methods for the inventory management.
- Since:
- 13.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringThe Constant IMPORT_MATERIALS_PATH. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the import material input path.static StringReturns the import material output path.static MaterialStockCheckTypegetMaterialStockQuantityCheckType(BOMaterial material) Returns the material stock check type.static voidgetTranslatedException(Code code, Object... params) Utility method for prepare the exception message for replication operations.static Collection<Long> Returns the warehouses that are visible by the current user.static Collection<Long> getWarehouseFilter(Collection<Long> currentFilter) Returns the warehouse filtered by the warehouses that are visible for the current user.static voidReloads the warehouses that are visible to current user.static voidinvalidateCurrentUserWarehouses(PoolKit poolKit) Reloads the warehouses that are visible to current user.static voidinvalidateUserWarehouses(overit.geocallapp.wfm.util.WFMIdentity identity, PoolKit poolKit) Reloads the warehouses that are visible to the user related to the givenIdentity.
-
Field Details
-
IMPORT_MATERIALS_PATH
The Constant IMPORT_MATERIALS_PATH.- See Also:
-
-
Method Details
-
getUserVisibleWarehouses
Returns the warehouses that are visible by the current user.- Returns:
- the user visible warehouses
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
invalidateCurrentUserWarehouses
Reloads the warehouses that are visible to current user.- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
invalidateCurrentUserWarehouses
public static void invalidateCurrentUserWarehouses(PoolKit poolKit) throws DAValidateException, DAException Reloads the warehouses that are visible to current user.- Parameters:
poolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
invalidateUserWarehouses
public static void invalidateUserWarehouses(overit.geocallapp.wfm.util.WFMIdentity identity, PoolKit poolKit) throws DAValidateException, DAException Reloads the warehouses that are visible to the user related to the givenIdentity.- Parameters:
identity- the currentIdentitypoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getWarehouseFilter
public static Collection<Long> getWarehouseFilter(Collection<Long> currentFilter) throws DAValidateException, DAException Returns the warehouse filtered by the warehouses that are visible for the current user.- Parameters:
currentFilter- the current filter- Returns:
- the warehouse filter
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getImportMaterialInputPath
Returns the import material input path.- Returns:
- the import material input path
-
getImportMaterialOutputPath
Returns the import material output path.- Returns:
- the import material output path
-
getMaterialStockQuantityCheckType
Returns the material stock check type.- Parameters:
material- the currentBOMaterial- Returns:
- the related
MaterialStockCheckType
-
getTranslatedException
Utility method for prepare the exception message for replication operations. This method should be removed if/when the mobile will have a better error exception management- Parameters:
code- the codeparams- the parameters- Throws:
DAValidateException- the DA validate exception
-