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_TYPEFields inherited from class com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService
CHARSET_NAME, obligatoryMergeAttributes, PROPERTY_READ_ATTEMPT_TIMEOUT, PROPERTY_WRITE_ATTEMPT_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcacheRootConfiguration(com.hybris.cockpitng.core.config.impl.jaxb.Config rootConfig, long cacheTimestamp) voidRemoves any customization to configuration that has been applied earlier.protected voidOptional<com.hybris.cockpitng.core.config.impl.jaxb.Config>protected org.springframework.core.io.ResourceLoadervoidsetCustomConfiguration(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 configurationvoidsetCustomConfiguration(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 configurationprotected voidsetCustomConfigurationImmediately(com.hybris.cockpitng.core.config.impl.jaxb.Config customConfiguration, String source) protected voidsetCustomConfigurationImmediately(String customConfiguration, 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, setUserServiceMethods inherited from class com.hybris.cockpitng.modules.config.impl.ModuleAwareCockpitConfigurationService
getApplicationContext, getCockpitModuleConnector, getLOG, setApplicationContext, setCockpitModuleConnector, setWidgetLibUtilsMethods 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, withDelayedWriteMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
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
-
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 appendedsource- name of a source for applied custom configuration
-
setCustomConfigurationImmediately
protected void setCustomConfigurationImmediately(com.hybris.cockpitng.core.config.impl.jaxb.Config customConfiguration, String source) -
setCustomConfiguration
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
-
getResourceLoader
protected org.springframework.core.io.ResourceLoader getResourceLoader() -
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
-