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
-
-
Constructor Summary
Constructors Constructor Description TestingBackofficeCockpitConfigurationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcacheRootConfiguration(com.hybris.cockpitng.core.config.impl.jaxb.Config rootConfig, long cacheTimestamp)voidclearCustomConfiguration()Removes any customization to configuration that has been applied earlier.protected voidclearCustomConfigurationImmediately()java.util.Optional<com.hybris.cockpitng.core.config.impl.jaxb.Config>getCustomConfiguration()protected org.springframework.core.io.ResourceLoadergetResourceLoader()voidsetCustomConfiguration(com.hybris.cockpitng.core.config.impl.jaxb.Config customConfiguration, java.lang.String source)Sets additional custom configuration that should be appended to the one loaded from system configurationvoidsetCustomConfiguration(java.lang.String customConfiguration, java.lang.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 configurationprotected voidsetCustomConfigurationImmediately(com.hybris.cockpitng.core.config.impl.jaxb.Config customConfiguration, java.lang.String source)protected voidsetCustomConfigurationImmediately(java.lang.String customConfiguration, java.lang.String source)voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)protected voidupdateMainConfig(com.hybris.cockpitng.core.config.impl.jaxb.Config mainRootConfig, com.hybris.cockpitng.core.config.impl.jaxb.Config rootConfig)protected voidupdateMainConfig(com.hybris.cockpitng.core.config.impl.jaxb.Config mainRootConfig, com.hybris.cockpitng.core.config.impl.jaxb.Context context)-
Methods inherited from class com.hybris.backoffice.config.impl.BackofficeCockpitConfigurationService
createConfigFile, getBackofficeConfigurationMediaHelper, getCockpitNGConfig, getConfigFileOutputStream, getCurrentTimeInMillis, getDefaultCockpitConfigAsStream, getDefaultConfigFile, getInputStreamForMedia, getMediaService, getModelService, getSessionService, getTimeService, getTypeService, getUserService, putConfigToCacheImmediately, resetToDefaultsInternal, setBackofficeConfigurationMediaHelper, setDefaultConfigFile, setMediaService, setModelService, setResetTrigger, setSessionService, setTimeService, setTypeService, setUserService
-
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, 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
-
-
-
-
Method Detail
-
cacheRootConfiguration
protected void cacheRootConfiguration(com.hybris.cockpitng.core.config.impl.jaxb.Config rootConfig, long cacheTimestamp)- Overrides:
cacheRootConfigurationin classcom.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 java.util.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:
setCustomConfiguration(Config, String)
-
clearCustomConfigurationImmediately
protected void clearCustomConfigurationImmediately()
-
setCustomConfiguration
public void setCustomConfiguration(com.hybris.cockpitng.core.config.impl.jaxb.Config customConfiguration, java.lang.String source)Sets additional custom configuration that should be appended to the one loaded from system configuration- Parameters:
customConfiguration- configuration to be appendedsource- name of a source for applied custom configuration
-
setCustomConfigurationImmediately
protected void setCustomConfigurationImmediately(com.hybris.cockpitng.core.config.impl.jaxb.Config customConfiguration, java.lang.String source)
-
setCustomConfiguration
public void setCustomConfiguration(java.lang.String customConfiguration, java.lang.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 applysource- source of snippet
-
setCustomConfigurationImmediately
protected void setCustomConfigurationImmediately(java.lang.String customConfiguration, java.lang.String source)
-
getResourceLoader
protected org.springframework.core.io.ResourceLoader getResourceLoader()
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
-
-