Class InventoryUtility

java.lang.Object
overit.geocallapp.wfm.inventory.bl.util.InventoryUtility

public class InventoryUtility extends Object
The utility class that provides commonly usable methods for the inventory management.
Since:
13.0
  • Field Details

    • IMPORT_MATERIALS_PATH

      protected static final String IMPORT_MATERIALS_PATH
      The Constant IMPORT_MATERIALS_PATH.
      See Also:
  • Method Details

    • getUserVisibleWarehouses

      public static Collection<Long> getUserVisibleWarehouses() throws DAValidateException, DAException
      Returns the warehouses that are visible by the current user.
      Returns:
      the user visible warehouses
      Throws:
      DAValidateException - the DA validate exception
      DAException - the DA exception
    • invalidateCurrentUserWarehouses

      public static void invalidateCurrentUserWarehouses() throws DAValidateException, DAException
      Reloads the warehouses that are visible to current user.
      Throws:
      DAValidateException - the DA validate exception
      DAException - the DA exception
    • invalidateCurrentUserWarehouses

      public static void invalidateCurrentUserWarehouses(PoolKit poolKit) throws DAValidateException, DAException
      Reloads the warehouses that are visible to current user.
      Parameters:
      poolKit - the PoolKit
      Throws:
      DAValidateException - the DA validate exception
      DAException - 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 given Identity.
      Parameters:
      identity - the current Identity
      poolKit - the PoolKit
      Throws:
      DAValidateException - the DA validate exception
      DAException - 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 exception
      DAException - the DA exception
    • getImportMaterialInputPath

      public static String getImportMaterialInputPath()
      Returns the import material input path.
      Returns:
      the import material input path
    • getImportMaterialOutputPath

      public static String getImportMaterialOutputPath()
      Returns the import material output path.
      Returns:
      the import material output path
    • getMaterialStockQuantityCheckType

      public static MaterialStockCheckType getMaterialStockQuantityCheckType(BOMaterial material)
      Returns the material stock check type.
      Parameters:
      material - the current BOMaterial
      Returns:
      the related MaterialStockCheckType
    • getTranslatedException

      public static void getTranslatedException(Code code, Object... params) throws DAValidateException
      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 code
      params - the parameters
      Throws:
      DAValidateException - the DA validate exception