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 Summary
Modifier and TypeMethodDescriptiongetStockDataFor(String productCode, String baseSiteId) Returns stock data for combination of given product and base sitegetStockDataForProductAndPointOfService(String productCode, String storeName) Returns stock data for given product and point of service (that also indicates warehouse)booleanisStockSystemEnabled(String baseSiteId) Indicates if stock system is enabled for given base store
-
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 codebaseSiteId- Base site ID- Returns:
StockDatainformation- Throws:
de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException- the unknown identifier exception when no base site or product with given id was foundIllegalArgumentException- the illegal argument exception when any one parameter is nullde.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:
StockDatainformation- Throws:
de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException- the unknown identifier exception when no store or product with given id was foundIllegalArgumentException- the illegal argument exception when any one parameter is nullde.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException- the ambiguous identifier exception when there is more than one product with given code
-