Interface CommerceStockFacade
-
- All Known Implementing Classes:
DefaultCommerceStockFacade
public interface CommerceStockFacadeCommerce stock facade. Deals with methods related to stock of products in sites and points of service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StockDatagetStockDataForProductAndBaseSite(java.lang.String productCode, java.lang.String baseSiteId)Returns stock data for combination of given product and base siteStockDatagetStockDataForProductAndPointOfService(java.lang.String productCode, java.lang.String storeName)Returns stock data for given product and point of service (that also indicates warehouse)booleanisStockSystemEnabled(java.lang.String baseSiteId)Indicates if stock system is enabled for given base store
-
-
-
Method Detail
-
isStockSystemEnabled
boolean isStockSystemEnabled(java.lang.String baseSiteId) throws UnknownIdentifierExceptionIndicates 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(java.lang.String productCode, java.lang.String baseSiteId) throws UnknownIdentifierException, java.lang.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 foundjava.lang.IllegalArgumentException- 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(java.lang.String productCode, java.lang.String storeName) throws UnknownIdentifierException, java.lang.IllegalArgumentException, AmbiguousIdentifierException
Returns stock data for given product and point of service (that also indicates warehouse)- Parameters:
productCode-storeName-- Returns:
StockDatainformation- Throws:
UnknownIdentifierException- the unknown identifier exception when no store or product with given id was foundjava.lang.IllegalArgumentException- the illegal argument exception when any one parameter is nullAmbiguousIdentifierException- the ambiguous identifier exception when there is more than one product with given code
-
-