public class DefaultCMSContentSlotService extends AbstractCMSService implements CMSContentSlotService
CMSContentSlotServiceAbstractService.SerializableDTOCURRENTCATALOGVERSION, CURRENTSITEmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultCMSContentSlotService() |
| 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").
|
protected CatalogVersionService |
getCatalogVersionService() |
protected CMSContentSlotDao |
getCmsContentSlotDao() |
protected CMSDataFactory |
getCmsDataFactory() |
protected CMSPageService |
getCmsPageService() |
CMSRestrictionService |
getCmsRestrictionService() |
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 httpRequest)
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.
|
protected RestrictionData |
populate(HttpServletRequest request)
Wrapped all information fetched from current HTTP request
|
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setCmsContentSlotDao(CMSContentSlotDao cmsContentSlotDao) |
void |
setCmsDataFactory(CMSDataFactory cmsDataFactory) |
void |
setCmsPageService(CMSPageService cmsPageService) |
void |
setCmsRestrictionService(CMSRestrictionService cmsRestrictionService) |
getBaseSiteService, getCurrentCatalogVersion, getCurrentSite, getSearchRestrictionService, getUserService, setBaseSiteService, setSearchRestrictionService, setUserServicegetModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplacepublic java.lang.String getAvailableContentSlotsNames(AbstractPageModel page)
getAvailableContentSlotsNames in interface CMSContentSlotServicepage - the AbstractPageModel object. *public java.util.List<java.lang.String> getDefinedContentSlotPositions(AbstractPageModel page)
getDefinedContentSlotPositions in interface CMSContentSlotServicepage - the pagepublic java.util.List<java.lang.String> getDefinedContentSlotPositions(PageTemplateModel pageTemplate)
getDefinedContentSlotPositions in interface CMSContentSlotServicepageTemplate - the page templatepublic java.lang.String getMissingContentSlotsNames(AbstractPageModel page)
getMissingContentSlotsNames in interface CMSContentSlotServicepage - the AbstractPageModel object.public java.util.Collection<AbstractPageModel> getPagesForContentSlot(ContentSlotModel contentSlot)
AbstractPageModel objects for content slot.getPagesForContentSlot in interface CMSContentSlotServicecontentSlot - the ContentSlotModel object for which pages will be obtained.AbstractPageModel objects related to ContentSlotModel object.public java.util.List<SimpleCMSComponentModel> getSimpleCMSComponents(ContentSlotModel contentSlot, boolean previewEnabled, HttpServletRequest httpRequest)
getSimpleCMSComponents in interface CMSContentSlotServicecontentSlot - given content slotpreviewEnabled - flag that indicates whether preview is enabledhttpRequest - current HTTP requestCMSRestrictionService.evaluateCMSComponent(de.hybris.platform.cms2.model.contents.components.AbstractCMSComponentModel,
de.hybris.platform.cms2.servicelayer.data.RestrictionData)protected RestrictionData populate(HttpServletRequest request)
request - current HTTP requestRestrictionData objectpublic ContentSlotModel getContentSlotForId(java.lang.String id) throws AmbiguousIdentifierException, UnknownIdentifierException
CMSContentSlotServicegetContentSlotForId in interface CMSContentSlotServiceid - the id of content slot to findAmbiguousIdentifierException - thrown when more than one object has been found.UnknownIdentifierException - thrown when no object has been foundprotected CMSContentSlotDao getCmsContentSlotDao()
public void setCmsContentSlotDao(CMSContentSlotDao cmsContentSlotDao)
protected CMSDataFactory getCmsDataFactory()
public void setCmsDataFactory(CMSDataFactory cmsDataFactory)
protected CatalogVersionService getCatalogVersionService()
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
protected CMSPageService getCmsPageService()
public void setCmsPageService(CMSPageService cmsPageService)
public CMSRestrictionService getCmsRestrictionService()
public void setCmsRestrictionService(CMSRestrictionService cmsRestrictionService)
Copyright © 2018 SAP SE. All Rights Reserved.