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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected org.springframework.web.context.request.RequestAttributesvoidextractRequestAttributesToCopy(javax.servlet.http.HttpServletRequest request) protected List<BackofficeThreadRequestAttributes>getAttributesToCopy(javax.servlet.http.HttpServletRequest request, BackofficeThreadRequestAttributes attributesProvider) protected BackofficeRoleServiceprotected <T> Optional<T>voidinitThreadContext(Map<String, Object> ctx) voidsetAttributes(List<BackofficeThreadRequestAttributes> attributes) voidsetBackofficeRoleService(BackofficeRoleService backofficeRoleService) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetComponentDefinitionService(com.hybris.cockpitng.modules.core.impl.CockpitModuleComponentDefinitionService componentDefinitionService) protected voidsetCurrentLocale(Locale currentLocale) voidsetI18nService(I18NService i18nService) protected voidsetSessionCatalogVersions(Collection<CatalogVersionModel> catalogVersions) voidsetUserService(UserService userService)
-
Field Details
-
MEDIA_SSL_MODE_ENABLED
- See Also:
-
SPRING_SECURITY_CONTEXT
- See Also:
-
SPRING_REQUEST_CONTEXT
- See Also:
-
ZK_SESSION
- See Also:
-
HYBRIS_TENANT
- See Also:
-
CURRENT_LOCALE
- See Also:
-
SESSION_USER
- See Also:
-
HYBRIS_SESSION_CATALOG_VERSIONS
- See Also:
-
PUBLIC_MEDIA_URL_RENDERER
- See Also:
-
SECURE_MEDIA_URL_RENDERER
- See Also:
-
BACKOFFICE_ROLE_ID
- See Also:
-
-
Constructor Details
-
BackofficeThreadContextCreator
public BackofficeThreadContextCreator()
-
-
Method Details
-
execute
- Specified by:
executein interfacecom.hybris.cockpitng.engine.operations.LongOperationThreadExecutor
-
createThreadContext
- Specified by:
createThreadContextin interfacecom.hybris.cockpitng.util.CockpitThreadContextCreator
-
createRequestAttributesCopy
protected org.springframework.web.context.request.RequestAttributes createRequestAttributesCopy() -
extractRequestAttributesToCopy
-
getAttributesToCopy
protected Stream<org.apache.commons.lang3.tuple.Pair<String,Object>> getAttributesToCopy(javax.servlet.http.HttpServletRequest request, BackofficeThreadRequestAttributes attributesProvider) -
initThreadContext
- Specified by:
initThreadContextin interfacecom.hybris.cockpitng.util.CockpitThreadContextCreator
-
setSessionCatalogVersions
-
setCurrentLocale
-
getFromContext
-
cleanUp
-
setCatalogVersionService
-
setUserService
-
setI18nService
-
setComponentDefinitionService
public void setComponentDefinitionService(com.hybris.cockpitng.modules.core.impl.CockpitModuleComponentDefinitionService componentDefinitionService) -
getBackofficeRoleService
-
setBackofficeRoleService
-
getAttributes
-
setAttributes
-