Class DefaultSourcingBanService

java.lang.Object
de.hybris.platform.warehousing.sourcing.ban.service.impl.DefaultSourcingBanService
All Implemented Interfaces:
SourcingBanService

public class DefaultSourcingBanService extends Object implements SourcingBanService
The default implementation of SourcingBanService
  • Field Details

  • Constructor Details

    • DefaultSourcingBanService

      public DefaultSourcingBanService()
  • Method Details

    • createSourcingBan

      public SourcingBanModel createSourcingBan(WarehouseModel warehouse)
      Description copied from interface: SourcingBanService
      creates Sourcing Ban
      Specified by:
      createSourcingBan in interface SourcingBanService
      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

      public Collection<SourcingBanModel> getSourcingBan(Collection<WarehouseModel> warehouses)
      Description copied from interface: SourcingBanService
      gets SourcingBan by passing Warehouse
      Specified by:
      getSourcingBan in interface SourcingBanService
      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

      protected Date getCurrentDateMinusBannedDays()
      Calculates the current date - # of ban days according to a property.
    • getSourcingBanDao

      protected SourcingBanDao getSourcingBanDao()
    • setSourcingBanDao

      public void setSourcingBanDao(SourcingBanDao sourcingBanDao)
    • getModelService

      protected ModelService getModelService()
    • setModelService

      public void setModelService(ModelService modelService)
    • getConfigurationService

      protected ConfigurationService getConfigurationService()
    • setConfigurationService

      public void setConfigurationService(ConfigurationService configurationService)
    • getTimeService

      protected TimeService getTimeService()
    • setTimeService

      public void setTimeService(TimeService timeService)