public class DefaultSourcingBanService extends java.lang.Object implements SourcingBanService
SourcingBanService| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
BAN_DAYS |
| Constructor and Description |
|---|
DefaultSourcingBanService() |
| Modifier and Type | Method and Description |
|---|---|
SourcingBanModel |
createSourcingBan(WarehouseModel warehouse)
creates Sourcing Ban
|
protected ConfigurationService |
getConfigurationService() |
protected java.util.Date |
getCurrentDateMinusBannedDays()
Calculates the current date - # of ban days according to a property.
|
protected ModelService |
getModelService() |
java.util.Collection<SourcingBanModel> |
getSourcingBan(java.util.Collection<WarehouseModel> warehouses)
gets SourcingBan by passing Warehouse
|
protected SourcingBanDao |
getSourcingBanDao() |
protected TimeService |
getTimeService() |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setModelService(ModelService modelService) |
void |
setSourcingBanDao(SourcingBanDao sourcingBanDao) |
void |
setTimeService(TimeService timeService) |
protected static final java.lang.String BAN_DAYS
public SourcingBanModel createSourcingBan(WarehouseModel warehouse)
SourcingBanServicecreateSourcingBan in interface SourcingBanServicewarehouse - warehouse that we want to banpublic java.util.Collection<SourcingBanModel> getSourcingBan(java.util.Collection<WarehouseModel> warehouses)
SourcingBanServicegetSourcingBan in interface SourcingBanServicewarehouses - collection of warehouse that we want to get bans forprotected java.util.Date getCurrentDateMinusBannedDays()
protected SourcingBanDao getSourcingBanDao()
public void setSourcingBanDao(SourcingBanDao sourcingBanDao)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
protected TimeService getTimeService()
public void setTimeService(TimeService timeService)
Copyright © 2018 SAP SE. All Rights Reserved.