Interface SourcingBanService
-
- All Known Implementing Classes:
DefaultSourcingBanService
public interface SourcingBanServiceThe service is used create and fetch Bans by warehouses
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SourcingBanModelcreateSourcingBan(WarehouseModel warehouseModel)creates Sourcing Banjava.util.Collection<SourcingBanModel>getSourcingBan(java.util.Collection<WarehouseModel> warehouseModels)gets SourcingBan by passing Warehouse
-
-
-
Method Detail
-
createSourcingBan
SourcingBanModel createSourcingBan(WarehouseModel warehouseModel)
creates Sourcing Ban- Parameters:
warehouseModel- warehouse that we want to ban- Returns:
- SourcingBanModel linked to the passed Warehouse, this ban will expire in 1 day by default
-
getSourcingBan
java.util.Collection<SourcingBanModel> getSourcingBan(java.util.Collection<WarehouseModel> warehouseModels)
gets SourcingBan by passing Warehouse- Parameters:
warehouseModels- collection of warehouse that we want to get bans for- Returns:
- collection of SourcingBans that for warehouses that is active within configurable period (1 day by default)
-
-