public interface StockService
StockLevelModel.
StockLevelModel.
StockLevelModel.
StockLevelModel.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BEAN_NAME |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<StockLevelModel> |
getAllStockLevels(ProductModel product)
Finds the stock levels of the specified product from all warehouses.
|
java.util.Map<WarehouseModel,java.lang.Integer> |
getAvailability(java.util.List<WarehouseModel> warehouses,
ProductModel product,
java.util.Date date)
Gets the product quantity for the specified product, warehouses and date.
|
java.util.Map<WarehouseModel,java.util.Date> |
getAvailability(java.util.List<WarehouseModel> warehouses,
ProductModel product,
int preOrderQuantity)
Returns product availability, passing product, and quantity as parameters.
|
java.lang.String |
getAvailability(ProductModel product,
java.util.List<WarehouseModel> warehouses,
java.util.Date date,
LanguageModel language)
Gets the available quantity of the product for the specified warehouses.
|
java.lang.String |
getAvailability(ProductModel product,
java.util.List<WarehouseModel> warehouses,
int quantity,
LanguageModel language)
Gets availability date by invoking strategy for calculating product availability, passing product, quantity and
warehouses as parameters.
|
java.lang.String |
getAvailability(ProductModel product,
WarehouseModel warehouse,
java.util.Date date,
LanguageModel language)
Gets the available quantity of the product for the specified warehouse.
|
java.lang.String |
getAvailability(ProductModel product,
WarehouseModel warehouse,
int quantity,
LanguageModel language)
Gets availability date by invoking strategy for calculating product availability, passing product, quantity and
warehouse as parameters.
|
WarehouseModel |
getBestMatchOfAvailability(java.util.Map<WarehouseModel,java.util.Date> map)
Returns the warehouse which offers the "best" product "availability" .
|
WarehouseModel |
getBestMatchOfQuantity(java.util.Map<WarehouseModel,java.lang.Integer> map)
Returns the warehouse which offers the "best" product "quantity".
|
InStockStatus |
getInStockStatus(ProductModel product,
WarehouseModel warehouse)
Checks the stock level status of the product in the specified warehouses.
|
StockLevelStatus |
getProductStatus(ProductModel product,
java.util.Collection<WarehouseModel> warehouses)
Checks the stock level status of the product in all specified warehouses.
|
StockLevelStatus |
getProductStatus(ProductModel product,
WarehouseModel warehouse)
Checks the stock level status of the product in the specified warehouse.
|
StockLevelModel |
getStockLevel(ProductModel product,
WarehouseModel warehouse)
Finds the stock level of the specified product at the specified warehouse.
|
int |
getStockLevelAmount(ProductModel product,
WarehouseModel warehouse)
Finds the stock level of the specified product in the specified warehouse, and calculates the actual available
amount.
|
java.util.Collection<StockLevelModel> |
getStockLevels(ProductModel product,
java.util.Collection<WarehouseModel> warehouses)
Finds all stock levels of the specified product in the specified warehouses.
|
int |
getTotalStockLevelAmount(ProductModel product)
Finds the stock levels of the specified product from all warehouses, and calculates the total actual amount.
|
int |
getTotalStockLevelAmount(ProductModel product,
java.util.Collection<WarehouseModel> warehouses)
Finds all stock levels of the specified product in the specified warehouses, and calculates the total actual
amount.
|
void |
release(ProductModel product,
WarehouseModel warehouse,
int amount,
java.lang.String comment)
Release the product in the specified warehouse.
|
void |
reserve(ProductModel product,
WarehouseModel warehouse,
int amount,
java.lang.String comment)
Reserves the product in the specified warehouse.
|
void |
setInStockStatus(ProductModel product,
java.util.Collection<WarehouseModel> warehouses,
InStockStatus status)
Sets the in stock status of all stock levels of the product in the specified warehouses.
|
void |
updateActualStockLevel(ProductModel product,
WarehouseModel warehouse,
int actualAmount,
java.lang.String comment)
Updates the actual stock level of the specified product in the specified warehouse.
|
static final java.lang.String BEAN_NAME
StockLevelStatus getProductStatus(ProductModel product, WarehouseModel warehouse)
product - the productwarehouse - warehouse of the productStockLevelStatus getProductStatus(ProductModel product, java.util.Collection<WarehouseModel> warehouses)
product - the productwarehouses - warehouses of the productint getTotalStockLevelAmount(ProductModel product)
product - the productStockLevelNotFoundException - if no such StockLevelModel can be foundint getTotalStockLevelAmount(ProductModel product, java.util.Collection<WarehouseModel> warehouses)
product - the productwarehouses - the warehousesStockLevelNotFoundException - if no such StockLevelModel can be foundint getStockLevelAmount(ProductModel product, WarehouseModel warehouse)
product - the productwarehouse - warehouse of the productStockLevelNotFoundException - if no such StockLevelModel can be foundvoid updateActualStockLevel(ProductModel product, WarehouseModel warehouse, int actualAmount, java.lang.String comment)
product - the productwarehouse - the warehouse where product is 'stored'actualAmount - the actual amount of the productcomment - the comment for the update operationvoid reserve(ProductModel product, WarehouseModel warehouse, int amount, java.lang.String comment) throws InsufficientStockLevelException
product - the productwarehouse - the warehouse where product is 'stored'amount - the amount of the reservationcomment - the comment for the reservationInsufficientStockLevelException - if not enough products are available in the stockvoid release(ProductModel product, WarehouseModel warehouse, int amount, java.lang.String comment)
product - the productwarehouse - the warehouse where product is 'stored'amount - the amount of the releasecomment - the comment for the releasevoid setInStockStatus(ProductModel product, java.util.Collection<WarehouseModel> warehouses, InStockStatus status)
product - the productwarehouses - the warehousesstatus - the in stock statusInStockStatus getInStockStatus(ProductModel product, WarehouseModel warehouse)
product - the productwarehouse - the warehousejava.lang.String getAvailability(ProductModel product, WarehouseModel warehouse, java.util.Date date, LanguageModel language)
product - the productwarehouse - the warehousedate - the date the specified quantity has to be available at least (could be null).language - language for which the text should be localizedjava.lang.String getAvailability(ProductModel product, java.util.List<WarehouseModel> warehouses, java.util.Date date, LanguageModel language)
product - the productwarehouses - the warehousesdate - the date the specified quantity has to be available at least (could be null).language - language for which the text should be localizedjava.lang.String getAvailability(ProductModel product, WarehouseModel warehouse, int quantity, LanguageModel language)
product - the productwarehouse - the warehousequantity - the asked quantitylanguage - language for which the text should be localizedjava.lang.String getAvailability(ProductModel product, java.util.List<WarehouseModel> warehouses, int quantity, LanguageModel language)
product - the productwarehouses - the warehousesquantity - the asked quantitylanguage - language for which the text should be localizedWarehouseModel getBestMatchOfQuantity(java.util.Map<WarehouseModel,java.lang.Integer> map)
map - the mapped quantities of a certain productWarehouseModel getBestMatchOfAvailability(java.util.Map<WarehouseModel,java.util.Date> map)
map - the mapped available dates of a certain productStockLevelModel getStockLevel(ProductModel product, WarehouseModel warehouse)
product - the productwarehouse - warehouse of the productjava.util.Collection<StockLevelModel> getAllStockLevels(ProductModel product)
product - the productjava.util.Collection<StockLevelModel> getStockLevels(ProductModel product, java.util.Collection<WarehouseModel> warehouses)
product - the productwarehouses - the warehousesjava.util.Map<WarehouseModel,java.lang.Integer> getAvailability(java.util.List<WarehouseModel> warehouses, ProductModel product, java.util.Date date)
warehouses - the warehousesproduct - the productdate - the date the specified quantity has to be available at least.java.util.Map<WarehouseModel,java.util.Date> getAvailability(java.util.List<WarehouseModel> warehouses, ProductModel product, int preOrderQuantity)
warehouses - the warehousesproduct - the productpreOrderQuantity - the asked min. preOrderQuantityCopyright © 2018 SAP SE. All Rights Reserved.