Class DefaultCMSPageService
- 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.AbstractCMSPageService
-
- de.hybris.platform.cms2.servicelayer.services.impl.DefaultCMSPageService
-
- All Implemented Interfaces:
CMSPageService,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
DefaultVendorCMSPageService
public class DefaultCMSPageService extends AbstractCMSPageService implements CMSPageService
Default implementation ofCMSPageServiceinterface.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.LoggerLOG-
Fields inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
CURRENTCATALOGVERSION, CURRENTSITE
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSPageService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.util.List<ContentSlotModel>appendContentSlots(java.util.List<ContentSlotData> contentSlots, java.util.List<java.lang.String> positions, java.util.Collection<ContentSlotForTemplateModel> templateSlots, AbstractPageModel page)java.util.Collection<PageTemplateModel>getAllActivePageTemplates()Gets the all active page templates.java.util.Collection<ContentPageModel>getAllContentPages()Deprecated, for removal: This API element is subject to removal in a future version.protected java.util.Collection<ContentSlotData>getAllContentSlotsForPageAndSlots(AbstractPageModel page, java.util.Collection<ContentSlotForPageModel> pageSlots, java.util.Collection<ContentSlotForTemplateModel> templateSlots)Returns a list ofContentSlotDatafor a provided page, list ofContentSlotForPageModelandContentSlotForTemplateModel.protected CatalogServicegetCatalogService()protected CategoryServicegetCategoryService()protected CatalogLevelServicegetCmsCatalogLevelService()protected CMSContentPageServicegetCmsContentPageService()protected CMSContentSlotDaogetCmsContentSlotDao()protected CMSDataFactorygetCmsDataFactory()protected CMSPageTemplateDaogetCmsPageTemplateDao()protected ConfigurationServicegetConfigurationService()ContentSlotDatagetContentSlotForPage(AbstractPageModel page, java.lang.String position)Returns a contentslot for the given page and position.ContentSlotDatagetContentSlotForPage(AbstractPageModel page, java.lang.String position, PagePreviewCriteriaData pagePreviewCriteria)Returns a contentslot for the given page, position andPagePreviewCriteriaData.java.util.Collection<ContentSlotForPageModel>getContentSlotModelsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria)Returns theContentSlotForPageModelobjects for passed as parameterAbstractPageModelobject andPagePreviewCriteriaData.java.util.Collection<ContentSlotData>getContentSlotsForPage(AbstractPageModel page)Returns collection ofContentSlotDataobjects containing data taken from allContentSlotForPageModelobjects as well fromContentSlotForTemplateModelobjects for passed as parameterAbstractPageModelobject.java.util.Collection<ContentSlotData>getContentSlotsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria)Returns collection ofContentSlotDataobjects containing data taken from allContentSlotForPageModelobjects as well fromContentSlotForTemplateModelobjects for a givenAbstractPageModelandPagePreviewCriteriaData.java.util.Collection<ContentSlotForTemplateModel>getContentSlotsForPageTemplate(PageTemplateModel pageTemplate)Gets allContentSlotForTemplateModelobjects related to passed as parameterPageTemplateModel.protected java.util.Collection<ContentSlotData>getContentSlotsForPageVersionFromSessionContext(AbstractPageModel page)CatalogPageModelgetDefaultCatalogPage()Returns the default catalog page WITHOUT evaluating any restrictionsCategoryPageModelgetDefaultCategoryPage()Returns the default category page WITHOUT evaluating any restrictionsprotected AbstractPageModelgetDefaultPage(java.lang.String composedTypeCode)ContentPageModelgetDefaultPageForLabel(java.lang.String label, CatalogVersionModel version)Deprecated, for removal: This API element is subject to removal in a future version.ProductPageModelgetDefaultProductPage()Returns the default product page WITHOUT evaluating any restrictionsjava.lang.StringgetFrontendTemplateName(PageTemplateModel template)Gets the frontend template name forPageTemplateModelobject.ContentPageModelgetHomepage()Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModelgetHomepage(PagePreviewCriteriaData pagePreviewCriteria)Deprecated, for removal: This API element is subject to removal in a future version.java.lang.StringgetLabelOrId(ContentPageModel contentPage)Deprecated, for removal: This API element is subject to removal in a future version.protected java.util.Optional<ContentSlotModel>getOverrideSlot(java.util.List<ContentSlotModel> contentSlots, ContentSlotModel contentSlot)java.util.Collection<ContentSlotForPageModel>getOwnContentSlotsForPage(AbstractPageModel page)Returns theContentSlotForPageModelobjects for passed as parameterAbstractPageModelobject.protected ContentSlotDatagetPageContentSlotFromVersionSessionContext(java.lang.String position)Return the Content Slot Data for a given page associated by the version in the session context and position.CatalogPageModelgetPageForCatalog(CatalogModel catalog)Gets the page by catalog.CatalogPageModelgetPageForCatalogId(java.lang.String catalogId)Gets the page for catalog id.CategoryPageModelgetPageForCategory(CategoryModel category)Gets the page for category.CategoryPageModelgetPageForCategory(CategoryModel category, PagePreviewCriteriaData pagePreviewCriteria)Gets the page for category andPagePreviewCriteriaData.CategoryPageModelgetPageForCategoryCode(java.lang.String categoryCode)Gets the page for category code.CategoryPageModelgetPageForCategoryCode(java.lang.String categoryCode, PagePreviewCriteriaData pagePreviewCriteria)Gets the page for category code andPagePreviewCriteriaData.AbstractPageModelgetPageForId(java.lang.String id)Returns the page associated to a given uid.AbstractPageModelgetPageForId(java.lang.String id, PagePreviewCriteriaData pagePreviewCriteria)Gets the page for id andPagePreviewCriteriaData.AbstractPageModelgetPageForIdWithRestrictions(java.lang.String id)Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModelgetPageForLabel(java.lang.String label)Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModelgetPageForLabel(java.lang.String label, PagePreviewCriteriaData pagePreviewCriteria)Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModelgetPageForLabelAndPageStatuses(java.lang.String label, java.util.List<CmsPageStatus> pageStatuses)Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModelgetPageForLabelOrId(java.lang.String labelOrId)Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModelgetPageForLabelOrId(java.lang.String labelOrId, PagePreviewCriteriaData pagePreviewCriteria)Deprecated, for removal: This API element is subject to removal in a future version.ProductPageModelgetPageForProduct(ProductModel product)Gets the page for product.ProductPageModelgetPageForProduct(ProductModel product, PagePreviewCriteriaData pagePreviewCriteria)Gets the page for product andPagePreviewCriteriaData.ProductPageModelgetPageForProductCode(java.lang.String productCode)Gets the page for product code.ProductPageModelgetPageForProductCode(java.lang.String productCode, PagePreviewCriteriaData pagePreviewCriteria)Gets the page for product code andPagePreviewCriteriaData.java.util.Collection<AbstractPageModel>getPagesForComponent(AbstractCMSComponentModel component)Returns all pages where given component occurs.java.util.Collection<AbstractPageModel>getPagesForContentSlots(java.util.Collection<ContentSlotModel> contentSlots)Returns all pages where given content slots occurs.java.util.Collection<AbstractPageModel>getPagesForPageTemplateComponent(AbstractCMSComponentModel component)Gets the pages for page template component.java.util.Collection<AbstractPageModel>getPagesForPageTemplateContentSlots(java.util.Collection<ContentSlotModel> contentSlots)Gets the pages for page template content slots.protected java.util.Collection<ContentSlotForTemplateModel>getPageTemplateSlots(AbstractPageModel page)Returns a list ofContentSlotForTemplateModelfor a given page.protected ProductServicegetProductService()protected AbstractPageModelgetSinglePage(java.lang.String composedTypeCode)java.util.List<ContentSlotModel>getSortedMultiCountryContentSlots(java.util.List<ContentSlotModel> contentSlots, java.util.List<CatalogVersionModel> catalogVersions)Gets the content slots sorted by their catalog hierarchy.protected TypeServicegetTypeService()voidsetCatalogService(CatalogService catalogService)voidsetCategoryService(CategoryService categoryService)voidsetCmsCatalogLevelService(CatalogLevelService cmsCatalogLevelService)voidsetCmsContentPageService(CMSContentPageService cmsContentPageService)voidsetCmsContentSlotDao(CMSContentSlotDao cmsContentSlotDao)voidsetCmsDataFactory(CMSDataFactory cmsDataFactory)voidsetCmsPageTemplateDao(CMSPageTemplateDao cmsPageTemplateDao)voidsetConfigurationService(ConfigurationService configurationService)voidsetProductService(ProductService productService)voidsetTypeService(TypeService typeService)-
Methods inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSPageService
getCatalogVersionService, getCmsPageDao, getCmsRestrictionService, getCmsVersionDao, getCmsVersionService, getCmsVersionSessionContextProvider, getItemByCriteria, getPageForVersionUid, getSessionSearchRestrictionsDisabler, setCatalogVersionService, setCmsPageDao, setCmsRestrictionService, setCmsVersionDao, setCmsVersionService, setCmsVersionSessionContextProvider, setSessionSearchRestrictionsDisabler
-
Methods inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
getBaseSiteService, getCurrentCatalogVersion, getCurrentSite, getSearchRestrictionService, getUserService, setBaseSiteService, setSearchRestrictionService, setUserService
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
getAllActivePageTemplates
public java.util.Collection<PageTemplateModel> getAllActivePageTemplates()
Description copied from interface:CMSPageServiceGets the all active page templates.- Specified by:
getAllActivePageTemplatesin interfaceCMSPageService- Returns:
- the all active page templates
-
getAllContentPages
@Deprecated(since="1905", forRemoval=true) public java.util.Collection<ContentPageModel> getAllContentPages()Deprecated, for removal: This API element is subject to removal in a future version.Gets the all content pages.- Specified by:
getAllContentPagesin interfaceCMSPageService- Returns:
- the all content pages
-
getOwnContentSlotsForPage
public java.util.Collection<ContentSlotForPageModel> getOwnContentSlotsForPage(AbstractPageModel page)
Description copied from interface:CMSPageServiceReturns theContentSlotForPageModelobjects for passed as parameterAbstractPageModelobject.- Specified by:
getOwnContentSlotsForPagein interfaceCMSPageService- Parameters:
page- theAbstractPageModelobject.- Returns:
- collection of
ContentSlotForPageModelobjects related toAbstractPageModel.
-
getContentSlotModelsForPage
public java.util.Collection<ContentSlotForPageModel> getContentSlotModelsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria)
Description copied from interface:CMSPageServiceReturns theContentSlotForPageModelobjects for passed as parameterAbstractPageModelobject andPagePreviewCriteriaData.- Specified by:
getContentSlotModelsForPagein interfaceCMSPageService- Parameters:
page- theAbstractPageModelobject.pagePreviewCriteria- thePagePreviewCriteriaDataobject.- Returns:
- collection of
ContentSlotForPageModelobjects related toAbstractPageModel.
-
getContentSlotForPage
public ContentSlotData getContentSlotForPage(AbstractPageModel page, java.lang.String position) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceReturns a contentslot for the given page and position. WARNING: This could be a performance issue when you select all content slots of a page via this method. A better way is to set all contentslots via getContentSlotsForPage(AbstractPageModel page) and set them in the request scope- Specified by:
getContentSlotForPagein interfaceCMSPageService- Parameters:
page- the page modelposition- the position- Returns:
- contentslot for the given page and position.
- Throws:
CMSItemNotFoundException- if no content slot is defined at this position in that page
-
getContentSlotForPage
public ContentSlotData getContentSlotForPage(AbstractPageModel page, java.lang.String position, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceReturns a contentslot for the given page, position andPagePreviewCriteriaData. WARNING: This could be a performance issue when you select all content slots of a page via this method. A better way is to set all contentslots via getContentSlotsForPage(AbstractPageModel page) and set them in the request scope- Specified by:
getContentSlotForPagein interfaceCMSPageService- Parameters:
page- the page modelposition- the positionpagePreviewCriteria- thePagePreviewCriteriaDataobject.- Returns:
- contentslot for the given page and position.
- Throws:
CMSItemNotFoundException- if no content slot is defined at this position in that page
-
getContentSlotsForPage
public java.util.Collection<ContentSlotData> getContentSlotsForPage(AbstractPageModel page)
Description copied from interface:CMSPageServiceReturns collection ofContentSlotDataobjects containing data taken from allContentSlotForPageModelobjects as well fromContentSlotForTemplateModelobjects for passed as parameterAbstractPageModelobject.- Specified by:
getContentSlotsForPagein interfaceCMSPageService- Parameters:
page- theAbstractPageModelobject.- Returns:
- collection of
ContentSlotDataobjects.
-
getAllContentSlotsForPageAndSlots
protected java.util.Collection<ContentSlotData> getAllContentSlotsForPageAndSlots(AbstractPageModel page, java.util.Collection<ContentSlotForPageModel> pageSlots, java.util.Collection<ContentSlotForTemplateModel> templateSlots)
Returns a list ofContentSlotDatafor a provided page, list ofContentSlotForPageModelandContentSlotForTemplateModel.- Parameters:
page- the page modelpageSlots- the list ofContentSlotForPageModeltemplateSlots- the list ofContentSlotForTemplateModel- Returns:
- list of content slot dto
-
getPageTemplateSlots
protected java.util.Collection<ContentSlotForTemplateModel> getPageTemplateSlots(AbstractPageModel page)
Returns a list ofContentSlotForTemplateModelfor a given page.
-
getContentSlotsForPage
public java.util.Collection<ContentSlotData> getContentSlotsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria)
Description copied from interface:CMSPageServiceReturns collection ofContentSlotDataobjects containing data taken from allContentSlotForPageModelobjects as well fromContentSlotForTemplateModelobjects for a givenAbstractPageModelandPagePreviewCriteriaData.- Specified by:
getContentSlotsForPagein interfaceCMSPageService- Parameters:
page- theAbstractPageModelobject.pagePreviewCriteria- thePagePreviewCriteriaDataobject.- Returns:
- collection of
ContentSlotDataobjects.
-
getContentSlotsForPageVersionFromSessionContext
protected java.util.Collection<ContentSlotData> getContentSlotsForPageVersionFromSessionContext(AbstractPageModel page) throws CMSItemNotFoundException
- Throws:
CMSItemNotFoundException
-
getOverrideSlot
protected java.util.Optional<ContentSlotModel> getOverrideSlot(java.util.List<ContentSlotModel> contentSlots, ContentSlotModel contentSlot)
-
getSortedMultiCountryContentSlots
public java.util.List<ContentSlotModel> getSortedMultiCountryContentSlots(java.util.List<ContentSlotModel> contentSlots, java.util.List<CatalogVersionModel> catalogVersions)
Description copied from interface:CMSPageServiceGets the content slots sorted by their catalog hierarchy.- Specified by:
getSortedMultiCountryContentSlotsin interfaceCMSPageService- Parameters:
contentSlots- - the content slotscatalogVersions- - the catalog versions- Returns:
- a sorted list of content slots
-
appendContentSlots
protected java.util.List<ContentSlotModel> appendContentSlots(java.util.List<ContentSlotData> contentSlots, java.util.List<java.lang.String> positions, java.util.Collection<ContentSlotForTemplateModel> templateSlots, AbstractPageModel page)
-
getContentSlotsForPageTemplate
public java.util.Collection<ContentSlotForTemplateModel> getContentSlotsForPageTemplate(PageTemplateModel pageTemplate)
Description copied from interface:CMSPageServiceGets allContentSlotForTemplateModelobjects related to passed as parameterPageTemplateModel.- Specified by:
getContentSlotsForPageTemplatein interfaceCMSPageService- Parameters:
pageTemplate- thePageTemplateModelobject for which search will be executed.- Returns:
- the list of found
ContentSlotForTemplateModelobjects.
-
getDefaultCatalogPage
public CatalogPageModel getDefaultCatalogPage() throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceReturns the default catalog page WITHOUT evaluating any restrictions- Specified by:
getDefaultCatalogPagein interfaceCMSPageService- Returns:
- default catalog page
- Throws:
CMSItemNotFoundException- if no default catalog page could be found
-
getDefaultCategoryPage
public CategoryPageModel getDefaultCategoryPage() throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceReturns the default category page WITHOUT evaluating any restrictions- Specified by:
getDefaultCategoryPagein interfaceCMSPageService- Returns:
- default category page
- Throws:
CMSItemNotFoundException- if no default category page could be found
-
getDefaultPageForLabel
@Deprecated(since="1905", forRemoval=true) public ContentPageModel getDefaultPageForLabel(java.lang.String label, CatalogVersionModel version) throws CMSItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.Gets the default page by label and catalog version.- Specified by:
getDefaultPageForLabelin interfaceCMSPageService- Parameters:
label- the labelversion- the version- Returns:
- the default page by label
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getDefaultProductPage
public ProductPageModel getDefaultProductPage() throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceReturns the default product page WITHOUT evaluating any restrictions- Specified by:
getDefaultProductPagein interfaceCMSPageService- Returns:
- default product page
- Throws:
CMSItemNotFoundException- if no default product page could be found
-
getFrontendTemplateName
public java.lang.String getFrontendTemplateName(PageTemplateModel template)
Description copied from interface:CMSPageServiceGets the frontend template name forPageTemplateModelobject.- Specified by:
getFrontendTemplateNamein interfaceCMSPageService- Parameters:
template- thePageTemplateModelobject.- Returns:
- the frontend template name.
-
getHomepage
@Deprecated(since="1905", forRemoval=true) public ContentPageModel getHomepage()Deprecated, for removal: This API element is subject to removal in a future version.Gets the homepage by finding all content pages havingContentPageModel#isHomepage()equals TRUE, in all the catalog versions saved in the session.
In the multi-country scenario, the list of catalog versions contains the catalog versions hierarchy for the active site.CMS restrictions will be evaluated on the homepage to ensure that the proper primary or variation page is returned.
- Specified by:
getHomepagein interfaceCMSPageService- Returns:
- the homepage model
-
getHomepage
@Deprecated(since="1905", forRemoval=true) public ContentPageModel getHomepage(PagePreviewCriteriaData pagePreviewCriteria)Deprecated, for removal: This API element is subject to removal in a future version.Returns homepage forPagePreviewCriteriaData.- Specified by:
getHomepagein interfaceCMSPageService- Parameters:
pagePreviewCriteria- thePagePreviewCriteriaDataobject.- Returns:
- the homepage model
-
getLabelOrId
@Deprecated(since="1905", forRemoval=true) public java.lang.String getLabelOrId(ContentPageModel contentPage)Deprecated, for removal: This API element is subject to removal in a future version.Gets theContentPageModellabel or id if label is empty.- Specified by:
getLabelOrIdin interfaceCMSPageService- Parameters:
contentPage- theContentPageModelobject.- Returns:
- the label or id of
ContentPageModel.
-
getPageForCatalog
public CatalogPageModel getPageForCatalog(CatalogModel catalog) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceGets the page by catalog.- Specified by:
getPageForCatalogin interfaceCMSPageService- Parameters:
catalog- the catalog- Returns:
- the page by catalog
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForCatalogId
public CatalogPageModel getPageForCatalogId(java.lang.String catalogId) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceGets the page for catalog id.- Specified by:
getPageForCatalogIdin interfaceCMSPageService- Parameters:
catalogId- the catalog id- Returns:
- the page for catalog id
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForCategory
public CategoryPageModel getPageForCategory(CategoryModel category) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceGets the page for category.- Specified by:
getPageForCategoryin interfaceCMSPageService- Parameters:
category- the category- Returns:
- the page for category
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForCategory
public CategoryPageModel getPageForCategory(CategoryModel category, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceGets the page for category andPagePreviewCriteriaData.- Specified by:
getPageForCategoryin interfaceCMSPageService- Parameters:
category- the categorypagePreviewCriteria- thePagePreviewCriteriaDataobject.- Returns:
- the page for category
- Throws:
CMSItemNotFoundException- thrown when item is not found
-
getPageForCategoryCode
public CategoryPageModel getPageForCategoryCode(java.lang.String categoryCode) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceGets the page for category code.- Specified by:
getPageForCategoryCodein interfaceCMSPageService- Parameters:
categoryCode- the category code- Returns:
- the page for category code
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForCategoryCode
public CategoryPageModel getPageForCategoryCode(java.lang.String categoryCode, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceGets the page for category code andPagePreviewCriteriaData.- Specified by:
getPageForCategoryCodein interfaceCMSPageService- Parameters:
categoryCode- the category codepagePreviewCriteria- thePagePreviewCriteriaDataobject.- Returns:
- the page for category code
- Throws:
CMSItemNotFoundException- thrown when item is not found
-
getPageForId
public AbstractPageModel getPageForId(java.lang.String id) throws CMSItemNotFoundException
Description copied from class:AbstractCMSPageServiceReturns the page associated to a given uid.- Specified by:
getPageForIdin interfaceCMSPageService- Overrides:
getPageForIdin classAbstractCMSPageService- Parameters:
id- the page id- Returns:
- the page matching the provided uid
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForIdWithRestrictions
@Deprecated(since="1905", forRemoval=true) public AbstractPageModel getPageForIdWithRestrictions(java.lang.String id) throws CMSItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.Gets the page for id and evaluates the page restrictions- Specified by:
getPageForIdWithRestrictionsin interfaceCMSPageService- Parameters:
id- the id- Returns:
- the page for id
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForId
public AbstractPageModel getPageForId(java.lang.String id, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
Gets the page for id andPagePreviewCriteriaData.- Specified by:
getPageForIdin interfaceCMSPageService- Parameters:
id- the idpagePreviewCriteria- thePagePreviewCriteriaDataobject.- Returns:
- the page for id
- Throws:
CMSItemNotFoundException- thrown when item is not found
-
getPageForLabel
@Deprecated(since="1905", forRemoval=true) public ContentPageModel getPageForLabel(java.lang.String label) throws CMSItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.Gets the page for label.- Specified by:
getPageForLabelin interfaceCMSPageService- Parameters:
label- the label- Returns:
- the page for label
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForLabel
@Deprecated(since="1905", forRemoval=true) public ContentPageModel getPageForLabel(java.lang.String label, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.Gets the page for label andPagePreviewCriteriaData.- Specified by:
getPageForLabelin interfaceCMSPageService- Parameters:
label- the labelpagePreviewCriteria- thePagePreviewCriteriaDataobject.- Returns:
- the page for label
- Throws:
CMSItemNotFoundException- thrown when item is not found
-
getPageForLabelAndPageStatuses
@Deprecated(since="1905", forRemoval=true) public ContentPageModel getPageForLabelAndPageStatuses(java.lang.String label, java.util.List<CmsPageStatus> pageStatuses) throws CMSItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.Gets the page for label by page status.- Specified by:
getPageForLabelAndPageStatusesin interfaceCMSPageService- Parameters:
label- the labelpageStatuses- the page statuses. i.e. (deleted, active)- Returns:
- the page for label
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForLabelOrId
@Deprecated(since="1905", forRemoval=true) public ContentPageModel getPageForLabelOrId(java.lang.String labelOrId) throws CMSItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.Gets the page for label or id.- Specified by:
getPageForLabelOrIdin interfaceCMSPageService- Parameters:
labelOrId- the label or id- Returns:
- the page for label or id
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForLabelOrId
@Deprecated(since="1905", forRemoval=true) public ContentPageModel getPageForLabelOrId(java.lang.String labelOrId, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundExceptionDeprecated, for removal: This API element is subject to removal in a future version.Gets the page for label or id andPagePreviewCriteriaData.- Specified by:
getPageForLabelOrIdin interfaceCMSPageService- Parameters:
labelOrId- the label or idpagePreviewCriteria- thePagePreviewCriteriaDataobject.- Returns:
- the page for label or id
- Throws:
CMSItemNotFoundException- thrown when item is not found
-
getPageForProduct
public ProductPageModel getPageForProduct(ProductModel product) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceGets the page for product.- Specified by:
getPageForProductin interfaceCMSPageService- Parameters:
product- the product- Returns:
- the page for product
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForProduct
public ProductPageModel getPageForProduct(ProductModel product, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceGets the page for product andPagePreviewCriteriaData.- Specified by:
getPageForProductin interfaceCMSPageService- Parameters:
product- the productpagePreviewCriteria- thePagePreviewCriteriaDataobject.- Returns:
- the page for product
- Throws:
CMSItemNotFoundException- thrown when item is not found
-
getPageForProductCode
public ProductPageModel getPageForProductCode(java.lang.String productCode) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceGets the page for product code.- Specified by:
getPageForProductCodein interfaceCMSPageService- Parameters:
productCode- the product code- Returns:
- the page for product code
- Throws:
CMSItemNotFoundException- thrown when item was not found
-
getPageForProductCode
public ProductPageModel getPageForProductCode(java.lang.String productCode, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException
Description copied from interface:CMSPageServiceGets the page for product code andPagePreviewCriteriaData.- Specified by:
getPageForProductCodein interfaceCMSPageService- Parameters:
productCode- the product codepagePreviewCriteria- thePagePreviewCriteriaDataobject.- Returns:
- the page for product code
- Throws:
CMSItemNotFoundException- thrown when item is not found
-
getPagesForComponent
public java.util.Collection<AbstractPageModel> getPagesForComponent(AbstractCMSComponentModel component)
Description copied from interface:CMSPageServiceReturns all pages where given component occurs.- Specified by:
getPagesForComponentin interfaceCMSPageService- Parameters:
component- - component model that we are looking pages for- Returns:
- - collection of AbstractPageModel
-
getPagesForContentSlots
public java.util.Collection<AbstractPageModel> getPagesForContentSlots(java.util.Collection<ContentSlotModel> contentSlots)
Description copied from interface:CMSPageServiceReturns all pages where given content slots occurs.- Specified by:
getPagesForContentSlotsin interfaceCMSPageService- Parameters:
contentSlots- - content slot model that we are looking pages for- Returns:
- - collection of AbstractPageModel
-
getPagesForPageTemplateComponent
public java.util.Collection<AbstractPageModel> getPagesForPageTemplateComponent(AbstractCMSComponentModel component)
Description copied from interface:CMSPageServiceGets the pages for page template component.- Specified by:
getPagesForPageTemplateComponentin interfaceCMSPageService- Parameters:
component- the component- Returns:
- the pages for page template component
-
getPagesForPageTemplateContentSlots
public java.util.Collection<AbstractPageModel> getPagesForPageTemplateContentSlots(java.util.Collection<ContentSlotModel> contentSlots)
Description copied from interface:CMSPageServiceGets the pages for page template content slots.- Specified by:
getPagesForPageTemplateContentSlotsin interfaceCMSPageService- Parameters:
contentSlots- the content slots- Returns:
- the pages for page template content slots
-
getDefaultPage
protected AbstractPageModel getDefaultPage(java.lang.String composedTypeCode) throws CMSItemNotFoundException
- Throws:
CMSItemNotFoundException
-
getSinglePage
protected AbstractPageModel getSinglePage(java.lang.String composedTypeCode)
-
getPageContentSlotFromVersionSessionContext
protected ContentSlotData getPageContentSlotFromVersionSessionContext(java.lang.String position) throws CMSItemNotFoundException
Return the Content Slot Data for a given page associated by the version in the session context and position.- Parameters:
position- the position of the slot in the page.- Returns:
- ContentSlotData the
ContentSlotDatadata. - Throws:
CMSItemNotFoundException
-
getCatalogService
protected CatalogService getCatalogService()
-
setCatalogService
public void setCatalogService(CatalogService catalogService)
-
getCategoryService
protected CategoryService getCategoryService()
-
setCategoryService
public void setCategoryService(CategoryService categoryService)
-
setCmsContentSlotDao
public void setCmsContentSlotDao(CMSContentSlotDao cmsContentSlotDao)
-
getCmsContentSlotDao
protected CMSContentSlotDao getCmsContentSlotDao()
-
setCmsDataFactory
public void setCmsDataFactory(CMSDataFactory cmsDataFactory)
-
getCmsDataFactory
protected CMSDataFactory getCmsDataFactory()
-
getCmsContentPageService
protected CMSContentPageService getCmsContentPageService()
-
setCmsContentPageService
public void setCmsContentPageService(CMSContentPageService cmsContentPageService)
-
getCmsPageTemplateDao
protected CMSPageTemplateDao getCmsPageTemplateDao()
-
setCmsPageTemplateDao
public void setCmsPageTemplateDao(CMSPageTemplateDao cmsPageTemplateDao)
-
getProductService
protected ProductService getProductService()
-
setProductService
public void setProductService(ProductService productService)
-
getTypeService
protected TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
getCmsCatalogLevelService
protected CatalogLevelService getCmsCatalogLevelService()
-
setCmsCatalogLevelService
public void setCmsCatalogLevelService(CatalogLevelService cmsCatalogLevelService)
-
-