Class TestingBackofficeCockpitConfigurationService

java.lang.Object
com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService
com.hybris.cockpitng.modules.config.impl.ModuleAwareCockpitConfigurationService
com.hybris.backoffice.config.impl.BackofficeCockpitConfigurationService
com.hybris.backoffice.config.impl.TestingBackofficeCockpitConfigurationService
All Implemented Interfaces:
com.hybris.cockpitng.core.config.CockpitConfigurationService, com.hybris.cockpitng.core.util.Resettable, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class TestingBackofficeCockpitConfigurationService extends BackofficeCockpitConfigurationService
Configuration service used for testing purposes. Allows injection of custom configuration snippets.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService

    com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService.CacheOperation, com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService.CacheOperationWithResult, com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService.LockState
  • Field Summary

    Fields inherited from class com.hybris.backoffice.config.impl.BackofficeCockpitConfigurationService

    COCKPITNG_CONFIG, MIME_TYPE

    Fields inherited from class com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService

    CHARSET_NAME, obligatoryMergeAttributes, PROPERTY_READ_ATTEMPT_TIMEOUT, PROPERTY_WRITE_ATTEMPT_TIMEOUT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    cacheRootConfiguration(com.hybris.cockpitng.core.config.impl.jaxb.Config rootConfig, long cacheTimestamp)
     
    void
    Removes any customization to configuration that has been applied earlier.
    protected void
     
    Optional<com.hybris.cockpitng.core.config.impl.jaxb.Config>
     
    protected org.springframework.core.io.ResourceLoader
     
    void
    setCustomConfiguration(com.hybris.cockpitng.core.config.impl.jaxb.Config customConfiguration, String source)
    Sets additional custom configuration that should be appended to the one loaded from system configuration
    void
    setCustomConfiguration(String customConfiguration, String source)
    Sets additional custom configuration that should be appended to the one loaded from system configuration @param customConfiguration configuration XML to be parsed and appended @param source name of a source for applied custom configuration
    protected void
    setCustomConfigurationImmediately(com.hybris.cockpitng.core.config.impl.jaxb.Config customConfiguration, String source)
     
    protected void
    setCustomConfigurationImmediately(String customConfiguration, String source)
     
    void
    setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
     
    protected void
    updateMainConfig(com.hybris.cockpitng.core.config.impl.jaxb.Config mainRootConfig, com.hybris.cockpitng.core.config.impl.jaxb.Config rootConfig)
     
    protected void
    updateMainConfig(com.hybris.cockpitng.core.config.impl.jaxb.Config mainRootConfig, com.hybris.cockpitng.core.config.impl.jaxb.Context context)
     

    Methods inherited from class com.hybris.cockpitng.modules.config.impl.ModuleAwareCockpitConfigurationService

    getApplicationContext, getCockpitModuleConnector, getLOG, setApplicationContext, setCockpitModuleConnector, setWidgetLibUtils

    Methods inherited from class com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService

    acquireReadLock, acquireWriteLock, adaptConfigAfterLoad, adaptConfigBeforeMerge, assureSecure, buildConfigurationContext, cacheMustBeInvalidated, commitRootConfig, convertAttributes, convertConfigToString, createContextSearchTerms, createHighestRelevance, createMergeRelevance, createParentRestriction, createSearchProgress, createSearchRequest, createSearchTerms, createUpdatedSearchTerms, executeReadOperation, executeReadOperation, executeWriteOperation, findContext, findContext, findContextImmediately, getAdapters, getCacheValue, getCockpitProperties, getConfigAsString, getConfigAsStringImmediately, getConfigFileInputStream, getConfigFromCache, getConfigFromCacheImmediately, getConfigTypesAdapters, getConfigurationCache, getContext, getContextImmediately, getContextStrategies, getFallbackStrategies, getImportSupport, getLastModification, getMergeUtils, getNamespaceReplacements, getPersistenceStrategy, getRelevanceZones, getRootConfig, getRootConfigImmediately, getRootDir, getWidgetConfigurationContextDecoratorList, invalidateAttributesCache, invalidateAttributesCacheImmediately, invalidateConfigurationCache, invalidateConfigurationCacheImmediately, invalidateRootConfigurationCache, invalidateRootConfigurationCacheImmediately, isRootConfigurationCacheValid, loadConfiguration, loadConfiguration, loadConfiguration, loadConfigurationImmediately, loadConfigurationImmediately, loadRootConfigImmediately, loadRootConfiguration, loadRootConfiguration, logContextSearchProgress, logContextSearchResults, mergeContexts, onCacheInvalidation, putConfigToCache, releaseReadLock, releaseWriteLock, reset, resetToDefaults, setAdapters, setCockpitConfigValidator, setCockpitProperties, setConfigAsString, setConfigAsStringImmediately, setConfigTypesAdapters, setConfigurationCache, setContext, setContextImmediately, setContextStrategies, setFallbackStrategies, setImportSupport, setJaxbContextFactory, setMergeUtils, setNamespaceReplacements, setObligatoryMergeAttributes, setObligatoryMergeAttributesImmediately, setPersistenceStrategy, setWidgetConfigurationContextDecoratorList, storeConfigElement, storeConfiguration, storeConfigurationImmediately, storeRootConfig, storeRootConfigImmediately, validate, withDelayedWrite

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.hybris.cockpitng.core.config.CockpitConfigurationService

    getChangesAsConfig, getConfigAsString
  • Constructor Details

    • TestingBackofficeCockpitConfigurationService

      public TestingBackofficeCockpitConfigurationService()
  • Method Details

    • cacheRootConfiguration

      protected void cacheRootConfiguration(com.hybris.cockpitng.core.config.impl.jaxb.Config rootConfig, long cacheTimestamp)
      Overrides:
      cacheRootConfiguration in class com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService
    • updateMainConfig

      protected void updateMainConfig(com.hybris.cockpitng.core.config.impl.jaxb.Config mainRootConfig, com.hybris.cockpitng.core.config.impl.jaxb.Config rootConfig)
    • updateMainConfig

      protected void updateMainConfig(com.hybris.cockpitng.core.config.impl.jaxb.Config mainRootConfig, com.hybris.cockpitng.core.config.impl.jaxb.Context context)
    • getCustomConfiguration

      public Optional<com.hybris.cockpitng.core.config.impl.jaxb.Config> getCustomConfiguration()
    • clearCustomConfiguration

      public void clearCustomConfiguration()
      Removes any customization to configuration that has been applied earlier.
      See Also:
    • clearCustomConfigurationImmediately

      protected void clearCustomConfigurationImmediately()
    • setCustomConfiguration

      public void setCustomConfiguration(com.hybris.cockpitng.core.config.impl.jaxb.Config customConfiguration, String source)
      Sets additional custom configuration that should be appended to the one loaded from system configuration
      Parameters:
      customConfiguration - configuration to be appended
      source - name of a source for applied custom configuration
    • setCustomConfigurationImmediately

      protected void setCustomConfigurationImmediately(com.hybris.cockpitng.core.config.impl.jaxb.Config customConfiguration, String source)
    • setCustomConfiguration

      public void setCustomConfiguration(String customConfiguration, String source)
      Sets additional custom configuration that should be appended to the one loaded from system configuration @param customConfiguration configuration XML to be parsed and appended @param source name of a source for applied custom configuration
      Parameters:
      customConfiguration - custom configuration snippet to apply
      source - source of snippet
    • setCustomConfigurationImmediately

      protected void setCustomConfigurationImmediately(String customConfiguration, String source)
    • getResourceLoader

      protected org.springframework.core.io.ResourceLoader getResourceLoader()
    • setResourceLoader

      public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)