public interface CMSContentSlotService
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAvailableContentSlotsNames(AbstractPageModel page)
Gets the available content slots names and return them as semicolon separated string ("foo; bar; baz").
|
ContentSlotModel |
getContentSlotForId(java.lang.String id)
Gets the content slot for given id.
|
java.util.List<java.lang.String> |
getDefinedContentSlotPositions(AbstractPageModel page)
Gets the defined content slot positions.
|
java.util.List<java.lang.String> |
getDefinedContentSlotPositions(PageTemplateModel pageTemplate)
Gets the defined content slot positions.
|
java.lang.String |
getMissingContentSlotsNames(AbstractPageModel page)
Gets the missing content slots names and return them as semicolon separated string ("foo; bar; baz").
|
java.util.Collection<AbstractPageModel> |
getPagesForContentSlot(ContentSlotModel contentSlot)
Gets the related
AbstractPageModel objects for content slot. |
java.util.List<SimpleCMSComponentModel> |
getSimpleCMSComponents(ContentSlotModel contentSlot,
boolean previewEnabled,
HttpServletRequest httRequest)
Retrieves a list of components that are valid for particular content slot
Note: Filters components that are assigned to given content slot according to their restrictions.
|
ContentSlotModel getContentSlotForId(java.lang.String id) throws AmbiguousIdentifierException, UnknownIdentifierException
id - the id of content slot to findAmbiguousIdentifierException - thrown when more than one object has been found.UnknownIdentifierException - thrown when no object has been foundjava.util.List<SimpleCMSComponentModel> getSimpleCMSComponents(ContentSlotModel contentSlot, boolean previewEnabled, HttpServletRequest httRequest)
contentSlot - given content slotpreviewEnabled - flag that indicates whether preview is enabledhttRequest - current HTTP requestCMSRestrictionService.evaluateCMSComponent(de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel,
de.hybris.platform.cms2.servicelayer.data.RestrictionData)java.lang.String getAvailableContentSlotsNames(AbstractPageModel page)
page - the AbstractPageModel object. *java.lang.String getMissingContentSlotsNames(AbstractPageModel page)
page - the AbstractPageModel object.java.util.List<java.lang.String> getDefinedContentSlotPositions(PageTemplateModel pageTemplate)
pageTemplate - the page templatejava.util.List<java.lang.String> getDefinedContentSlotPositions(AbstractPageModel page)
page - the pagejava.util.Collection<AbstractPageModel> getPagesForContentSlot(ContentSlotModel contentSlot)
AbstractPageModel objects for content slot.contentSlot - the ContentSlotModel object for which pages will be obtained.AbstractPageModel objects related to ContentSlotModel object.Copyright © 2018 SAP SE. All Rights Reserved.