Class DefaultProcessContextResolutionStrategy
java.lang.Object
de.hybris.platform.acceleratorservices.process.strategies.impl.DefaultProcessContextResolutionStrategy
- All Implemented Interfaces:
ProcessContextResolutionStrategy<BaseSiteModel>
- Direct Known Subclasses:
B2BAcceleratorProcessContextResolutionStrategy
public class DefaultProcessContextResolutionStrategy
extends Object
implements ProcessContextResolutionStrategy<BaseSiteModel>
Default strategy to impersonate site and initialize session context from the process model. It resolves the correct
strategy to use based on the BusinessProcessModel type and delegates execution to it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCmsSite(BusinessProcessModel businessProcessModel) Resolves site to be used for the given business process.getContentCatalogVersion(BusinessProcessModel businessProcessModel) Resolves content catalog version to be used for the given business process.protected Map<Class<?>,ProcessContextResolutionStrategy<BaseSiteModel>> protected Optional<ProcessContextResolutionStrategy<BaseSiteModel>>getStrategy(BusinessProcessModel businessProcessModel) voidinitializeContext(BusinessProcessModel businessProcessModel) Impersonate site, and initializes session currency and session language for the given business process.voidsetProcessStrategyMap(Map<Class<?>, ProcessContextResolutionStrategy<BaseSiteModel>> processStrategyMap)
-
Constructor Details
-
DefaultProcessContextResolutionStrategy
public DefaultProcessContextResolutionStrategy()
-
-
Method Details
-
initializeContext
Description copied from interface:ProcessContextResolutionStrategyImpersonate site, and initializes session currency and session language for the given business process.- Specified by:
initializeContextin interfaceProcessContextResolutionStrategy<BaseSiteModel>- Parameters:
businessProcessModel- the business process
-
getContentCatalogVersion
Description copied from interface:ProcessContextResolutionStrategyResolves content catalog version to be used for the given business process.- Specified by:
getContentCatalogVersionin interfaceProcessContextResolutionStrategy<BaseSiteModel>- Parameters:
businessProcessModel- the business process- Returns:
- the content catalog version
-
getCmsSite
Description copied from interface:ProcessContextResolutionStrategyResolves site to be used for the given business process.- Specified by:
getCmsSitein interfaceProcessContextResolutionStrategy<BaseSiteModel>- Parameters:
businessProcessModel- the business process- Returns:
- the cms site
-
getStrategy
protected Optional<ProcessContextResolutionStrategy<BaseSiteModel>> getStrategy(BusinessProcessModel businessProcessModel) -
getProcessStrategyMap
-
setProcessStrategyMap
public void setProcessStrategyMap(Map<Class<?>, ProcessContextResolutionStrategy<BaseSiteModel>> processStrategyMap)
-