Class DefaultCxCmsContainerStrategy
java.lang.Object
de.hybris.platform.personalizationcms.strategy.DefaultCxCmsContainerStrategy
- All Implemented Interfaces:
CMSComponentContainerStrategy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected booleancontainerMatches(CxCmsActionResult ar, CxCmsComponentContainerModel container) protected CatalogVersionServiceprotected Collection<CatalogVersionModel>getCatalogVersionsForComponent(CxCmsActionResult actionResult) protected CMSComponentServiceprotected SimpleCMSComponentModelgetComponent(CxCmsActionResult actionResult, CxCmsComponentContainerModel container) protected CxServiceprotected SimpleCMSComponentModelgetDefault(AbstractCMSComponentContainerModel container) protected List<AbstractCMSComponentModel>getDisplayComponents(CxCmsComponentContainerModel container) Get the list of components that should represent the state of the container.protected Optional<CxCmsActionResult>getFirstActionResult(List<CxAbstractActionResult> cxActionResults, Collection<String> validActionCodes) protected UserServiceprotected SimpleCMSComponentModelproxyComponent(SimpleCMSComponentModel component, CxCmsComponentContainerModel container, CxAbstractActionResult actionResult) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCmsComponentService(CMSComponentService cmsComponentService) voidsetCxService(CxService cxService) voidsetUserService(UserService userService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cms2.strategies.CMSComponentContainerStrategy
getContainerClass
-
Constructor Details
-
DefaultCxCmsContainerStrategy
public DefaultCxCmsContainerStrategy()
-
-
Method Details
-
getDisplayComponentsForContainer
public List<AbstractCMSComponentModel> getDisplayComponentsForContainer(AbstractCMSComponentContainerModel container) Description copied from interface:CMSComponentContainerStrategyGet the list of components that should represent the state of the container.- Specified by:
getDisplayComponentsForContainerin interfaceCMSComponentContainerStrategy- Parameters:
container- The component container- Returns:
- the list of components that represents the container; never
null
-
getDisplayComponents
protected List<AbstractCMSComponentModel> getDisplayComponents(CxCmsComponentContainerModel container) -
containerMatches
-
catalogVersionFilter
-
getCatalogVersionsForComponent
protected Collection<CatalogVersionModel> getCatalogVersionsForComponent(CxCmsActionResult actionResult) -
proxyComponent
protected SimpleCMSComponentModel proxyComponent(SimpleCMSComponentModel component, CxCmsComponentContainerModel container, CxAbstractActionResult actionResult) -
getFirstActionResult
protected Optional<CxCmsActionResult> getFirstActionResult(List<CxAbstractActionResult> cxActionResults, Collection<String> validActionCodes) -
getComponent
protected SimpleCMSComponentModel getComponent(CxCmsActionResult actionResult, CxCmsComponentContainerModel container) -
getDefault
-
getCmsComponentService
-
getCxService
-
getUserService
-
getCatalogVersionService
-
setUserService
-
setCmsComponentService
-
setCxService
-
setCatalogVersionService
-