Class DefaultCMSContentSlotService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSContentSlotService
- All Implemented Interfaces:
CMSContentSlotService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultCMSContentSlotService
extends AbstractCMSService
implements CMSContentSlotService
Default implementation of
CMSContentSlotService- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
Fields inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
CURRENTCATALOGVERSION, CURRENTSITEFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the available content slots names and return them as semicolon separated string ("foo; bar; baz").protected CatalogVersionServiceprotected CMSContentSlotDaoprotected CMSDataFactoryprotected CMSPageServiceGets the content slot for given id.Gets the defined content slot positions.getDefinedContentSlotPositions(PageTemplateModel pageTemplate) Gets the defined content slot positions.Gets the missing content slots names and return them as semicolon separated string ("foo; bar; baz").getPagesForContentSlot(ContentSlotModel contentSlot) Gets the relatedAbstractPageModelobjects for content slot.getSimpleCMSComponents(ContentSlotModel contentSlot, boolean previewEnabled, javax.servlet.http.HttpServletRequest httpRequest) Retrieves a list of components that are valid for particular content slotbooleanisSharedSlot(ContentSlotModel contentSlot) Check a content slot is shared or not.protected RestrictionDatapopulate(javax.servlet.http.HttpServletRequest request) Wrapped all information fetched from current HTTP requestvoidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCmsContentSlotDao(CMSContentSlotDao cmsContentSlotDao) voidsetCmsDataFactory(CMSDataFactory cmsDataFactory) voidsetCmsPageService(CMSPageService cmsPageService) voidsetCmsRestrictionService(CMSRestrictionService cmsRestrictionService) Methods inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
getBaseSiteService, getCurrentCatalogVersion, getCurrentSite, getSearchRestrictionService, getUserService, setBaseSiteService, setSearchRestrictionService, setUserServiceMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultCMSContentSlotService
public DefaultCMSContentSlotService()
-
-
Method Details
-
getAvailableContentSlotsNames
Gets the available content slots names and return them as semicolon separated string ("foo; bar; baz").- Specified by:
getAvailableContentSlotsNamesin interfaceCMSContentSlotService- Parameters:
page- theAbstractPageModelobject. *- Returns:
- the available content slots names as semicolon separated string.
-
getDefinedContentSlotPositions
Gets the defined content slot positions.- Specified by:
getDefinedContentSlotPositionsin interfaceCMSContentSlotService- Parameters:
page- the page- Returns:
- the defined content slot positions
-
getDefinedContentSlotPositions
Gets the defined content slot positions.- Specified by:
getDefinedContentSlotPositionsin interfaceCMSContentSlotService- Parameters:
pageTemplate- the page template- Returns:
- the defined content slot positions
-
getMissingContentSlotsNames
Gets the missing content slots names and return them as semicolon separated string ("foo; bar; baz").- Specified by:
getMissingContentSlotsNamesin interfaceCMSContentSlotService- Parameters:
page- theAbstractPageModelobject.- Returns:
- the missing content slots names.
-
getPagesForContentSlot
Gets the relatedAbstractPageModelobjects for content slot.- Specified by:
getPagesForContentSlotin interfaceCMSContentSlotService- Parameters:
contentSlot- theContentSlotModelobject for which pages will be obtained.- Returns:
- the collection of
AbstractPageModelobjects related toContentSlotModelobject.
-
getSimpleCMSComponents
public List<SimpleCMSComponentModel> getSimpleCMSComponents(ContentSlotModel contentSlot, boolean previewEnabled, javax.servlet.http.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. For more information please see- Specified by:
getSimpleCMSComponentsin interfaceCMSContentSlotService- Parameters:
contentSlot- given content slotpreviewEnabled- flag that indicates whether preview is enabledhttpRequest- current HTTP request- Returns:
- valid components
- See Also:
-
populate
Wrapped all information fetched from current HTTP request- Parameters:
request- current HTTP request- Returns:
- all gather information wrapped to
RestrictionDataobject
-
getContentSlotForId
public ContentSlotModel getContentSlotForId(String id) throws AmbiguousIdentifierException, UnknownIdentifierException Description copied from interface:CMSContentSlotServiceGets the content slot for given id.- Specified by:
getContentSlotForIdin interfaceCMSContentSlotService- Parameters:
id- the id of content slot to find- Returns:
- found content slot
- Throws:
AmbiguousIdentifierException- thrown when more than one object has been found.UnknownIdentifierException- thrown when no object has been found
-
getCmsContentSlotDao
-
setCmsContentSlotDao
-
getCmsDataFactory
-
setCmsDataFactory
-
getCatalogVersionService
-
setCatalogVersionService
-
getCmsPageService
-
setCmsPageService
-
getCmsRestrictionService
-
setCmsRestrictionService
-