Interface CommerceStockFacade
- All Known Implementing Classes:
DefaultCommerceStockFacade
public interface CommerceStockFacade
Commerce stock facade. Deals with methods related to stock of products in sites and points of service.
-
Method Summary
Modifier and TypeMethodDescriptiongetStockDataForProductAndBaseSite(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
Indicates if stock system is enabled for given base store- Parameters:
baseSiteId- to be checked- Returns:
- true if stock system is enabled
- Throws:
UnknownIdentifierException- the unknown identifier exception when no base site with given id was found
-
getStockDataForProductAndBaseSite
StockData getStockDataForProductAndBaseSite(String productCode, String baseSiteId) throws UnknownIdentifierException, IllegalArgumentException, AmbiguousIdentifierException Returns stock data for combination of given product and base site- Parameters:
productCode- Product codebaseSiteId- Base site ID- Returns:
StockDatainformation- Throws:
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 nullAmbiguousIdentifierException- the ambiguous identifier exception when there is more than one product with given code
-
getStockDataForProductAndPointOfService
StockData getStockDataForProductAndPointOfService(String productCode, String storeName) throws UnknownIdentifierException, IllegalArgumentException, AmbiguousIdentifierException Returns stock data for given product and point of service (that also indicates warehouse)- Parameters:
productCode- Product codestoreName- Store name- Returns:
StockDatainformation- Throws:
UnknownIdentifierException- the unknown identifier exception when no store or product with given id was foundIllegalArgumentException- the illegal argument exception when any one parameter is nullAmbiguousIdentifierException- the ambiguous identifier exception when there is more than one product with given code
-