Class DefaultPageContentSlotContainerFacade
java.lang.Object
de.hybris.platform.cmsfacades.pagescontentslotscontainers.impl.DefaultPageContentSlotContainerFacade
- All Implemented Interfaces:
PageContentSlotContainerFacade
public class DefaultPageContentSlotContainerFacade
extends Object
implements PageContentSlotContainerFacade
Default implementation of
PageContentSlotContainerFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PageContentSlotContainerDatabuildPageContentSlotContainer(String pageId, String slotId, AbstractCMSComponentContainerModel container) Builds the data of a container in a content slot.protected Stream<PageContentSlotContainerData>buildPageContentSlotContainerStream(String pageId, ContentSlotData contentSlot) Gets a list of containers data found within a given slot.protected CMSAdminComponentServiceprotected CMSAdminContentSlotServiceprotected CMSAdminPageServicegetComponentUuid(AbstractCMSComponentModel component) Retrieves the UUID of the provided component.Get a list of containers with their components for a given page.protected SessionSearchRestrictionsDisablerprotected UniqueItemIdentifierServicevoidsetAdminComponentService(CMSAdminComponentService adminComponentService) voidsetAdminContentSlotService(CMSAdminContentSlotService adminContentSlotService) voidsetAdminPageService(CMSAdminPageService adminPageService) voidsetSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler) voidsetUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)
-
Constructor Details
-
DefaultPageContentSlotContainerFacade
public DefaultPageContentSlotContainerFacade()
-
-
Method Details
-
getPageContentSlotContainersByPageId
public List<PageContentSlotContainerData> getPageContentSlotContainersByPageId(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 Stream<PageContentSlotContainerData> buildPageContentSlotContainerStream(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(String pageId, 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
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
-
setAdminPageService
-
getAdminContentSlotService
-
setAdminContentSlotService
-
getSessionSearchRestrictionsDisabler
-
setSessionSearchRestrictionsDisabler
public void setSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler sessionSearchRestrictionsDisabler) -
getAdminComponentService
-
setAdminComponentService
-
getUniqueItemIdentifierService
-
setUniqueItemIdentifierService
-