Package de.bytestore.hostinger.handler
Klasse ProductHandler
java.lang.Object
de.bytestore.hostinger.handler.ProductHandler
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic int
countAmount
(io.jmix.core.DataManager manager, Products product) Calculates the total amount of a given product in the warehouse.static void
decrementStock
(io.jmix.core.DataManager manager, Integer amountIO, Products products) Decrements the stock of a product by the specified amount.static List<WarehouseProducts>
getWarehouses
(io.jmix.core.DataManager manager, Products products) Retrieves a list of WarehouseProducts for a given DataManager and Products.
-
Felddetails
-
log
protected static final org.slf4j.Logger log
-
-
Konstruktordetails
-
ProductHandler
public ProductHandler()
-
-
Methodendetails
-
countAmount
Calculates the total amount of a given product in the warehouse.- Parameter:
manager
- The DataManager instance to use for data retrieval.product
- The product for which the amount will be calculated.- Gibt zurück:
- The total amount of the given product in the warehouse.
-
getWarehouses
public static List<WarehouseProducts> getWarehouses(io.jmix.core.DataManager manager, Products products) Retrieves a list of WarehouseProducts for a given DataManager and Products.- Parameter:
manager
- The DataManager instance to use for data retrieval.products
- The Products for which the WarehouseProducts should be retrieved.- Gibt zurück:
- A list of WarehouseProducts matching the specified Products.
-
decrementStock
public static void decrementStock(io.jmix.core.DataManager manager, Integer amountIO, Products products) Decrements the stock of a product by the specified amount.- Parameter:
manager
- The data manager.amountIO
- The amount to decrement the stock by.products
-
-