public interface StockService
StockLevelModel.
StockLevelModel.
StockLevelModel.
StockLevelModel.
| Modifier and Type | Method and Description |
|---|---|
Collection<StockLevelModel> |
getAllStockLevels(ProductModel product)
Finds the stock levels of the specified product from all warehouses.
|
Map<WarehouseModel,Integer> |
getAvailability(List<WarehouseModel> warehouses,
ProductModel product,
Date date)
Gets the product quantity for the specified product, warehouses and date.
|
Map<WarehouseModel,Date> |
getAvailability(List<WarehouseModel> warehouses,
ProductModel product,
int preOrderQuantity)
Returns product availability, passing product, and quantity as parameters.
|
String |
getAvailability(ProductModel product,
List<WarehouseModel> warehouses,
Date date,
LanguageModel language)
Gets the available quantity of the product for the specified warehouses.
|
String |
getAvailability(ProductModel product,
List<WarehouseModel> warehouses,
int quantity,
LanguageModel language)
Gets availability date by invoking strategy for calculating product availability, passing product, quantity and
warehouses as parameters.
|
String |
getAvailability(ProductModel product,
WarehouseModel warehouse,
Date date,
LanguageModel language)
Gets the available quantity of the product for the specified warehouse.
|
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(Map<WarehouseModel,Date> map)
Returns the warehouse which offers the "best" product "availability" .
|
WarehouseModel |
getBestMatchOfQuantity(Map<WarehouseModel,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,
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.
|
Collection<StockLevelModel> |
getStockLevels(ProductModel product,
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,
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,
String comment)
Release the product in the specified warehouse.
|
void |
reserve(ProductModel product,
WarehouseModel warehouse,
int amount,
String comment)
Reserves the product in the specified warehouse.
|
void |
setInStockStatus(ProductModel product,
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,
String comment)
Updates the actual stock level of the specified product in the specified warehouse.
|
static final String BEAN_NAME
StockLevelStatus getProductStatus(ProductModel product, WarehouseModel warehouse)
product - the productwarehouse - warehouse of the productStockLevelStatus getProductStatus(ProductModel product, 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, 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, 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, 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, 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, Collection<WarehouseModel> warehouses, InStockStatus status)
product - the productwarehouses - the warehousesstatus - the in stock statusInStockStatus getInStockStatus(ProductModel product, WarehouseModel warehouse)
product - the productwarehouse - the warehouseString getAvailability(ProductModel product, WarehouseModel warehouse, 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 localizedString getAvailability(ProductModel product, List<WarehouseModel> warehouses, 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 localizedString getAvailability(ProductModel product, WarehouseModel warehouse, int quantity, LanguageModel language)
product - the productwarehouse - the warehousequantity - the asked quantitylanguage - String getAvailability(ProductModel product, List<WarehouseModel> warehouses, int quantity, LanguageModel language)
product - the productwarehouses - the warehousesquantity - the asked quantitylanguage - WarehouseModel getBestMatchOfQuantity(Map<WarehouseModel,Integer> map)
map - the mapped quantities of a certain productWarehouseModel getBestMatchOfAvailability(Map<WarehouseModel,Date> map)
map - the mapped available dates of a certain productStockLevelModel getStockLevel(ProductModel product, WarehouseModel warehouse)
product - the productwarehouse - warehouse of the productCollection<StockLevelModel> getAllStockLevels(ProductModel product)
product - the productCollection<StockLevelModel> getStockLevels(ProductModel product, Collection<WarehouseModel> warehouses)
product - the productwarehouses - the warehousesMap<WarehouseModel,Integer> getAvailability(List<WarehouseModel> warehouses, ProductModel product, Date date)
warehouses - the warehousesproduct - the productdate - the date the specified quantity has to be available at least.Map<WarehouseModel,Date> getAvailability(List<WarehouseModel> warehouses, ProductModel product, int preOrderQuantity)
warehouses - the warehousesproduct - the productpreOrderQuantity - the asked min. preOrderQuantityCopyright © 2017 SAP SE. All Rights Reserved.