Class DefaultPageContentSlotContainerFacade
- java.lang.Object
-
- de.hybris.platform.cmsfacades.pagescontentslotscontainers.impl.DefaultPageContentSlotContainerFacade
-
- All Implemented Interfaces:
PageContentSlotContainerFacade
public class DefaultPageContentSlotContainerFacade extends java.lang.Object implements PageContentSlotContainerFacade
Default implementation ofPageContentSlotContainerFacade.
-
-
Constructor Summary
Constructors Constructor Description DefaultPageContentSlotContainerFacade()
-
Method Summary
-
-
-
Method Detail
-
getPageContentSlotContainersByPageId
public java.util.List<PageContentSlotContainerData> getPageContentSlotContainersByPageId(java.lang.String pageId) throws CMSItemNotFoundException
Description copied from interface:PageContentSlotContainerFacadeGet a list of containers with their components for a given page.- Specified by:
getPageContentSlotContainersByPageIdin interfacePageContentSlotContainerFacade- Parameters:
pageId- - the page for which to look up the containers for- Returns:
- list of containers with their component UUIDs; never null
- Throws:
CMSItemNotFoundException- when the page cannot be found
-
buildPageContentSlotContainerStream
protected java.util.stream.Stream<PageContentSlotContainerData> buildPageContentSlotContainerStream(java.lang.String pageId, ContentSlotData contentSlot)
Gets a list of containers data found within a given slot.- Parameters:
pageId- - the page for which to look up the containers forcontentSlot- - the slot for which to look up the containers for- Returns:
- stream of containers data found in the content slot; never null
-
buildPageContentSlotContainer
protected PageContentSlotContainerData buildPageContentSlotContainer(java.lang.String pageId, java.lang.String slotId, AbstractCMSComponentContainerModel container)
Builds the data of a container in a content slot.- Parameters:
pageId- - the page where the content slot resides.slotId- - the slot where the container residescontainer- - the model of the container for which to retrieve its data- Returns:
- the newly built container data; never null
-
getComponentUuid
protected java.util.stream.Stream<java.lang.String> getComponentUuid(AbstractCMSComponentModel component)
Retrieves the UUID of the provided component.- Parameters:
component- - the component for which to retrieve its UUID.- Returns:
- stream containing the component UUID; never null
-
getAdminPageService
protected CMSAdminPageService getAdminPageService()
-
setAdminPageService
public void setAdminPageService(CMSAdminPageService adminPageService)
-
getAdminContentSlotService
protected CMSAdminContentSlotService getAdminContentSlotService()
-
setAdminContentSlotService
public void setAdminContentSlotService(CMSAdminContentSlotService adminContentSlotService)
-
getSessionSearchRestrictionsDisabler
protected SessionSearchRestrictionsDisabler getSessionSearchRestrictionsDisabler()
-
setSessionSearchRestrictionsDisabler
public void setSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler)
-
getAdminComponentService
protected CMSAdminComponentService getAdminComponentService()
-
setAdminComponentService
public void setAdminComponentService(CMSAdminComponentService adminComponentService)
-
getUniqueItemIdentifierService
protected UniqueItemIdentifierService getUniqueItemIdentifierService()
-
setUniqueItemIdentifierService
public void setUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)
-
-