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,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
DefaultVendorCMSPageService
Default implementation of
CMSPageService interface.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
FieldsFields 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 TypeMethodDescriptionprotected List<ContentSlotModel>appendContentSlots(List<ContentSlotData> contentSlots, List<String> positions, Collection<ContentSlotForTemplateModel> templateSlots, AbstractPageModel page) findAllPages(String typeCode, SearchPageData searchPageData) Find all pages.protected CMSAdminSiteServiceGets the all active page templates.Deprecated, for removal: This API element is subject to removal in a future version.protected Collection<ContentSlotData>getAllContentSlotsForPageAndSlots(AbstractPageModel page, Collection<ContentSlotForPageModel> pageSlots, Collection<ContentSlotForTemplateModel> templateSlots) Returns a list ofContentSlotDatafor a provided page, list ofContentSlotForPageModelandContentSlotForTemplateModel.protected CatalogServiceprotected CategoryServicegetChildSlotForTemplateAtSamePosition(Collection<ContentSlotForTemplateModel> slotForTemplateModels) For multi-country the same position may have multi slotForTemplate, this function will get the child catalogVersion of slotForTemplateModel and remove other parents slotForTemplates.protected CatalogLevelServiceprotected Comparator<CatalogVersionModel>protected CMSCatalogVersionServiceprotected CMSContentPageServiceprotected CMSContentSlotDaoprotected CMSDataFactoryprotected CMSPageTemplateDaoprotected ConfigurationServicegetContentSlotForPage(AbstractPageModel page, String position) Returns a contentslot for the given page and position.getContentSlotForPage(AbstractPageModel page, String position, PagePreviewCriteriaData pagePreviewCriteria) Deprecated, for removal: This API element is subject to removal in a future version.since 2105, no longer needed.getContentSlotModelsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria) Deprecated, for removal: This API element is subject to removal in a future version.since 2105, no longer needed.Returns collection ofContentSlotDataobjects containing data taken from allContentSlotForPageModelobjects as well fromContentSlotForTemplateModelobjects for passed as parameterAbstractPageModelobject.getContentSlotsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria) Returns collection ofContentSlotDataobjects containing data taken from allContentSlotForPageModelobjects as well fromContentSlotForTemplateModelobjects for a givenAbstractPageModelandPagePreviewCriteriaData.getContentSlotsForPageTemplate(PageTemplateModel pageTemplate) Gets allContentSlotForTemplateModelobjects related to passed as parameterPageTemplateModel.protected Collection<ContentSlotData>Returns the default catalog page WITHOUT evaluating any restrictionsReturns the default category page WITHOUT evaluating any restrictionsprotected AbstractPageModelgetDefaultPage(String composedTypeCode) getDefaultPageForLabel(String label, CatalogVersionModel version) Deprecated, for removal: This API element is subject to removal in a future version.Returns the default product page WITHOUT evaluating any restrictionsgetFrontendTemplateName(PageTemplateModel template) Gets the frontend template name forPageTemplateModelobject.Deprecated, for removal: This API element is subject to removal in a future version.getHomepage(PagePreviewCriteriaData pagePreviewCriteria) Deprecated, for removal: This API element is subject to removal in a future version.getLabelOrId(ContentPageModel contentPage) Deprecated, for removal: This API element is subject to removal in a future version.protected Optional<ContentSlotModel>getOverrideSlot(List<ContentSlotModel> contentSlots, ContentSlotModel contentSlot) Returns theContentSlotForPageModelobjects for passed as parameterAbstractPageModelobject.protected ContentSlotDataReturn the Content Slot Data for a given page associated by the version in the session context and position.getPageForCatalog(CatalogModel catalog) Gets the page by catalog.getPageForCatalogId(String catalogId) Gets the page for catalog id.getPageForCategory(CategoryModel category) Gets the page for category.getPageForCategory(CategoryModel category, PagePreviewCriteriaData pagePreviewCriteria) Gets the page for category andPagePreviewCriteriaData.getPageForCategoryCode(String categoryCode) Gets the page for category code.getPageForCategoryCode(String categoryCode, PagePreviewCriteriaData pagePreviewCriteria) Gets the page for category code andPagePreviewCriteriaData.getPageForId(String id) Returns the page associated to a given uid.getPageForId(String id, PagePreviewCriteriaData pagePreviewCriteria) Gets the page for id andPagePreviewCriteriaData.Deprecated, for removal: This API element is subject to removal in a future version.getPageForLabel(String label) Deprecated, for removal: This API element is subject to removal in a future version.getPageForLabel(String label, PagePreviewCriteriaData pagePreviewCriteria) Deprecated, for removal: This API element is subject to removal in a future version.getPageForLabelAndPageStatuses(String label, List<CmsPageStatus> pageStatuses) Deprecated, for removal: This API element is subject to removal in a future version.getPageForLabelOrId(String labelOrId) Deprecated, for removal: This API element is subject to removal in a future version.getPageForLabelOrId(String labelOrId, PagePreviewCriteriaData pagePreviewCriteria) Deprecated, for removal: This API element is subject to removal in a future version.getPageForProduct(ProductModel product) Gets the page for product.getPageForProduct(ProductModel product, PagePreviewCriteriaData pagePreviewCriteria) Gets the page for product andPagePreviewCriteriaData.getPageForProductCode(String productCode) Gets the page for product code.getPageForProductCode(String productCode, PagePreviewCriteriaData pagePreviewCriteria) Gets the page for product code andPagePreviewCriteriaData.getPagesForComponent(AbstractCMSComponentModel component) Returns all pages where given component occurs.getPagesForContentSlots(Collection<ContentSlotModel> contentSlots) Returns all pages where given content slots occurs.Gets the pages for page template component.getPagesForPageTemplateContentSlots(Collection<ContentSlotModel> contentSlots) Gets the pages for page template content slots.protected Collection<ContentSlotForTemplateModel>Returns a list ofContentSlotForTemplateModelfor a given page.protected ProductServiceprotected AbstractPageModelgetSinglePage(String composedTypeCode) getSortedMultiCountryContentSlots(List<ContentSlotModel> contentSlots, List<CatalogVersionModel> catalogVersions) Gets the content slots sorted by their catalog hierarchy.getSortedMultiCountryContentSlots(List<ContentSlotModel> contentSlots, List<CatalogVersionModel> catalogVersions, AbstractPageModel page) Gets the content slots sorted by their catalog hierarchy.protected TypeServicevoidsetAdminSiteService(CMSAdminSiteService adminSiteService) voidsetCatalogService(CatalogService catalogService) voidsetCategoryService(CategoryService categoryService) voidsetCmsCatalogLevelService(CatalogLevelService cmsCatalogLevelService) voidsetCmsCatalogVersionLevelComparator(Comparator<CatalogVersionModel> cmsCatalogVersionLevelComparator) voidsetCmsCatalogVersionService(CMSCatalogVersionService cmsCatalogVersionService) 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, getCmsItemCatalogLevelComparator, getCmsPageDao, getCmsRestrictionService, getCmsVersionDao, getCmsVersionService, getCmsVersionSessionContextProvider, getItemByCriteria, getPageForVersionUid, getSessionSearchRestrictionsDisabler, setCatalogVersionService, setCmsItemCatalogLevelComparator, setCmsPageDao, setCmsRestrictionService, setCmsVersionDao, setCmsVersionService, setCmsVersionSessionContextProvider, setSessionSearchRestrictionsDisablerMethods 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
-
Field Details
-
LOG
protected static final org.apache.log4j.Logger LOG
-
-
Constructor Details
-
DefaultCMSPageService
public DefaultCMSPageService()
-
-
Method Details
-
getAllActivePageTemplates
Description copied from interface:CMSPageServiceGets the all active page templates.- Specified by:
getAllActivePageTemplatesin interfaceCMSPageService- Returns:
- the all active page templates
-
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
Description copied from interface:CMSPageServiceReturns theContentSlotForPageModelobjects for passed as parameterAbstractPageModelobject.- Specified by:
getOwnContentSlotsForPagein interfaceCMSPageService- Parameters:
page- theAbstractPageModelobject.- Returns:
- collection of
ContentSlotForPageModelobjects related toAbstractPageModel.
-
getContentSlotModelsForPage
@Deprecated(since="2105", forRemoval=true) public Collection<ContentSlotForPageModel> getContentSlotModelsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria) Deprecated, for removal: This API element is subject to removal in a future version.since 2105, no longer needed.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, 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
@Deprecated(since="2105", forRemoval=true) public ContentSlotData getContentSlotForPage(AbstractPageModel page, String position, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException Deprecated, for removal: This API element is subject to removal in a future version.since 2105, no longer needed.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
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 Collection<ContentSlotData> getAllContentSlotsForPageAndSlots(AbstractPageModel page, Collection<ContentSlotForPageModel> pageSlots, 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
-
getChildSlotForTemplateAtSamePosition
public List<ContentSlotForTemplateModel> getChildSlotForTemplateAtSamePosition(Collection<ContentSlotForTemplateModel> slotForTemplateModels) For multi-country the same position may have multi slotForTemplate, this function will get the child catalogVersion of slotForTemplateModel and remove other parents slotForTemplates.- Specified by:
getChildSlotForTemplateAtSamePositionin interfaceCMSPageService- Parameters:
slotForTemplateModels- the list of ContentSlotForTemplateModel may have multi slotForTemplate in same position- Returns:
- the
- ContentSlotForTemplateModel
-
getPageTemplateSlots
Returns a list ofContentSlotForTemplateModelfor a given page. -
getContentSlotsForPage
public 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 Collection<ContentSlotData> getContentSlotsForPageVersionFromSessionContext(AbstractPageModel page) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
getOverrideSlot
protected Optional<ContentSlotModel> getOverrideSlot(List<ContentSlotModel> contentSlots, ContentSlotModel contentSlot) -
getSortedMultiCountryContentSlots
public List<ContentSlotModel> getSortedMultiCountryContentSlots(List<ContentSlotModel> contentSlots, 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
-
getSortedMultiCountryContentSlots
public List<ContentSlotModel> getSortedMultiCountryContentSlots(List<ContentSlotModel> contentSlots, List<CatalogVersionModel> catalogVersions, AbstractPageModel page) Description copied from interface:CMSPageServiceGets the content slots sorted by their catalog hierarchy.- Specified by:
getSortedMultiCountryContentSlotsin interfaceCMSPageService- Parameters:
contentSlots- - the content slotscatalogVersions- - the catalog versionspage- - original page- Returns:
- a sorted list of
ContentSlotModel, empty list of not found.
-
appendContentSlots
protected List<ContentSlotModel> appendContentSlots(List<ContentSlotData> contentSlots, List<String> positions, Collection<ContentSlotForTemplateModel> templateSlots, AbstractPageModel page) -
getContentSlotsForPageTemplate
public 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
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
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(String label, CatalogVersionModel version) throws CMSItemNotFoundException Deprecated, 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
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
Description copied from interface:CMSPageServiceGets the frontend template name forPageTemplateModelobject.- Specified by:
getFrontendTemplateNamein interfaceCMSPageService- Parameters:
template- thePageTemplateModelobject.- Returns:
- the frontend template name.
-
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, 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
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
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
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(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(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
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(String id) throws CMSItemNotFoundException Deprecated, 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(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(String label) throws CMSItemNotFoundException Deprecated, 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(String label, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException Deprecated, 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(String label, List<CmsPageStatus> pageStatuses) throws CMSItemNotFoundException Deprecated, 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(String labelOrId) throws CMSItemNotFoundException Deprecated, 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(String labelOrId, PagePreviewCriteriaData pagePreviewCriteria) throws CMSItemNotFoundException Deprecated, 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
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
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(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
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 Collection<AbstractPageModel> getPagesForContentSlots(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 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 Collection<AbstractPageModel> getPagesForPageTemplateContentSlots(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
- Throws:
CMSItemNotFoundException
-
getSinglePage
-
getPageContentSlotFromVersionSessionContext
protected ContentSlotData getPageContentSlotFromVersionSessionContext(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
-
findAllPages
public SearchPageData<AbstractPageModel> findAllPages(String typeCode, SearchPageData searchPageData) Description copied from interface:CMSPageServiceFind all pages. The result is paginated.- Specified by:
findAllPagesin interfaceCMSPageService- Parameters:
typeCode- the page type codesearchPageData- the pagination and sorting information- Returns:
- a search result containing a list of
AbstractPageModel; can be empty, neverNULL
-
getCatalogService
-
setCatalogService
-
getCategoryService
-
setCategoryService
-
setCmsContentSlotDao
-
getCmsContentSlotDao
-
setCmsDataFactory
-
getCmsDataFactory
-
getCmsContentPageService
-
setCmsContentPageService
-
getCmsPageTemplateDao
-
setCmsPageTemplateDao
-
getProductService
-
setProductService
-
getTypeService
-
setTypeService
-
getConfigurationService
-
setConfigurationService
-
getCmsCatalogLevelService
-
setCmsCatalogLevelService
-
getAdminSiteService
-
setAdminSiteService
-
getCmsCatalogVersionLevelComparator
-
setCmsCatalogVersionLevelComparator
public void setCmsCatalogVersionLevelComparator(Comparator<CatalogVersionModel> cmsCatalogVersionLevelComparator) -
getCmsCatalogVersionService
-
setCmsCatalogVersionService
-