Interface CMSContentSlotDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCMSContenSlotDao
public interface CMSContentSlotDao extends Dao
The Interface CMSContentSlotDao for findingContentSlotForTemplateModelobjects.- Spring Bean ID:
- cmsContentSlotDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<ContentSlotForTemplateModel>findAllContentSlotForTemplateByContentSlot(ContentSlotModel contentSlot, CatalogVersionModel catalogVersion)Find the content slot for template relations for the given content slot and catalog version (used for multi-country)java.util.Collection<CMSRelationModel>findAllContentSlotRelationsByContentSlot(ContentSlotModel contentSlot)Find all content slot relations by content slot.java.util.List<ContentSlotForPageModel>findAllContentSlotRelationsByContentSlot(ContentSlotModel contentSlot, CatalogVersionModel catalogVersion)Find all content slot relations by content slot and catalog version.java.util.List<ContentSlotForPageModel>findAllContentSlotRelationsByPage(AbstractPageModel page)Find all content slot relations by page.java.util.List<ContentSlotForPageModel>findAllContentSlotRelationsByPage(AbstractPageModel page, CatalogVersionModel catalogVersion)Find all content slot relations by page and catalog version.java.util.List<ContentSlotForTemplateModel>findAllContentSlotRelationsByPageTemplate(PageTemplateModel template)Find all content slot relations by page template.java.util.List<ContentSlotForTemplateModel>findAllContentSlotRelationsByPageTemplate(PageTemplateModel template, CatalogVersionModel catalogVersion)Find all content slot relations by page template and catalog version.java.util.List<ContentSlotForPageModel>findAllContentSlotRelationsByPageUid(java.lang.String pageUid, CatalogVersionModel catalogVersion)Find all content slot relations for page uid and catalog version.java.util.List<ContentSlotModel>findAllMultiCountryContentSlotsByOriginalSlots(java.util.List<ContentSlotModel> contentSlots, java.util.List<CatalogVersionModel> catalogVersions)Find the content slots and their catalog hierarchy for the given content slots and catalog versions (used for multi-country)java.util.List<ContentSlotForPageModel>findContentSlotRelationsByPageAndContentSlot(AbstractPageModel page, ContentSlotModel contentSlot, CatalogVersionModel catalogVersion)Find content slot relations by page, content slot and catalog version.java.util.List<ContentSlotForPageModel>findContentSlotRelationsByPageAndContentSlot(AbstractPageModel page, ContentSlotModel contentSlot, java.util.Collection<CatalogVersionModel> catalogVersions)Find content slot relations by page, content slot and catalog versions.java.util.List<ContentSlotForPageModel>findContentSlotRelationsByPageAndPosition(AbstractPageModel page, java.lang.String position, CatalogVersionModel catalogVersion)Find content slot relations by page, position and catalog versions.java.util.List<ContentSlotForPageModel>findContentSlotRelationsByPageAndPosition(AbstractPageModel page, java.lang.String position, java.util.Collection<CatalogVersionModel> catalogVersions)Find content slot relations by page, position and catalog versions.java.util.List<ContentSlotForTemplateModel>findContentSlotRelationsByPageTemplateAndContentSlot(PageTemplateModel template, ContentSlotModel contentSlotModel, CatalogVersionModel catalogVersion)Find content slot relations for given page template and content slot.java.util.List<ContentSlotForTemplateModel>findContentSlotRelationsByPageTemplateAndPosition(PageTemplateModel template, java.lang.String position, java.util.Collection<CatalogVersionModel> catalogVersions)Find content slot relations by page template, position and catalog versions.java.util.List<ContentSlotModel>findContentSlotsById(java.lang.String id)Find content slots by id.java.util.List<ContentSlotModel>findContentSlotsByIdAndCatalogVersions(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions)Find content slots by id and catalog versions.java.util.Collection<ContentSlotModel>findContentSlotsForCatalogVersion(CatalogVersionModel catalogVersion)Find all content slots that belong to a given catalog version.java.util.Collection<CMSRelationModel>findOnlyContentSlotRelationsByContentSlot(ContentSlotModel contentSlot)Find only content slot relations not content slot template relations of given content slot.java.util.Collection<AbstractPageModel>findPagesByContentSlot(ContentSlotModel contentSlot)Find pages related to content slot.
-
-
-
Method Detail
-
findAllContentSlotRelationsByPageTemplate
java.util.List<ContentSlotForTemplateModel> findAllContentSlotRelationsByPageTemplate(PageTemplateModel template, CatalogVersionModel catalogVersion)
Find all content slot relations by page template and catalog version.- Parameters:
template- the page templatecatalogVersion- the catalog version- Returns:
- the list of found
ContentSlotForTemplateModelobjects or empty list when not found.
-
findContentSlotRelationsByPageTemplateAndContentSlot
java.util.List<ContentSlotForTemplateModel> findContentSlotRelationsByPageTemplateAndContentSlot(PageTemplateModel template, ContentSlotModel contentSlotModel, CatalogVersionModel catalogVersion)
Find content slot relations for given page template and content slot.- Parameters:
template- the templatecontentSlotModel- the content slotcatalogVersion- the catalog version- Returns:
- the found
ContentSlotForTemplateModel
-
findAllContentSlotRelationsByPageTemplate
java.util.List<ContentSlotForTemplateModel> findAllContentSlotRelationsByPageTemplate(PageTemplateModel template)
Find all content slot relations by page template.- Parameters:
template- the page template- Returns:
- the list of found
ContentSlotForTemplateModelobjects or empty list when not found.
-
findContentSlotRelationsByPageTemplateAndPosition
java.util.List<ContentSlotForTemplateModel> findContentSlotRelationsByPageTemplateAndPosition(PageTemplateModel template, java.lang.String position, java.util.Collection<CatalogVersionModel> catalogVersions)
Find content slot relations by page template, position and catalog versions.- Parameters:
template- the page templateposition- the positioncatalogVersions- the catalog versions- Returns:
- the list of found
ContentSlotForTemplateModelobjects or empty list when not found
-
findAllContentSlotRelationsByPage
java.util.List<ContentSlotForPageModel> findAllContentSlotRelationsByPage(AbstractPageModel page, CatalogVersionModel catalogVersion)
Find all content slot relations by page and catalog version.- Parameters:
page- the pagecatalogVersion- the catalog version- Returns:
- the list of found
ContentSlotForPageModelobjects or empty list when not found
-
findAllContentSlotRelationsByPageUid
java.util.List<ContentSlotForPageModel> findAllContentSlotRelationsByPageUid(java.lang.String pageUid, CatalogVersionModel catalogVersion)
Find all content slot relations for page uid and catalog version.- Parameters:
pageUid- the page uidcatalogVersion- the catalog versions- Returns:
- the list of found
ContentSlotForPageModelobjects or empty list when not found
-
findAllContentSlotRelationsByPage
java.util.List<ContentSlotForPageModel> findAllContentSlotRelationsByPage(AbstractPageModel page)
Find all content slot relations by page.- Parameters:
page- the page- Returns:
- the list of found
ContentSlotForPageModelobjects or empty list when not found
-
findAllContentSlotRelationsByContentSlot
java.util.List<ContentSlotForPageModel> findAllContentSlotRelationsByContentSlot(ContentSlotModel contentSlot, CatalogVersionModel catalogVersion)
Find all content slot relations by content slot and catalog version.- Parameters:
contentSlot- the content slotcatalogVersion- the catalog version- Returns:
- the list of found
ContentSlotForPageModelobjects or empty list when not found
-
findAllContentSlotRelationsByContentSlot
java.util.Collection<CMSRelationModel> findAllContentSlotRelationsByContentSlot(ContentSlotModel contentSlot)
Find all content slot relations by content slot.- Parameters:
contentSlot- the content slot- Returns:
- the collection of found
CMSRelationModelobjects or empty collection when not found
-
findOnlyContentSlotRelationsByContentSlot
java.util.Collection<CMSRelationModel> findOnlyContentSlotRelationsByContentSlot(ContentSlotModel contentSlot)
Find only content slot relations not content slot template relations of given content slot. The difference with findAllContentSlotRelationsByContentSlot: it does not search on the page's template for given contentSlot- Parameters:
contentSlot- the content slot- Returns:
- the collection of found
CMSRelationModelobjects or empty collection when not found
-
findContentSlotsByIdAndCatalogVersions
java.util.List<ContentSlotModel> findContentSlotsByIdAndCatalogVersions(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions)
Find content slots by id and catalog versions.- Parameters:
id- the id ofContentSlotModelobject to findcatalogVersions- the catalog versions- Returns:
- the list of found
ContentSlotModelobjects or empty list when not found
-
findContentSlotsById
java.util.List<ContentSlotModel> findContentSlotsById(java.lang.String id)
Find content slots by id.- Parameters:
id- the id ofContentSlotModelobject to find- Returns:
- the list of found
ContentSlotModelobjects or empty list when not found
-
findContentSlotRelationsByPageAndContentSlot
java.util.List<ContentSlotForPageModel> findContentSlotRelationsByPageAndContentSlot(AbstractPageModel page, ContentSlotModel contentSlot, CatalogVersionModel catalogVersion)
Find content slot relations by page, content slot and catalog version.- Parameters:
page- the pagecontentSlot- the content slotcatalogVersion- the catalog version- Returns:
- the list of found
ContentSlotForPageModelobjects or empty list when not found
-
findContentSlotRelationsByPageAndContentSlot
java.util.List<ContentSlotForPageModel> findContentSlotRelationsByPageAndContentSlot(AbstractPageModel page, ContentSlotModel contentSlot, java.util.Collection<CatalogVersionModel> catalogVersions)
Find content slot relations by page, content slot and catalog versions.- Parameters:
page- the pagecontentSlot- the content slotcatalogVersions- the catalog versions- Returns:
- the list of found
ContentSlotForPageModelobjects or empty list when not found
-
findContentSlotRelationsByPageAndPosition
java.util.List<ContentSlotForPageModel> findContentSlotRelationsByPageAndPosition(AbstractPageModel page, java.lang.String position, CatalogVersionModel catalogVersion)
Find content slot relations by page, position and catalog versions.- Parameters:
page- the pageposition- the positioncatalogVersion- the catalog version- Returns:
- the list of found
ContentSlotForPageModelobjects or empty list when not found
-
findContentSlotRelationsByPageAndPosition
java.util.List<ContentSlotForPageModel> findContentSlotRelationsByPageAndPosition(AbstractPageModel page, java.lang.String position, java.util.Collection<CatalogVersionModel> catalogVersions)
Find content slot relations by page, position and catalog versions.- Parameters:
page- the pageposition- the positioncatalogVersions- the catalog versions- Returns:
- the list of found
ContentSlotForPageModelobjects or empty list when not found
-
findPagesByContentSlot
java.util.Collection<AbstractPageModel> findPagesByContentSlot(ContentSlotModel contentSlot)
Find pages related to content slot.- Parameters:
contentSlot- theContentSlotModelobject for which pages will be obtained.- Returns:
- the collection of
AbstractPageModelobjects related toContentSlotModelobject or empty list when not found.
-
findContentSlotsForCatalogVersion
java.util.Collection<ContentSlotModel> findContentSlotsForCatalogVersion(CatalogVersionModel catalogVersion)
Find all content slots that belong to a given catalog version.- Parameters:
catalogVersion- - the catalog version- Returns:
- collection of content slots; never
null
-
findAllContentSlotForTemplateByContentSlot
java.util.List<ContentSlotForTemplateModel> findAllContentSlotForTemplateByContentSlot(ContentSlotModel contentSlot, CatalogVersionModel catalogVersion)
Find the content slot for template relations for the given content slot and catalog version (used for multi-country)- Parameters:
contentSlot- the content slotcatalogVersion- the catalog version- Returns:
- the list of
ContentSlotForTemplateModelobjects or empty list when none found
-
findAllMultiCountryContentSlotsByOriginalSlots
java.util.List<ContentSlotModel> findAllMultiCountryContentSlotsByOriginalSlots(java.util.List<ContentSlotModel> contentSlots, java.util.List<CatalogVersionModel> catalogVersions)
Find the content slots and their catalog hierarchy for the given content slots and catalog versions (used for multi-country)- Parameters:
contentSlots- the content slotscatalogVersions- the catalog versions- Returns:
- the list of
ContentSlotModelobjects or empty list when none found
-
-