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 ofCMSPageService
interface.- 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.Logger
LOG
-
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 ofContentSlotData
for a provided page, list ofContentSlotForPageModel
andContentSlotForTemplateModel
.protected CatalogService
getCatalogService()
protected CategoryService
getCategoryService()
protected CatalogLevelService
getCmsCatalogLevelService()
protected CMSContentPageService
getCmsContentPageService()
protected CMSContentSlotDao
getCmsContentSlotDao()
protected CMSDataFactory
getCmsDataFactory()
protected CMSPageTemplateDao
getCmsPageTemplateDao()
protected ConfigurationService
getConfigurationService()
ContentSlotData
getContentSlotForPage(AbstractPageModel page, java.lang.String position)
Returns a contentslot for the given page and position.ContentSlotData
getContentSlotForPage(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 theContentSlotForPageModel
objects for passed as parameterAbstractPageModel
object andPagePreviewCriteriaData
.java.util.Collection<ContentSlotData>
getContentSlotsForPage(AbstractPageModel page)
Returns collection ofContentSlotData
objects containing data taken from allContentSlotForPageModel
objects as well fromContentSlotForTemplateModel
objects for passed as parameterAbstractPageModel
object.java.util.Collection<ContentSlotData>
getContentSlotsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria)
Returns collection ofContentSlotData
objects containing data taken from allContentSlotForPageModel
objects as well fromContentSlotForTemplateModel
objects for a givenAbstractPageModel
andPagePreviewCriteriaData
.java.util.Collection<ContentSlotForTemplateModel>
getContentSlotsForPageTemplate(PageTemplateModel pageTemplate)
Gets allContentSlotForTemplateModel
objects related to passed as parameterPageTemplateModel
.protected java.util.Collection<ContentSlotData>
getContentSlotsForPageVersionFromSessionContext(AbstractPageModel page)
CatalogPageModel
getDefaultCatalogPage()
Returns the default catalog page WITHOUT evaluating any restrictionsCategoryPageModel
getDefaultCategoryPage()
Returns the default category page WITHOUT evaluating any restrictionsprotected AbstractPageModel
getDefaultPage(java.lang.String composedTypeCode)
ContentPageModel
getDefaultPageForLabel(java.lang.String label, CatalogVersionModel version)
Deprecated, for removal: This API element is subject to removal in a future version.ProductPageModel
getDefaultProductPage()
Returns the default product page WITHOUT evaluating any restrictionsjava.lang.String
getFrontendTemplateName(PageTemplateModel template)
Gets the frontend template name forPageTemplateModel
object.ContentPageModel
getHomepage()
Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModel
getHomepage(PagePreviewCriteriaData pagePreviewCriteria)
Deprecated, for removal: This API element is subject to removal in a future version.java.lang.String
getLabelOrId(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 theContentSlotForPageModel
objects for passed as parameterAbstractPageModel
object.protected ContentSlotData
getPageContentSlotFromVersionSessionContext(java.lang.String position)
Return the Content Slot Data for a given page associated by the version in the session context and position.CatalogPageModel
getPageForCatalog(CatalogModel catalog)
Gets the page by catalog.CatalogPageModel
getPageForCatalogId(java.lang.String catalogId)
Gets the page for catalog id.CategoryPageModel
getPageForCategory(CategoryModel category)
Gets the page for category.CategoryPageModel
getPageForCategory(CategoryModel category, PagePreviewCriteriaData pagePreviewCriteria)
Gets the page for category andPagePreviewCriteriaData
.CategoryPageModel
getPageForCategoryCode(java.lang.String categoryCode)
Gets the page for category code.CategoryPageModel
getPageForCategoryCode(java.lang.String categoryCode, PagePreviewCriteriaData pagePreviewCriteria)
Gets the page for category code andPagePreviewCriteriaData
.AbstractPageModel
getPageForId(java.lang.String id)
Returns the page associated to a given uid.AbstractPageModel
getPageForId(java.lang.String id, PagePreviewCriteriaData pagePreviewCriteria)
Gets the page for id andPagePreviewCriteriaData
.AbstractPageModel
getPageForIdWithRestrictions(java.lang.String id)
Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModel
getPageForLabel(java.lang.String label)
Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModel
getPageForLabel(java.lang.String label, PagePreviewCriteriaData pagePreviewCriteria)
Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModel
getPageForLabelAndPageStatuses(java.lang.String label, java.util.List<CmsPageStatus> pageStatuses)
Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModel
getPageForLabelOrId(java.lang.String labelOrId)
Deprecated, for removal: This API element is subject to removal in a future version.ContentPageModel
getPageForLabelOrId(java.lang.String labelOrId, PagePreviewCriteriaData pagePreviewCriteria)
Deprecated, for removal: This API element is subject to removal in a future version.ProductPageModel
getPageForProduct(ProductModel product)
Gets the page for product.ProductPageModel
getPageForProduct(ProductModel product, PagePreviewCriteriaData pagePreviewCriteria)
Gets the page for product andPagePreviewCriteriaData
.ProductPageModel
getPageForProductCode(java.lang.String productCode)
Gets the page for product code.ProductPageModel
getPageForProductCode(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 ofContentSlotForTemplateModel
for a given page.protected ProductService
getProductService()
protected AbstractPageModel
getSinglePage(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 TypeService
getTypeService()
void
setCatalogService(CatalogService catalogService)
void
setCategoryService(CategoryService categoryService)
void
setCmsCatalogLevelService(CatalogLevelService cmsCatalogLevelService)
void
setCmsContentPageService(CMSContentPageService cmsContentPageService)
void
setCmsContentSlotDao(CMSContentSlotDao cmsContentSlotDao)
void
setCmsDataFactory(CMSDataFactory cmsDataFactory)
void
setCmsPageTemplateDao(CMSPageTemplateDao cmsPageTemplateDao)
void
setConfigurationService(ConfigurationService configurationService)
void
setProductService(ProductService productService)
void
setTypeService(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:CMSPageService
Gets the all active page templates.- Specified by:
getAllActivePageTemplates
in 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:
getAllContentPages
in interfaceCMSPageService
- Returns:
- the all content pages
-
getOwnContentSlotsForPage
public java.util.Collection<ContentSlotForPageModel> getOwnContentSlotsForPage(AbstractPageModel page)
Description copied from interface:CMSPageService
Returns theContentSlotForPageModel
objects for passed as parameterAbstractPageModel
object.- Specified by:
getOwnContentSlotsForPage
in interfaceCMSPageService
- Parameters:
page
- theAbstractPageModel
object.- Returns:
- collection of
ContentSlotForPageModel
objects related toAbstractPageModel
.
-
getContentSlotModelsForPage
public java.util.Collection<ContentSlotForPageModel> getContentSlotModelsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria)
Description copied from interface:CMSPageService
Returns theContentSlotForPageModel
objects for passed as parameterAbstractPageModel
object andPagePreviewCriteriaData
.- Specified by:
getContentSlotModelsForPage
in interfaceCMSPageService
- Parameters:
page
- theAbstractPageModel
object.pagePreviewCriteria
- thePagePreviewCriteriaData
object.- Returns:
- collection of
ContentSlotForPageModel
objects related toAbstractPageModel
.
-
getContentSlotForPage
public ContentSlotData getContentSlotForPage(AbstractPageModel page, java.lang.String position) throws CMSItemNotFoundException
Description copied from interface:CMSPageService
Returns 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:
getContentSlotForPage
in 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:CMSPageService
Returns 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:
getContentSlotForPage
in interfaceCMSPageService
- Parameters:
page
- the page modelposition
- the positionpagePreviewCriteria
- thePagePreviewCriteriaData
object.- 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:CMSPageService
Returns collection ofContentSlotData
objects containing data taken from allContentSlotForPageModel
objects as well fromContentSlotForTemplateModel
objects for passed as parameterAbstractPageModel
object.- Specified by:
getContentSlotsForPage
in interfaceCMSPageService
- Parameters:
page
- theAbstractPageModel
object.- Returns:
- collection of
ContentSlotData
objects.
-
getAllContentSlotsForPageAndSlots
protected java.util.Collection<ContentSlotData> getAllContentSlotsForPageAndSlots(AbstractPageModel page, java.util.Collection<ContentSlotForPageModel> pageSlots, java.util.Collection<ContentSlotForTemplateModel> templateSlots)
Returns a list ofContentSlotData
for a provided page, list ofContentSlotForPageModel
andContentSlotForTemplateModel
.- Parameters:
page
- the page modelpageSlots
- the list ofContentSlotForPageModel
templateSlots
- the list ofContentSlotForTemplateModel
- Returns:
- list of content slot dto
-
getPageTemplateSlots
protected java.util.Collection<ContentSlotForTemplateModel> getPageTemplateSlots(AbstractPageModel page)
Returns a list ofContentSlotForTemplateModel
for a given page.
-
getContentSlotsForPage
public java.util.Collection<ContentSlotData> getContentSlotsForPage(AbstractPageModel page, PagePreviewCriteriaData pagePreviewCriteria)
Description copied from interface:CMSPageService
Returns collection ofContentSlotData
objects containing data taken from allContentSlotForPageModel
objects as well fromContentSlotForTemplateModel
objects for a givenAbstractPageModel
andPagePreviewCriteriaData
.- Specified by:
getContentSlotsForPage
in interfaceCMSPageService
- Parameters:
page
- theAbstractPageModel
object.pagePreviewCriteria
- thePagePreviewCriteriaData
object.- Returns:
- collection of
ContentSlotData
objects.
-
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:CMSPageService
Gets the content slots sorted by their catalog hierarchy.- Specified by:
getSortedMultiCountryContentSlots
in 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:CMSPageService
Gets allContentSlotForTemplateModel
objects related to passed as parameterPageTemplateModel
.- Specified by:
getContentSlotsForPageTemplate
in interfaceCMSPageService
- Parameters:
pageTemplate
- thePageTemplateModel
object for which search will be executed.- Returns:
- the list of found
ContentSlotForTemplateModel
objects.
-
getDefaultCatalogPage
public CatalogPageModel getDefaultCatalogPage() throws CMSItemNotFoundException
Description copied from interface:CMSPageService
Returns the default catalog page WITHOUT evaluating any restrictions- Specified by:
getDefaultCatalogPage
in 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:CMSPageService
Returns the default category page WITHOUT evaluating any restrictions- Specified by:
getDefaultCategoryPage
in 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 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:
getDefaultPageForLabel
in 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:CMSPageService
Returns the default product page WITHOUT evaluating any restrictions- Specified by:
getDefaultProductPage
in 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:CMSPageService
Gets the frontend template name forPageTemplateModel
object.- Specified by:
getFrontendTemplateName
in interfaceCMSPageService
- Parameters:
template
- thePageTemplateModel
object.- 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:
getHomepage
in 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:
getHomepage
in interfaceCMSPageService
- Parameters:
pagePreviewCriteria
- thePagePreviewCriteriaData
object.- 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 theContentPageModel
label or id if label is empty.- Specified by:
getLabelOrId
in interfaceCMSPageService
- Parameters:
contentPage
- theContentPageModel
object.- Returns:
- the label or id of
ContentPageModel
.
-
getPageForCatalog
public CatalogPageModel getPageForCatalog(CatalogModel catalog) throws CMSItemNotFoundException
Description copied from interface:CMSPageService
Gets the page by catalog.- Specified by:
getPageForCatalog
in 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:CMSPageService
Gets the page for catalog id.- Specified by:
getPageForCatalogId
in 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:CMSPageService
Gets the page for category.- Specified by:
getPageForCategory
in 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:CMSPageService
Gets the page for category andPagePreviewCriteriaData
.- Specified by:
getPageForCategory
in interfaceCMSPageService
- Parameters:
category
- the categorypagePreviewCriteria
- thePagePreviewCriteriaData
object.- 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:CMSPageService
Gets the page for category code.- Specified by:
getPageForCategoryCode
in 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:CMSPageService
Gets the page for category code andPagePreviewCriteriaData
.- Specified by:
getPageForCategoryCode
in interfaceCMSPageService
- Parameters:
categoryCode
- the category codepagePreviewCriteria
- thePagePreviewCriteriaData
object.- 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:AbstractCMSPageService
Returns the page associated to a given uid.- Specified by:
getPageForId
in interfaceCMSPageService
- Overrides:
getPageForId
in 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 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:
getPageForIdWithRestrictions
in 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:
getPageForId
in interfaceCMSPageService
- Parameters:
id
- the idpagePreviewCriteria
- thePagePreviewCriteriaData
object.- 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 CMSItemNotFoundException
Deprecated, for removal: This API element is subject to removal in a future version.Gets the page for label.- Specified by:
getPageForLabel
in 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 CMSItemNotFoundException
Deprecated, for removal: This API element is subject to removal in a future version.Gets the page for label andPagePreviewCriteriaData
.- Specified by:
getPageForLabel
in interfaceCMSPageService
- Parameters:
label
- the labelpagePreviewCriteria
- thePagePreviewCriteriaData
object.- 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 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:
getPageForLabelAndPageStatuses
in 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 CMSItemNotFoundException
Deprecated, for removal: This API element is subject to removal in a future version.Gets the page for label or id.- Specified by:
getPageForLabelOrId
in 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 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:
getPageForLabelOrId
in interfaceCMSPageService
- Parameters:
labelOrId
- the label or idpagePreviewCriteria
- thePagePreviewCriteriaData
object.- 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:CMSPageService
Gets the page for product.- Specified by:
getPageForProduct
in 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:CMSPageService
Gets the page for product andPagePreviewCriteriaData
.- Specified by:
getPageForProduct
in interfaceCMSPageService
- Parameters:
product
- the productpagePreviewCriteria
- thePagePreviewCriteriaData
object.- 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:CMSPageService
Gets the page for product code.- Specified by:
getPageForProductCode
in 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:CMSPageService
Gets the page for product code andPagePreviewCriteriaData
.- Specified by:
getPageForProductCode
in interfaceCMSPageService
- Parameters:
productCode
- the product codepagePreviewCriteria
- thePagePreviewCriteriaData
object.- 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:CMSPageService
Returns all pages where given component occurs.- Specified by:
getPagesForComponent
in 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:CMSPageService
Returns all pages where given content slots occurs.- Specified by:
getPagesForContentSlots
in 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:CMSPageService
Gets the pages for page template component.- Specified by:
getPagesForPageTemplateComponent
in 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:CMSPageService
Gets the pages for page template content slots.- Specified by:
getPagesForPageTemplateContentSlots
in 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
ContentSlotData
data. - 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)
-
-