Class BackofficeThreadContextCreator

  • All Implemented Interfaces:
    com.hybris.cockpitng.engine.operations.LongOperationThreadExecutor, com.hybris.cockpitng.util.CockpitThreadContextCreator
    Direct Known Subclasses:
    CustomBackofficeThreadCreator

    public class BackofficeThreadContextCreator
    extends java.lang.Object
    implements com.hybris.cockpitng.util.CockpitThreadContextCreator
    • Field Detail

      • SPRING_SECURITY_CONTEXT

        protected static final java.lang.String SPRING_SECURITY_CONTEXT
        See Also:
        Constant Field Values
      • SPRING_REQUEST_CONTEXT

        protected static final java.lang.String SPRING_REQUEST_CONTEXT
        See Also:
        Constant Field Values
      • HYBRIS_SESSION_CATALOG_VERSIONS

        protected static final java.lang.String HYBRIS_SESSION_CATALOG_VERSIONS
        See Also:
        Constant Field Values
      • PUBLIC_MEDIA_URL_RENDERER

        protected static final java.lang.String PUBLIC_MEDIA_URL_RENDERER
        See Also:
        Constant Field Values
      • SECURE_MEDIA_URL_RENDERER

        protected static final java.lang.String SECURE_MEDIA_URL_RENDERER
        See Also:
        Constant Field Values
      • MEDIA_SSL_MODE_ENABLED

        public static final java.lang.String MEDIA_SSL_MODE_ENABLED
        See Also:
        Constant Field Values
    • Constructor Detail

      • BackofficeThreadContextCreator

        public BackofficeThreadContextCreator()
    • Method Detail

      • execute

        public void execute​(java.lang.Runnable runnable)
        Specified by:
        execute in interface com.hybris.cockpitng.engine.operations.LongOperationThreadExecutor
      • createThreadContext

        public java.util.Map<java.lang.String,​java.lang.Object> createThreadContext()
        Specified by:
        createThreadContext in interface com.hybris.cockpitng.util.CockpitThreadContextCreator
      • createRequestAttributesCopy

        protected org.springframework.web.context.request.RequestAttributes createRequestAttributesCopy()
      • initThreadContext

        public void initThreadContext​(java.util.Map<java.lang.String,​java.lang.Object> ctx)
        Specified by:
        initThreadContext in interface com.hybris.cockpitng.util.CockpitThreadContextCreator
      • setSessionCatalogVersions

        protected void setSessionCatalogVersions​(java.util.Collection<CatalogVersionModel> catalogVersions)
      • setCurrentLocale

        protected void setCurrentLocale​(java.util.Locale currentLocale)
      • getFromContext

        protected <T> java.util.Optional<T> getFromContext​(java.util.Map<java.lang.String,​java.lang.Object> ctx,
                                                           java.lang.String paramName,
                                                           java.lang.Class<T> paramValueType)
      • cleanUp

        protected void cleanUp​(java.util.Map<java.lang.String,​java.lang.Object> ctx)
      • setCatalogVersionService

        public void setCatalogVersionService​(CatalogVersionService catalogVersionService)
      • setUserService

        public void setUserService​(UserService userService)
      • setI18nService

        public void setI18nService​(I18NService i18nService)
      • setComponentDefinitionService

        public void setComponentDefinitionService​(com.hybris.cockpitng.modules.core.impl.CockpitModuleComponentDefinitionService componentDefinitionService)