Interface CMSPageDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCMSPageDao
The Interface CMSPageDao for finding pages.
- Spring Bean ID:
- cmsPageDao
-
Method Summary
Modifier and TypeMethodDescriptionfindAllContentPagesByCatalogVersions(Collection<CatalogVersionModel> catalogVersions) Find all active content pages by catalog versions.findAllContentPagesByCatalogVersionsAndPageStatuses(Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find all content pages by catalog versions and a list of page statuses.findAllPagesByCatalogVersion(CatalogVersionModel catalogVersion) Find all active pages by catalog version.findAllPagesByCatalogVersionAndPageStatuses(CatalogVersionModel catalogVersion, List<CmsPageStatus> pageStatuses) Find all pages by catalog version and a list of page statuses.findAllPagesByTypeAndCatalogVersions(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions) Find all pages by composed type ofcomposedTypeand catalog versions.<T extends AbstractPageModel>
SearchPageData<T>findAllPagesByTypeAndCatalogVersions(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions, SearchPageData searchPageData) Find all active pages by composed type and catalog versions.findAllPagesByTypeAndCatalogVersionsAndPageStatuses(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find all pages by composed type ofcomposedTypeand catalog versions.findDefaultContentPageByLabelAndCatalogVersions(String label, Collection<CatalogVersionModel> catalogVersions) Find default content page with active status by label and catalog versions.findDefaultContentPageByLabelAndCatalogVersionsAndPageStatuses(String label, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find default content page by label, catalog versions and page status.findDefaultPageByTypeAndCatalogVersions(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions) Find default page by type and catalog versions.findDefaultPageByTypeAndCatalogVersionsAndPageStatuses(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find default page by type and catalog versions.findDefaultPagesByType(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions) Find default pages by composed type ofcomposedTypeand catalogVersions.findHomepage(Collection<CatalogVersionModel> catalogVersions) Find homepage with active status for the given collection of catalog versions.findHomepageByPageStatuses(Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find homepage for the given collection of catalog versions and page statuses.findHomepagesByPageStatuses(Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find all homepages for the given collection of catalog versions and page statuses.findPagesByContentSlots(Collection<ContentSlotModel> contentSlots, Collection<CatalogVersionModel> catalogVersions) Finds and returns all pages for the given collection of content slots.findPagesByContentSlotsAndPageStatuses(Collection<ContentSlotModel> contentSlots, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Finds and returns all pages for the given collection of content slots.findPagesById(String id, Collection<CatalogVersionModel> catalogVersions) Find pages by id and catalog versions.findPagesByIdAndCatalogVersion(String id, CatalogVersionModel catalogVersion) Find active pages by id and catalog version.findPagesByIdAndCatalogVersionAndPageStatuses(String id, CatalogVersionModel catalogVersion, List<CmsPageStatus> pageStatuses) Find pages by id and catalog version and a list of page statuses.<T extends AbstractPageModel>
List<T>findPagesByIdAndPageStatuses(String id, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find pages by id and catalog versions and page status.findPagesByLabel(String label, Collection<CatalogVersionModel> catalogVersions) Find pages by label and catalog versions.<T extends AbstractPageModel>
Collection<T>findPagesByLabelAndPageStatuses(String label, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find pages by label, catalog versions and page statuses.<T extends AbstractPageModel>
Collection<T>findPagesByLabelsAndPageStatuses(Collection<String> labels, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find content pages by labels, catalog versions and page statuses.findPagesByPageTemplateContentSlots(Collection<ContentSlotModel> contentSlots, Collection<CatalogVersionModel> catalogVersions) Finds and returns all pages that uses given content slots by page templatesfindPagesByPageTemplateContentSlotsAndPageStatuses(Collection<ContentSlotModel> contentSlots, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Finds and returns all pages that uses given content slots by page templatesfindPagesByType(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions, boolean isDefault) Find default or non-default active pages by composed type ofcomposedTypeand catalogVersions.findPagesByTypeAndPageStatuses(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions, boolean isDefault, List<CmsPageStatus> pageStatuses) Find default or non-default pages by composed type ofcomposedTypeand catalogVersions and a list of page statuses.
-
Method Details
-
findAllPagesByCatalogVersion
Find all active pages by catalog version.- Parameters:
catalogVersion- the catalog version- Returns:
- the collection of found
AbstractPageModelobjects or empty collection when not found.
-
findAllPagesByCatalogVersionAndPageStatuses
Collection<AbstractPageModel> findAllPagesByCatalogVersionAndPageStatuses(CatalogVersionModel catalogVersion, List<CmsPageStatus> pageStatuses) Find all pages by catalog version and a list of page statuses.- Parameters:
catalogVersion- the catalog versionpageStatuses- a list of page statuses- Returns:
- the collection of found
AbstractPageModelobjects or empty collection when not found.
-
findPagesByIdAndCatalogVersion
List<AbstractPageModel> findPagesByIdAndCatalogVersion(String id, CatalogVersionModel catalogVersion) Find active pages by id and catalog version.- Parameters:
id- the id ofAbstractPageModelobject to findcatalogVersion- the catalog version- Returns:
- the list of found
AbstractPageModelobjects or empty list when not found.
-
findPagesByIdAndCatalogVersionAndPageStatuses
List<AbstractPageModel> findPagesByIdAndCatalogVersionAndPageStatuses(String id, CatalogVersionModel catalogVersion, List<CmsPageStatus> pageStatuses) Find pages by id and catalog version and a list of page statuses.- Parameters:
id- the id ofAbstractPageModelobject to findcatalogVersion- the catalog versionpageStatuses- a list of page statuses- Returns:
- the list of found
AbstractPageModelobjects or empty list when not found.
-
findPagesByIdAndPageStatuses
<T extends AbstractPageModel> List<T> findPagesByIdAndPageStatuses(String id, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find pages by id and catalog versions and page status.- Parameters:
id- the id ofAbstractPageModelobject to findcatalogVersions- the catalog versionspageStatuses- page status. i.e. active, deleted- Returns:
- the list of found
AbstractPageModelobject or empty list when not found.
-
findPagesById
Find pages by id and catalog versions.- Parameters:
id- the id ofAbstractPageModelobject to findcatalogVersions- the catalog versions- Returns:
- the list of found
AbstractPageModelobject or empty list when not found.
-
findPagesByLabel
Collection<ContentPageModel> findPagesByLabel(String label, Collection<CatalogVersionModel> catalogVersions) Find pages by label and catalog versions.- Parameters:
label- the label ofContentPageModelobject to findcatalogVersions- the catalog versions- Returns:
- the collection of found
ContentPageModelobjects or empty collection when not found.
-
findPagesByLabelAndPageStatuses
<T extends AbstractPageModel> Collection<T> findPagesByLabelAndPageStatuses(String label, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find pages by label, catalog versions and page statuses.- Parameters:
label- the label ofContentPageModelobject to findcatalogVersions- the catalog versionspageStatuses- page status. i.e. active, deleted- Returns:
- the collection of found
AbstractPageModelobjects or empty collection when not found.
-
findPagesByLabelsAndPageStatuses
<T extends AbstractPageModel> Collection<T> findPagesByLabelsAndPageStatuses(Collection<String> labels, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find content pages by labels, catalog versions and page statuses.- Parameters:
labels- the labels ofContentPageModelobject to findcatalogVersions- the catalog versionspageStatuses- page status. i.e. active, deleted- Returns:
- the collection of found
ContentPageModelobjects or empty collection when not found.
-
findDefaultPagesByType
List<AbstractPageModel> findDefaultPagesByType(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions) Find default pages by composed type ofcomposedTypeand catalogVersions.- Parameters:
composedType- the composed typecatalogVersions- the catalog versions- Returns:
- the list of found page objects of type
composedTypeor empty list when not found.
-
findPagesByType
List<AbstractPageModel> findPagesByType(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions, boolean isDefault) Find default or non-default active pages by composed type ofcomposedTypeand catalogVersions.- Parameters:
composedType- the composed typecatalogVersions- the catalog versionsisDefault- true to find default pages; false otherwise- Returns:
- the list of found page objects of type
composedTypeor empty list when not found.
-
findPagesByTypeAndPageStatuses
List<AbstractPageModel> findPagesByTypeAndPageStatuses(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions, boolean isDefault, List<CmsPageStatus> pageStatuses) Find default or non-default pages by composed type ofcomposedTypeand catalogVersions and a list of page statuses.- Parameters:
composedType- the composed typecatalogVersions- the catalog versionsisDefault- true to find default pages; false otherwisepageStatuses- a list of page statuses- Returns:
- the list of found page objects of type
composedTypeor empty list when not found.
-
findAllContentPagesByCatalogVersions
Collection<ContentPageModel> findAllContentPagesByCatalogVersions(Collection<CatalogVersionModel> catalogVersions) Find all active content pages by catalog versions.- Parameters:
catalogVersions- the catalog versions- Returns:
- the collection of found pages or empty collection when not found.
-
findAllContentPagesByCatalogVersionsAndPageStatuses
Collection<ContentPageModel> findAllContentPagesByCatalogVersionsAndPageStatuses(Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find all content pages by catalog versions and a list of page statuses.- Parameters:
catalogVersions- the catalog versionspageStatuses- a list of page statuses- Returns:
- the collection of found pages or empty collection when not found.
-
findAllPagesByTypeAndCatalogVersions
Collection<AbstractPageModel> findAllPagesByTypeAndCatalogVersions(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions) Find all pages by composed type ofcomposedTypeand catalog versions.- Parameters:
composedType- the composed typecatalogVersions- the catalog versions- Returns:
- the collection of found pages or empty collection when not found.
-
findAllPagesByTypeAndCatalogVersions
<T extends AbstractPageModel> SearchPageData<T> findAllPagesByTypeAndCatalogVersions(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions, SearchPageData searchPageData) Find all active pages by composed type and catalog versions. The result is paginated.- Parameters:
composedType- the composed typecatalogVersions- the catalog versionssearchPageData- - the pagination and sorting information- Returns:
- the collection of found pages or empty collection when not found.
-
findAllPagesByTypeAndCatalogVersionsAndPageStatuses
Collection<AbstractPageModel> findAllPagesByTypeAndCatalogVersionsAndPageStatuses(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find all pages by composed type ofcomposedTypeand catalog versions.- Parameters:
composedType- the composed typecatalogVersions- the catalog versionspageStatuses- page status. i.e. active, deleted- Returns:
- the collection of found pages or empty collection when not found.
-
findDefaultPageByTypeAndCatalogVersions
Collection<AbstractPageModel> findDefaultPageByTypeAndCatalogVersions(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions) Find default page by type and catalog versions.- Parameters:
composedType- the composed typecatalogVersions- the catalog versions- Returns:
- the collection of found pages or empty collection when not found.
-
findDefaultPageByTypeAndCatalogVersionsAndPageStatuses
Collection<AbstractPageModel> findDefaultPageByTypeAndCatalogVersionsAndPageStatuses(ComposedTypeModel composedType, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find default page by type and catalog versions.- Parameters:
composedType- the composed typecatalogVersions- the catalog versionspageStatuses- page status. i.e. active, deleted- Returns:
- the collection of found pages or empty collection when not found.
-
findDefaultContentPageByLabelAndCatalogVersions
Collection<ContentPageModel> findDefaultContentPageByLabelAndCatalogVersions(String label, Collection<CatalogVersionModel> catalogVersions) Find default content page with active status by label and catalog versions.- Parameters:
label- the labelcatalogVersions- the catalog versions- Returns:
- the collection of found
ContentPageModelobjects or empty collection when not found.
-
findDefaultContentPageByLabelAndCatalogVersionsAndPageStatuses
Collection<ContentPageModel> findDefaultContentPageByLabelAndCatalogVersionsAndPageStatuses(String label, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find default content page by label, catalog versions and page status.- Parameters:
label- the labelcatalogVersions- the catalog versionspageStatuses- - page status. i.e. active, deleted- Returns:
- the collection of found
ContentPageModelobjects or empty collection when not found.
-
findPagesByContentSlots
Collection<AbstractPageModel> findPagesByContentSlots(Collection<ContentSlotModel> contentSlots, Collection<CatalogVersionModel> catalogVersions) Finds and returns all pages for the given collection of content slots.- Parameters:
contentSlots- - collection of content slots that will be searched for pagescatalogVersions- - collection of catalog versions that result pages will be filtered with- Returns:
- - collection of
AbstractPageModelobjects that are valid for given content slots and catalog versions
-
findPagesByContentSlotsAndPageStatuses
Collection<AbstractPageModel> findPagesByContentSlotsAndPageStatuses(Collection<ContentSlotModel> contentSlots, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Finds and returns all pages for the given collection of content slots.- Parameters:
contentSlots- - collection of content slots that will be searched for pagescatalogVersions- - collection of catalog versions that result pages will be filtered withpageStatuses- - page status. i.e. active, deleted- Returns:
- - collection of
AbstractPageModelobjects that are valid for given content slots and catalog versions
-
findPagesByPageTemplateContentSlots
Collection<AbstractPageModel> findPagesByPageTemplateContentSlots(Collection<ContentSlotModel> contentSlots, Collection<CatalogVersionModel> catalogVersions) Finds and returns all pages that uses given content slots by page templates- Parameters:
contentSlots- - collection of content slots that will be searched for pagescatalogVersions- - collection of catalog versions that result pages will be filtered with- Returns:
- - collection of
AbstractPageModelobjects that are valid for given content slots and catalog versions
-
findPagesByPageTemplateContentSlotsAndPageStatuses
Collection<AbstractPageModel> findPagesByPageTemplateContentSlotsAndPageStatuses(Collection<ContentSlotModel> contentSlots, Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Finds and returns all pages that uses given content slots by page templates- Parameters:
contentSlots- - collection of content slots that will be searched for pagescatalogVersions- - collection of catalog versions that result pages will be filtered withpageStatuses- - page status. i.e. active, deleted- Returns:
- - collection of
AbstractPageModelobjects that are valid for given content slots and catalog versions
-
findHomepage
Find homepage with active status for the given collection of catalog versions.- Parameters:
catalogVersions- the catalog versions- Returns:
- the found
ContentPageModelobject or null when not found
-
findHomepageByPageStatuses
ContentPageModel findHomepageByPageStatuses(Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find homepage for the given collection of catalog versions and page statuses.- Parameters:
catalogVersions- - the catalog versionspageStatuses- - list of page status, e.g. active, deleted- Returns:
- the found
ContentPageModelobject or null when not found
-
findHomepagesByPageStatuses
Collection<ContentPageModel> findHomepagesByPageStatuses(Collection<CatalogVersionModel> catalogVersions, List<CmsPageStatus> pageStatuses) Find all homepages for the given collection of catalog versions and page statuses.- Parameters:
catalogVersions- - the catalog versionspageStatuses- - list of page status, e.g. active, deleted- Returns:
- the list of found
ContentPageModelobjects or empty when not found
-