Class DefaultSourcingBanService
java.lang.Object
de.hybris.platform.warehousing.sourcing.ban.service.impl.DefaultSourcingBanService
- All Implemented Interfaces:
SourcingBanService
The default implementation of
SourcingBanService-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSourcingBan(WarehouseModel warehouse) creates Sourcing Banprotected ConfigurationServiceprotected DateCalculates the current date - # of ban days according to a property.protected ModelServicegetSourcingBan(Collection<WarehouseModel> warehouses) gets SourcingBan by passing Warehouseprotected SourcingBanDaoprotected TimeServicevoidsetConfigurationService(ConfigurationService configurationService) voidsetModelService(ModelService modelService) voidsetSourcingBanDao(SourcingBanDao sourcingBanDao) voidsetTimeService(TimeService timeService)
-
Field Details
-
BAN_DAYS
- See Also:
-
-
Constructor Details
-
DefaultSourcingBanService
public DefaultSourcingBanService()
-
-
Method Details
-
createSourcingBan
Description copied from interface:SourcingBanServicecreates Sourcing Ban- Specified by:
createSourcingBanin interfaceSourcingBanService- Parameters:
warehouse- warehouse that we want to ban- Returns:
- SourcingBanModel linked to the passed Warehouse, this ban will expire in 1 day by default
-
getSourcingBan
Description copied from interface:SourcingBanServicegets SourcingBan by passing Warehouse- Specified by:
getSourcingBanin interfaceSourcingBanService- Parameters:
warehouses- 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)
-
getCurrentDateMinusBannedDays
Calculates the current date - # of ban days according to a property. -
getSourcingBanDao
-
setSourcingBanDao
-
getModelService
-
setModelService
-
getConfigurationService
-
setConfigurationService
-
getTimeService
-
setTimeService
-