Class YFormsBackofficeConfigExtender

java.lang.Object
de.hybris.platform.xyformsbackoffice.core.YFormsBackofficeConfigExtender

public class YFormsBackofficeConfigExtender extends Object
Allows for extending cockpit configuration service functionality by adding additional strategies and adapters. Should be used as a spring bean to add additional properties to existing cockpit configuration service without creating a new cockpit configuration service bean. It adds the specified properties to the injected configuration service after the application context was initialized. It removes these properties before the application context is destroyed.
  • Constructor Details

    • YFormsBackofficeConfigExtender

      public YFormsBackofficeConfigExtender()
  • Method Details

    • addAll

      @PostConstruct public void addAll()
      Executed after application context was initialized. Adds specified properties to the cockpit configuration service.
    • removeAll

      @PreDestroy public void removeAll()
      Executed before application context is destroyed. Removes specified properties from the cockpit configuration service.
    • getContextStrategies

      public Map<String,com.hybris.cockpitng.core.config.CockpitConfigurationContextStrategy> getContextStrategies()
      Context strategies to be added.
      Returns:
      context strategies to be added
    • setContextStrategies

      public void setContextStrategies(Map<String,com.hybris.cockpitng.core.config.CockpitConfigurationContextStrategy> contextStrategies)
      Sets context strategies to be added.
      Parameters:
      contextStrategies - context strategies to be added
    • getFallbackStrategies

      public Map<String,List<com.hybris.cockpitng.core.config.CockpitConfigurationFallbackStrategy>> getFallbackStrategies()
      Fallback strategies to be added.
      Returns:
      fallback strategies to be added
    • setFallbackStrategies

      public void setFallbackStrategies(Map<String,List<com.hybris.cockpitng.core.config.CockpitConfigurationFallbackStrategy>> fallbackStrategies)
      Sets fallback strategies to be added.
      Parameters:
      fallbackStrategies - fallback strategies to be added
    • getAdapters

      public Map<Map<String,String>,com.hybris.cockpitng.core.config.CockpitConfigurationAdapter<?>> getAdapters()
      Adapters to be added.
      Returns:
      adapters to be added
    • setAdapters

      public void setAdapters(Map<Map<String,String>,com.hybris.cockpitng.core.config.CockpitConfigurationAdapter<?>> adapters)
      Sets adapters to be added.
      Parameters:
      adapters - adapters to be added
    • getContextDecorators

      public List<com.hybris.cockpitng.core.config.WidgetConfigurationContextDecorator> getContextDecorators()
      Context decorators to be added.
      Returns:
      contextDecorators to be added
    • setContextDecorators

      public void setContextDecorators(List<com.hybris.cockpitng.core.config.WidgetConfigurationContextDecorator> contextDecorators)
      Set context decorators to be added.
      Parameters:
      contextDecorators - context decorators to be added
    • getConfigurationService

      public com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService getConfigurationService()
      Configuration service to add additional properties to.
      Returns:
      configuration service to extend
    • setConfigurationService

      public void setConfigurationService(com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService configurationService)
      Sets configuration service to add additional properties to.
      Parameters:
      configurationService - configuration service to extend
    • setWidgetConfigurationContextDecoratorList

      public void setWidgetConfigurationContextDecoratorList(List<com.hybris.cockpitng.core.config.WidgetConfigurationContextDecorator> configContextDecoratorList)
      Sets context decorator list to extend.
      Parameters:
      configContextDecoratorList - context decorator list to be extended
    • setAdaptersToRemove

      public void setAdaptersToRemove(Map<Map<String,String>,com.hybris.cockpitng.core.config.CockpitConfigurationAdapter<?>> adaptersToRemove)