Class ProductServiceFacade
- java.lang.Object
-
- pl.grizzlysoftware.util.RetrofitApiServiceFacade
-
- pl.grizzlysoftware.dotykacka.client.v1.facade.BasicDotykackaApiServiceFacade
-
- pl.grizzlysoftware.dotykacka.client.v1.facade.DotykackaApiServiceFacade<ProductService>
-
- pl.grizzlysoftware.dotykacka.client.v1.facade.ProductServiceFacade
-
public class ProductServiceFacade extends DotykackaApiServiceFacade<ProductService>
-
-
Field Summary
Fields Modifier and Type Field Description protected BatchLoaderbatchLoader-
Fields inherited from class pl.grizzlysoftware.dotykacka.client.v1.facade.DotykackaApiServiceFacade
service
-
Fields inherited from class pl.grizzlysoftware.dotykacka.client.v1.facade.BasicDotykackaApiServiceFacade
cloudId
-
Fields inherited from class pl.grizzlysoftware.util.RetrofitApiServiceFacade
executor
-
-
Constructor Summary
Constructors Constructor Description ProductServiceFacade(java.lang.Long cloudId, ProductService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductcreateProduct(Product product)IngredientcreateProductIngredient(ProductIngredient productIngredient)TODO: to be tested - it's not possible to create a product ingredient.ProductdeleteProduct(java.lang.Long id)IngredientdeleteProductIngredient(java.lang.Long productIngredientId)TODO: to be tested - it's not possible to create a product ingredient.java.util.Collection<Ingredient>getIngredients()java.util.Collection<Ingredient>getIngredients(int limit, int offset, java.lang.String sortBy)java.util.Collection<Ingredient>getIngredients(java.lang.String sortBy)ProductgetProduct(java.lang.Long id)java.util.Collection<ProductWithStockStatus>getProductIngredients(java.lang.Long productId)java.util.Collection<ProductWithStockStatus>getProductIngredients(java.lang.Long productId, int limit, int offset, java.lang.String sortBy)java.util.Collection<ProductWithStockStatus>getProductIngredients(java.lang.Long productId, java.lang.String sortBy)java.util.Collection<Product>getProducts()java.util.Collection<Product>getProducts(int limit, int offset, java.lang.String sortBy)java.util.Collection<Product>getProducts(java.lang.String sortBy)ProductWithStockStatusgetProductStockStatus(java.lang.Long warehouseId, java.lang.Long productId)java.util.Collection<ProductWithStockStatus>getProductsWithStockStatus(long warehouseId)java.util.Collection<ProductWithStockStatus>getProductsWithStockStatus(long warehouseId, int limit, int offset, java.lang.String sortBy)java.util.Collection<ProductWithStockStatus>getProductsWithStockStatus(long warehouseId, java.lang.String sortBy)ProductWithStockStatusgetProductWithStockStatus(java.lang.Long warehouseId, java.lang.Long productId)ProductupdateProduct(Product product)-
Methods inherited from class pl.grizzlysoftware.util.RetrofitApiServiceFacade
execute
-
-
-
-
Field Detail
-
batchLoader
protected BatchLoader batchLoader
-
-
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:
-
-