Class ProductServiceFacade

    • Constructor Detail

      • ProductServiceFacade

        public ProductServiceFacade​(java.lang.Long cloudId,
                                    ProductService service)
    • Method Detail

      • getProduct

        public Product getProduct​(java.lang.Long id)
      • getProducts

        public java.util.Collection<Product> getProducts​(int limit,
                                                         int offset,
                                                         java.lang.String sortBy)
      • getProducts

        public java.util.Collection<Product> getProducts​(java.lang.String sortBy)
      • getProducts

        public java.util.Collection<Product> getProducts()
      • getProductWithStockStatus

        public ProductWithStockStatus getProductWithStockStatus​(java.lang.Long warehouseId,
                                                                java.lang.Long productId)
      • getProductStockStatus

        public ProductWithStockStatus getProductStockStatus​(java.lang.Long warehouseId,
                                                            java.lang.Long productId)
      • getProductsWithStockStatus

        public java.util.Collection<ProductWithStockStatus> getProductsWithStockStatus​(long warehouseId,
                                                                                       int limit,
                                                                                       int offset,
                                                                                       java.lang.String sortBy)
      • getProductsWithStockStatus

        public java.util.Collection<ProductWithStockStatus> getProductsWithStockStatus​(long warehouseId,
                                                                                       java.lang.String sortBy)
      • getProductsWithStockStatus

        public java.util.Collection<ProductWithStockStatus> getProductsWithStockStatus​(long warehouseId)
      • deleteProduct

        public Product deleteProduct​(java.lang.Long id)
      • getProductIngredients

        public java.util.Collection<ProductWithStockStatus> getProductIngredients​(java.lang.Long productId,
                                                                                  int limit,
                                                                                  int offset,
                                                                                  java.lang.String sortBy)
      • getProductIngredients

        public java.util.Collection<ProductWithStockStatus> getProductIngredients​(java.lang.Long productId,
                                                                                  java.lang.String sortBy)
      • getProductIngredients

        public java.util.Collection<ProductWithStockStatus> getProductIngredients​(java.lang.Long productId)
      • getIngredients

        public java.util.Collection<Ingredient> getIngredients​(int limit,
                                                               int offset,
                                                               java.lang.String sortBy)
      • getIngredients

        public java.util.Collection<Ingredient> getIngredients​(java.lang.String sortBy)
      • getIngredients

        public java.util.Collection<Ingredient> getIngredients()
      • createProductIngredient

        public Ingredient createProductIngredient​(ProductIngredient productIngredient)
        TODO: to be tested - it's not possible to create a product ingredient. I think this method is actually a binding between product and ingredient UPDATE 01.02.2020 - ingredient is actually a product
        Parameters:
        productIngredient -
        Returns:
      • deleteProductIngredient

        public Ingredient deleteProductIngredient​(java.lang.Long productIngredientId)
        TODO: to be tested - it's not possible to create a product ingredient. I think this method is actually a binding between product and ingredient UPDATE 01.02.2020 - ingredient is actually a product
        Parameters:
        productIngredientId -
        Returns: