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