public class DefaultCMSContenSlotDao extends AbstractItemDao implements CMSContentSlotDao
CMSContentSlotDao interface.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CATALOG_VERSIONS_QUERY_PARAM |
protected static java.lang.String |
QUERY_CONTENT_SLOT |
flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultCMSContenSlotDao() |
| Modifier and Type | Method and 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.
|
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServiceprotected static final java.lang.String CATALOG_VERSIONS_QUERY_PARAM
protected static final java.lang.String QUERY_CONTENT_SLOT
public java.util.Collection<AbstractPageModel> findPagesByContentSlot(ContentSlotModel contentSlot)
findPagesByContentSlot in interface CMSContentSlotDaocontentSlot - the ContentSlotModel object for which pages will be obtained.AbstractPageModel objects related to ContentSlotModel object
or empty list when not found.public java.util.List<ContentSlotForTemplateModel> findAllContentSlotRelationsByPageTemplate(PageTemplateModel template, CatalogVersionModel catalogVersion)
findAllContentSlotRelationsByPageTemplate in interface CMSContentSlotDaotemplate - the page templatecatalogVersion - the catalog versionContentSlotForTemplateModel objects or empty list when not found.public java.util.List<ContentSlotForTemplateModel> findContentSlotRelationsByPageTemplateAndContentSlot(PageTemplateModel template, ContentSlotModel contentSlotModel, CatalogVersionModel catalogVersion)
findContentSlotRelationsByPageTemplateAndContentSlot in interface CMSContentSlotDaotemplate - the templatecontentSlotModel - the content slotcatalogVersion - the catalog versionContentSlotForTemplateModelpublic java.util.List<ContentSlotForTemplateModel> findAllContentSlotRelationsByPageTemplate(PageTemplateModel template)
findAllContentSlotRelationsByPageTemplate in interface CMSContentSlotDaotemplate - the page templateContentSlotForTemplateModel objects or empty list when not found.public java.util.List<ContentSlotForTemplateModel> findContentSlotRelationsByPageTemplateAndPosition(PageTemplateModel template, java.lang.String position, java.util.Collection<CatalogVersionModel> catalogVersions)
findContentSlotRelationsByPageTemplateAndPosition in interface CMSContentSlotDaotemplate - the page templateposition - the positioncatalogVersions - the catalog versionsContentSlotForTemplateModel objects or empty list when not foundpublic java.util.List<ContentSlotForPageModel> findAllContentSlotRelationsByPage(AbstractPageModel page, CatalogVersionModel catalogVersion)
findAllContentSlotRelationsByPage in interface CMSContentSlotDaopage - the pagecatalogVersion - the catalog versionContentSlotForPageModel objects or empty list when not foundpublic java.util.List<ContentSlotForPageModel> findAllContentSlotRelationsByPageUid(java.lang.String pageUid, CatalogVersionModel catalogVersion)
findAllContentSlotRelationsByPageUid in interface CMSContentSlotDaopageUid - the page uidcatalogVersion - the catalog versionsContentSlotForPageModel objects or empty list when not foundpublic java.util.List<ContentSlotForPageModel> findAllContentSlotRelationsByPage(AbstractPageModel page)
findAllContentSlotRelationsByPage in interface CMSContentSlotDaopage - the pageContentSlotForPageModel objects or empty list when not foundpublic java.util.List<ContentSlotForPageModel> findAllContentSlotRelationsByContentSlot(ContentSlotModel contentSlot, CatalogVersionModel catalogVersion)
findAllContentSlotRelationsByContentSlot in interface CMSContentSlotDaocontentSlot - the content slotcatalogVersion - the catalog versionContentSlotForPageModel objects or empty list when not foundpublic java.util.Collection<CMSRelationModel> findAllContentSlotRelationsByContentSlot(ContentSlotModel contentSlot)
findAllContentSlotRelationsByContentSlot in interface CMSContentSlotDaocontentSlot - the content slotCMSRelationModel objects or empty collection when not foundpublic java.util.Collection<CMSRelationModel> findOnlyContentSlotRelationsByContentSlot(ContentSlotModel contentSlot)
findOnlyContentSlotRelationsByContentSlot in interface CMSContentSlotDaocontentSlot - the content slotCMSRelationModel objects or empty collection when not foundpublic java.util.List<ContentSlotModel> findContentSlotsByIdAndCatalogVersions(java.lang.String id, java.util.Collection<CatalogVersionModel> catalogVersions)
findContentSlotsByIdAndCatalogVersions in interface CMSContentSlotDaoid - the id of ContentSlotModel object to findcatalogVersions - the catalog versionsContentSlotModel objects or empty list when not foundpublic java.util.List<ContentSlotModel> findContentSlotsById(java.lang.String id)
findContentSlotsById in interface CMSContentSlotDaoid - the id of ContentSlotModel object to findContentSlotModel objects or empty list when not foundpublic java.util.List<ContentSlotForPageModel> findContentSlotRelationsByPageAndContentSlot(AbstractPageModel page, ContentSlotModel contentSlot, CatalogVersionModel catalogVersion)
findContentSlotRelationsByPageAndContentSlot in interface CMSContentSlotDaopage - the pagecontentSlot - the content slotcatalogVersion - the catalog versionContentSlotForPageModel objects or empty list when not foundpublic java.util.List<ContentSlotForPageModel> findContentSlotRelationsByPageAndContentSlot(AbstractPageModel page, ContentSlotModel contentSlot, java.util.Collection<CatalogVersionModel> catalogVersions)
findContentSlotRelationsByPageAndContentSlot in interface CMSContentSlotDaopage - the pagecontentSlot - the content slotcatalogVersions - the catalog versionsContentSlotForPageModel objects or empty list when not foundpublic java.util.List<ContentSlotForPageModel> findContentSlotRelationsByPageAndPosition(AbstractPageModel page, java.lang.String position, CatalogVersionModel catalogVersion)
findContentSlotRelationsByPageAndPosition in interface CMSContentSlotDaopage - the pageposition - the positioncatalogVersion - the catalog versionContentSlotForPageModel objects or empty list when not foundpublic java.util.List<ContentSlotForPageModel> findContentSlotRelationsByPageAndPosition(AbstractPageModel page, java.lang.String position, java.util.Collection<CatalogVersionModel> catalogVersions)
findContentSlotRelationsByPageAndPosition in interface CMSContentSlotDaopage - the pageposition - the positioncatalogVersions - the catalog versionsContentSlotForPageModel objects or empty list when not foundpublic java.util.Collection<ContentSlotModel> findContentSlotsForCatalogVersion(CatalogVersionModel catalogVersion)
CMSContentSlotDaofindContentSlotsForCatalogVersion in interface CMSContentSlotDaocatalogVersion - - the catalog versionnullpublic java.util.List<ContentSlotForTemplateModel> findAllContentSlotForTemplateByContentSlot(ContentSlotModel contentSlot, CatalogVersionModel catalogVersion)
CMSContentSlotDaofindAllContentSlotForTemplateByContentSlot in interface CMSContentSlotDaocontentSlot - the content slotcatalogVersion - the catalog versionContentSlotForTemplateModel objects or empty list when none foundpublic java.util.List<ContentSlotModel> findAllMultiCountryContentSlotsByOriginalSlots(java.util.List<ContentSlotModel> contentSlots, java.util.List<CatalogVersionModel> catalogVersions)
CMSContentSlotDaofindAllMultiCountryContentSlotsByOriginalSlots in interface CMSContentSlotDaocontentSlots - the content slotscatalogVersions - the catalog versionsContentSlotModel objects or empty list when none foundCopyright © 2018 SAP SE. All Rights Reserved.