Class BackofficeCockpitConfigurationService

  • All Implemented Interfaces:
    com.hybris.cockpitng.core.config.CockpitConfigurationService, com.hybris.cockpitng.core.util.Resettable, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
    Direct Known Subclasses:
    TestingBackofficeCockpitConfigurationService

    public class BackofficeCockpitConfigurationService
    extends com.hybris.cockpitng.modules.config.impl.ModuleAwareCockpitConfigurationService
    Backoffice extension of the ModuleAwareCockpitConfigurationService. The implementation uses MediaModel to persist the xml content.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String COCKPITNG_CONFIG
      Deprecated.
      since 1811, the code will be removed
      static java.lang.String MIME_TYPE
      Deprecated.
      since 1811, the code will be removed
      • Fields inherited from class com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService

        CHARSET_NAME, obligatoryMergeAttributes
    • Field Detail

      • COCKPITNG_CONFIG

        @Deprecated
        public static final java.lang.String COCKPITNG_CONFIG
        Deprecated.
        since 1811, the code will be removed
        See Also:
        Constant Field Values
      • MIME_TYPE

        @Deprecated
        public static final java.lang.String MIME_TYPE
        Deprecated.
        since 1811, the code will be removed
        See Also:
        Constant Field Values
    • Constructor Detail

      • BackofficeCockpitConfigurationService

        public BackofficeCockpitConfigurationService()
    • Method Detail

      • getInputStreamForMedia

        @Deprecated
        protected java.io.InputStream getInputStreamForMedia​(MediaModel media)
        Deprecated.
        since 1811, the code will be removed
      • getConfigFileOutputStream

        @Deprecated
        protected java.io.ByteArrayOutputStream getConfigFileOutputStream()
        Deprecated.
        since 1811, the code will be removed
        Overrides:
        getConfigFileOutputStream in class com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService
      • getCockpitNGConfig

        @Deprecated
        protected MediaModel getCockpitNGConfig()
                                         throws com.hybris.cockpitng.core.config.CockpitConfigurationException
        Deprecated.
        since 1811, the code will be removed
        Get the media by code. If there is no media createConfigFile() will be called.
        Throws:
        com.hybris.cockpitng.core.config.CockpitConfigurationException
      • resetToDefaults

        public void resetToDefaults()
        Specified by:
        resetToDefaults in interface com.hybris.cockpitng.core.config.CockpitConfigurationService
        Overrides:
        resetToDefaults in class com.hybris.cockpitng.modules.config.impl.ModuleAwareCockpitConfigurationService
      • getDefaultCockpitConfigAsStream

        protected java.io.InputStream getDefaultCockpitConfigAsStream()
      • putConfigToCache

        protected <C> void putConfigToCache​(com.hybris.cockpitng.core.config.ConfigContext context,
                                            java.lang.Class<C> configType,
                                            C config)
        Overrides:
        putConfigToCache in class com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService
      • getCurrentTimeInMillis

        protected long getCurrentTimeInMillis()
        Overrides:
        getCurrentTimeInMillis in class com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService
      • getMediaService

        @Deprecated
        protected MediaService getMediaService()
        Deprecated.
        since 1811
      • setMediaService

        @Deprecated
        public void setMediaService​(MediaService mediaService)
        Deprecated.
        since 1811
      • getModelService

        @Deprecated
        protected ModelService getModelService()
        Deprecated.
        since 1811
      • setModelService

        @Deprecated
        public void setModelService​(ModelService modelService)
        Deprecated.
        since 1811
      • getTypeService

        protected TypeService getTypeService()
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • getSessionService

        @Deprecated
        protected SessionService getSessionService()
        Deprecated.
        since 1811
      • setSessionService

        @Deprecated
        public void setSessionService​(SessionService sessionService)
        Deprecated.
        since 1811
      • getUserService

        @Deprecated
        protected UserService getUserService()
        Deprecated.
        since 1811
      • setUserService

        @Deprecated
        public void setUserService​(UserService userService)
        Deprecated.
        since 1811
      • getTimeService

        protected TimeService getTimeService()
      • setTimeService

        public void setTimeService​(TimeService timeService)
      • setBackofficeConfigurationMediaHelper

        @Deprecated
        public void setBackofficeConfigurationMediaHelper​(BackofficeConfigurationMediaHelper backofficeConfigurationMediaHelper)
        Deprecated.
        since 1811
      • getDefaultConfigFile

        public java.lang.String getDefaultConfigFile()
      • setDefaultConfigFile

        public void setDefaultConfigFile​(java.lang.String defaultConfigFile)