Interface TmaStockFacade

All Known Implementing Classes:
DefaultTmaStockFacade

public interface TmaStockFacade
Tma Stock facade. Deals with methods related to stock of products in sites and points of service.
Since:
2003
  • Method Details

    • isStockSystemEnabled

      boolean isStockSystemEnabled(String baseSiteId) throws de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException
      Indicates if stock system is enabled for given base store
      Parameters:
      baseSiteId - to be checked
      Returns:
      true if stock system is enabled
      Throws:
      de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException - the unknown identifier exception when no base site with given id was found
    • getStockDataFor

      StockData getStockDataFor(String productCode, String baseSiteId) throws de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException, IllegalArgumentException, de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException
      Returns stock data for combination of given product and base site
      Parameters:
      productCode - Product code
      baseSiteId - Base site ID
      Returns:
      StockData information
      Throws:
      de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException - the unknown identifier exception when no base site or product with given id was found
      IllegalArgumentException - the illegal argument exception when any one parameter is null
      de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException - the ambiguous identifier exception when there is more than one product with given code
    • getStockDataForProductAndPointOfService

      StockData getStockDataForProductAndPointOfService(String productCode, String storeName) throws de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException, IllegalArgumentException, de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException
      Returns stock data for given product and point of service (that also indicates warehouse)
      Parameters:
      productCode -
      storeName -
      Returns:
      StockData information
      Throws:
      de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException - the unknown identifier exception when no store or product with given id was found
      IllegalArgumentException - the illegal argument exception when any one parameter is null
      de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException - the ambiguous identifier exception when there is more than one product with given code