Interface CMSPageDao

  • All Superinterfaces:
    Dao
    All Known Implementing Classes:
    DefaultCMSPageDao

    public interface CMSPageDao
    extends Dao
    The Interface CMSPageDao for finding pages.
    Spring Bean ID:
    cmsPageDao
    • Method Detail

      • findAllPagesByCatalogVersion

        java.util.Collection<AbstractPageModel> findAllPagesByCatalogVersion​(CatalogVersionModel catalogVersion)
        Find all active pages by catalog version.
        Parameters:
        catalogVersion - the catalog version
        Returns:
        the collection of found AbstractPageModel objects or empty collection when not found.
      • findAllPagesByCatalogVersionAndPageStatuses

        java.util.Collection<AbstractPageModel> findAllPagesByCatalogVersionAndPageStatuses​(CatalogVersionModel catalogVersion,
                                                                                            java.util.List<CmsPageStatus> pageStatuses)
        Find all pages by catalog version and a list of page statuses.
        Parameters:
        catalogVersion - the catalog version
        pageStatuses - a list of page statuses
        Returns:
        the collection of found AbstractPageModel objects or empty collection when not found.
      • findPagesByIdAndCatalogVersion

        java.util.List<AbstractPageModel> findPagesByIdAndCatalogVersion​(java.lang.String id,
                                                                         CatalogVersionModel catalogVersion)
        Find active pages by id and catalog version.
        Parameters:
        id - the id of AbstractPageModel object to find
        catalogVersion - the catalog version
        Returns:
        the list of found AbstractPageModel objects or empty list when not found.
      • findPagesByIdAndCatalogVersionAndPageStatuses

        java.util.List<AbstractPageModel> findPagesByIdAndCatalogVersionAndPageStatuses​(java.lang.String id,
                                                                                        CatalogVersionModel catalogVersion,
                                                                                        java.util.List<CmsPageStatus> pageStatuses)
        Find pages by id and catalog version and a list of page statuses.
        Parameters:
        id - the id of AbstractPageModel object to find
        catalogVersion - the catalog version
        pageStatuses - a list of page statuses
        Returns:
        the list of found AbstractPageModel objects or empty list when not found.
      • findPagesByIdAndPageStatuses

        <T extends AbstractPageModel> java.util.List<T> findPagesByIdAndPageStatuses​(java.lang.String id,
                                                                                     java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                                     java.util.List<CmsPageStatus> pageStatuses)
        Find pages by id and catalog versions and page status.
        Parameters:
        id - the id of AbstractPageModel object to find
        catalogVersions - the catalog versions
        pageStatuses - page status. i.e. active, deleted
        Returns:
        the list of found AbstractPageModel object or empty list when not found.
      • findPagesById

        java.util.List<AbstractPageModel> findPagesById​(java.lang.String id,
                                                        java.util.Collection<CatalogVersionModel> catalogVersions)
        Find pages by id and catalog versions.
        Parameters:
        id - the id of AbstractPageModel object to find
        catalogVersions - the catalog versions
        Returns:
        the list of found AbstractPageModel object or empty list when not found.
      • findPagesByLabel

        java.util.Collection<ContentPageModel> findPagesByLabel​(java.lang.String label,
                                                                java.util.Collection<CatalogVersionModel> catalogVersions)
        Find pages by label and catalog versions.
        Parameters:
        label - the label of ContentPageModel object to find
        catalogVersions - the catalog versions
        Returns:
        the collection of found ContentPageModel objects or empty collection when not found.
      • findPagesByLabelAndPageStatuses

        <T extends AbstractPageModel> java.util.Collection<T> findPagesByLabelAndPageStatuses​(java.lang.String label,
                                                                                              java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                                              java.util.List<CmsPageStatus> pageStatuses)
        Find pages by label, catalog versions and page statuses.
        Parameters:
        label - the label of ContentPageModel object to find
        catalogVersions - the catalog versions
        pageStatuses - page status. i.e. active, deleted
        Returns:
        the collection of found AbstractPageModel objects or empty collection when not found.
      • findPagesByLabelsAndPageStatuses

        <T extends AbstractPageModel> java.util.Collection<T> findPagesByLabelsAndPageStatuses​(java.util.Collection<java.lang.String> labels,
                                                                                               java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                                               java.util.List<CmsPageStatus> pageStatuses)
        Find content pages by labels, catalog versions and page statuses.
        Parameters:
        labels - the labels of ContentPageModel object to find
        catalogVersions - the catalog versions
        pageStatuses - page status. i.e. active, deleted
        Returns:
        the collection of found ContentPageModel objects or empty collection when not found.
      • findDefaultPagesByType

        java.util.List<AbstractPageModel> findDefaultPagesByType​(ComposedTypeModel composedType,
                                                                 java.util.Collection<CatalogVersionModel> catalogVersions)
        Find default pages by composed type of composedType and catalogVersions.
        Parameters:
        composedType - the composed type
        catalogVersions - the catalog versions
        Returns:
        the list of found page objects of type composedType or empty list when not found.
      • findPagesByType

        java.util.List<AbstractPageModel> findPagesByType​(ComposedTypeModel composedType,
                                                          java.util.Collection<CatalogVersionModel> catalogVersions,
                                                          boolean isDefault)
        Find default or non-default active pages by composed type of composedType and catalogVersions.
        Parameters:
        composedType - the composed type
        catalogVersions - the catalog versions
        isDefault - true to find default pages; false otherwise
        Returns:
        the list of found page objects of type composedType or empty list when not found.
      • findPagesByTypeAndPageStatuses

        java.util.List<AbstractPageModel> findPagesByTypeAndPageStatuses​(ComposedTypeModel composedType,
                                                                         java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                         boolean isDefault,
                                                                         java.util.List<CmsPageStatus> pageStatuses)
        Find default or non-default pages by composed type of composedType and catalogVersions and a list of page statuses.
        Parameters:
        composedType - the composed type
        catalogVersions - the catalog versions
        isDefault - true to find default pages; false otherwise
        pageStatuses - a list of page statuses
        Returns:
        the list of found page objects of type composedType or empty list when not found.
      • findAllContentPagesByCatalogVersions

        java.util.Collection<ContentPageModel> findAllContentPagesByCatalogVersions​(java.util.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

        java.util.Collection<ContentPageModel> findAllContentPagesByCatalogVersionsAndPageStatuses​(java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                                                   java.util.List<CmsPageStatus> pageStatuses)
        Find all content pages by catalog versions and a list of page statuses.
        Parameters:
        catalogVersions - the catalog versions
        pageStatuses - a list of page statuses
        Returns:
        the collection of found pages or empty collection when not found.
      • findAllPagesByTypeAndCatalogVersions

        java.util.Collection<AbstractPageModel> findAllPagesByTypeAndCatalogVersions​(ComposedTypeModel composedType,
                                                                                     java.util.Collection<CatalogVersionModel> catalogVersions)
        Find all pages by composed type of composedType and catalog versions.
        Parameters:
        composedType - the composed type
        catalogVersions - the catalog versions
        Returns:
        the collection of found pages or empty collection when not found.
      • findAllPagesByTypeAndCatalogVersionsAndPageStatuses

        java.util.Collection<AbstractPageModel> findAllPagesByTypeAndCatalogVersionsAndPageStatuses​(ComposedTypeModel composedType,
                                                                                                    java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                                                    java.util.List<CmsPageStatus> pageStatuses)
        Find all pages by composed type of composedType and catalog versions.
        Parameters:
        composedType - the composed type
        catalogVersions - the catalog versions
        pageStatuses - page status. i.e. active, deleted
        Returns:
        the collection of found pages or empty collection when not found.
      • findDefaultPageByTypeAndCatalogVersions

        java.util.Collection<AbstractPageModel> findDefaultPageByTypeAndCatalogVersions​(ComposedTypeModel composedType,
                                                                                        java.util.Collection<CatalogVersionModel> catalogVersions)
        Find default page by type and catalog versions.
        Parameters:
        composedType - the composed type
        catalogVersions - the catalog versions
        Returns:
        the collection of found pages or empty collection when not found.
      • findDefaultPageByTypeAndCatalogVersionsAndPageStatuses

        java.util.Collection<AbstractPageModel> findDefaultPageByTypeAndCatalogVersionsAndPageStatuses​(ComposedTypeModel composedType,
                                                                                                       java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                                                       java.util.List<CmsPageStatus> pageStatuses)
        Find default page by type and catalog versions.
        Parameters:
        composedType - the composed type
        catalogVersions - the catalog versions
        pageStatuses - page status. i.e. active, deleted
        Returns:
        the collection of found pages or empty collection when not found.
      • findDefaultContentPageByLabelAndCatalogVersions

        java.util.Collection<ContentPageModel> findDefaultContentPageByLabelAndCatalogVersions​(java.lang.String label,
                                                                                               java.util.Collection<CatalogVersionModel> catalogVersions)
        Find default content page with active status by label and catalog versions.
        Parameters:
        label - the label
        catalogVersions - the catalog versions
        Returns:
        the collection of found ContentPageModel objects or empty collection when not found.
      • findDefaultContentPageByLabelAndCatalogVersionsAndPageStatuses

        java.util.Collection<ContentPageModel> findDefaultContentPageByLabelAndCatalogVersionsAndPageStatuses​(java.lang.String label,
                                                                                                              java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                                                              java.util.List<CmsPageStatus> pageStatuses)
        Find default content page by label, catalog versions and page status.
        Parameters:
        label - the label
        catalogVersions - the catalog versions
        pageStatuses - - page status. i.e. active, deleted
        Returns:
        the collection of found ContentPageModel objects or empty collection when not found.
      • findPagesByContentSlots

        java.util.Collection<AbstractPageModel> findPagesByContentSlots​(java.util.Collection<ContentSlotModel> contentSlots,
                                                                        java.util.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 pages
        catalogVersions - - collection of catalog versions that result pages will be filtered with
        Returns:
        - collection of AbstractPageModel objects that are valid for given content slots and catalog versions
      • findPagesByContentSlotsAndPageStatuses

        java.util.Collection<AbstractPageModel> findPagesByContentSlotsAndPageStatuses​(java.util.Collection<ContentSlotModel> contentSlots,
                                                                                       java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                                       java.util.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 pages
        catalogVersions - - collection of catalog versions that result pages will be filtered with
        pageStatuses - - page status. i.e. active, deleted
        Returns:
        - collection of AbstractPageModel objects that are valid for given content slots and catalog versions
      • findPagesByPageTemplateContentSlots

        java.util.Collection<AbstractPageModel> findPagesByPageTemplateContentSlots​(java.util.Collection<ContentSlotModel> contentSlots,
                                                                                    java.util.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 pages
        catalogVersions - - collection of catalog versions that result pages will be filtered with
        Returns:
        - collection of AbstractPageModel objects that are valid for given content slots and catalog versions
      • findPagesByPageTemplateContentSlotsAndPageStatuses

        java.util.Collection<AbstractPageModel> findPagesByPageTemplateContentSlotsAndPageStatuses​(java.util.Collection<ContentSlotModel> contentSlots,
                                                                                                   java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                                                   java.util.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 pages
        catalogVersions - - collection of catalog versions that result pages will be filtered with
        pageStatuses - - page status. i.e. active, deleted
        Returns:
        - collection of AbstractPageModel objects that are valid for given content slots and catalog versions
      • findHomepage

        ContentPageModel findHomepage​(java.util.Collection<CatalogVersionModel> catalogVersions)
        Find homepage with active status for the given collection of catalog versions.
        Parameters:
        catalogVersions - the catalog versions
        Returns:
        the found ContentPageModel object or null when not found
      • findHomepageByPageStatuses

        ContentPageModel findHomepageByPageStatuses​(java.util.Collection<CatalogVersionModel> catalogVersions,
                                                    java.util.List<CmsPageStatus> pageStatuses)
        Find homepage for the given collection of catalog versions and page statuses.
        Parameters:
        catalogVersions - - the catalog versions
        pageStatuses - - list of page status, e.g. active, deleted
        Returns:
        the found ContentPageModel object or null when not found
      • findHomepagesByPageStatuses

        java.util.Collection<ContentPageModel> findHomepagesByPageStatuses​(java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                           java.util.List<CmsPageStatus> pageStatuses)
        Find all homepages for the given collection of catalog versions and page statuses.
        Parameters:
        catalogVersions - - the catalog versions
        pageStatuses - - list of page status, e.g. active, deleted
        Returns:
        the list of found ContentPageModel objects or empty when not found