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 Detail

      • isStockSystemEnabled

        boolean isStockSystemEnabled​(java.lang.String baseSiteId)
                              throws UnknownIdentifierException
        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​(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 code
        baseSiteId - Base site ID
        Returns:
        StockData information
        Throws:
        UnknownIdentifierException - the unknown identifier exception when no base site or product with given id was found
        java.lang.IllegalArgumentException - the illegal argument exception when any one parameter is null
        AmbiguousIdentifierException - 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:
        StockData information
        Throws:
        UnknownIdentifierException - the unknown identifier exception when no store or product with given id was found
        java.lang.IllegalArgumentException - the illegal argument exception when any one parameter is null
        AmbiguousIdentifierException - the ambiguous identifier exception when there is more than one product with given code