Class BackofficeThreadContextCreator

java.lang.Object
com.hybris.backoffice.cockpitng.util.BackofficeThreadContextCreator
All Implemented Interfaces:
com.hybris.cockpitng.engine.operations.LongOperationThreadExecutor, com.hybris.cockpitng.util.CockpitThreadContextCreator
Direct Known Subclasses:
CustomBackofficeThreadCreator

public class BackofficeThreadContextCreator extends Object implements com.hybris.cockpitng.util.CockpitThreadContextCreator
  • Field Details

  • Constructor Details

    • BackofficeThreadContextCreator

      public BackofficeThreadContextCreator()
  • Method Details

    • execute

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

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

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

      protected Map<String,Object> extractRequestAttributesToCopy(javax.servlet.http.HttpServletRequest request)
    • getAttributesToCopy

      protected Stream<org.apache.commons.lang3.tuple.Pair<String,Object>> getAttributesToCopy(javax.servlet.http.HttpServletRequest request, BackofficeThreadRequestAttributes attributesProvider)
    • initThreadContext

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

      protected void setSessionCatalogVersions(Collection<CatalogVersionModel> catalogVersions)
    • setCurrentLocale

      protected void setCurrentLocale(Locale currentLocale)
    • getFromContext

      protected <T> Optional<T> getFromContext(Map<String,Object> ctx, String paramName, Class<T> paramValueType)
    • cleanUp

      protected void cleanUp(Map<String,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)
    • getBackofficeRoleService

      protected BackofficeRoleService getBackofficeRoleService()
    • setBackofficeRoleService

      public void setBackofficeRoleService(BackofficeRoleService backofficeRoleService)
    • getAttributes

      protected List<BackofficeThreadRequestAttributes> getAttributes()
    • setAttributes

      public void setAttributes(List<BackofficeThreadRequestAttributes> attributes)