Class DefaultCMSPageTemplateDao

    • Field Detail

      • CATALOG_VERSIONS_QUERY_PARAM

        protected static final java.lang.String CATALOG_VERSIONS_QUERY_PARAM
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultCMSPageTemplateDao

        public DefaultCMSPageTemplateDao()
    • Method Detail

      • findAllPageTemplatesByCatalogVersion

        public java.util.Collection<PageTemplateModel> findAllPageTemplatesByCatalogVersion​(CatalogVersionModel catalogVersion,
                                                                                            boolean active)
        Find all page templates by catalog version and active boolean flag.
        Specified by:
        findAllPageTemplatesByCatalogVersion in interface CMSPageTemplateDao
        Parameters:
        catalogVersion - the catalog version
        active - determines which page templates to find - active or not active
        Returns:
        the collection of found PageTemplateModel objects or empty collection when not found.
      • findAllPageTemplatesByCatalogVersions

        public java.util.Collection<PageTemplateModel> findAllPageTemplatesByCatalogVersions​(java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                                             boolean active)
        Find all page templates by catalog versions and active boolean flag.
        Specified by:
        findAllPageTemplatesByCatalogVersions in interface CMSPageTemplateDao
        Parameters:
        catalogVersions - the catalog versions
        active - determines which page templates to find - active or not active
        Returns:
        the collection of found PageTemplateModel objects or empty collection when not found.
      • findAllRestrictedPageTemplatesByCatalogVersion

        public java.util.Collection<PageTemplateModel> findAllRestrictedPageTemplatesByCatalogVersion​(CatalogVersionModel catalogVersion,
                                                                                                      boolean active,
                                                                                                      CMSPageTypeModel pageType)
        Find all restricted page templates by catalog version, active boolean flag and cms page type.
        Specified by:
        findAllRestrictedPageTemplatesByCatalogVersion in interface CMSPageTemplateDao
        Parameters:
        catalogVersion - the catalog version
        active - determines which page templates to find - active or not active
        pageType - the cms page type
        Returns:
        the collection of found PageTemplateModel objects or empty collection when not found.
      • findPageTemplatesByIdAndCatalogVersion

        public java.util.List<PageTemplateModel> findPageTemplatesByIdAndCatalogVersion​(java.lang.String id,
                                                                                        CatalogVersionModel catalogVersion)
        Find page templates by id and catalog version.
        Specified by:
        findPageTemplatesByIdAndCatalogVersion in interface CMSPageTemplateDao
        Parameters:
        id - the id of PageTemplateModel object to find
        catalogVersion - the catalog version
        Returns:
        the list of found PageTemplateModel objects or empty list when not found.
      • findAllRestrictedPageTemplatesByCatalogVersion

        public java.util.Collection<PageTemplateModel> findAllRestrictedPageTemplatesByCatalogVersion​(java.util.Collection<CatalogVersionModel> catalogVersions,
                                                                                                      boolean active,
                                                                                                      CMSPageTypeModel pageType)
        Description copied from interface: CMSPageTemplateDao
        Find all restricted page templates by catalog versions, active boolean flag and cms page type.
        Specified by:
        findAllRestrictedPageTemplatesByCatalogVersion in interface CMSPageTemplateDao
        Parameters:
        catalogVersions - the catalog versions
        active - determines which page templates to find - active or not active
        pageType - the cms page type
        Returns:
        the collection of found PageTemplateModel objects or empty collection when not found.