Class DefaultCMSNavigationDao

    • Field Detail

      • CATALOG_VERSIONS_QUERY_PARAM

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

        protected static final java.lang.String CATALOG_VERSION_QUERY_PARAM
        See Also:
        Constant Field Values
      • PAGE_QUERY_PARAM

        protected static final java.lang.String PAGE_QUERY_PARAM
        See Also:
        Constant Field Values
      • ENTRY_QUERY_PARAM

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

      • DefaultCMSNavigationDao

        public DefaultCMSNavigationDao()
    • Method Detail

      • findNavigationNodesById

        public java.util.List<CMSNavigationNodeModel> findNavigationNodesById​(java.lang.String id,
                                                                              java.util.Collection<CatalogVersionModel> catalogVersions)
        Find navigation nodes by id and catalog versions.
        Specified by:
        findNavigationNodesById in interface CMSNavigationDao
        Parameters:
        id - the id of CMSNavigationNodeModel object to find
        catalogVersions - the collection of catalog versions
        Returns:
        the list of found CMSNavigationNodeModel objects or empty list when not found
      • findSuperRootNavigationNode

        public CMSNavigationNodeModel findSuperRootNavigationNode​(CatalogVersionModel catalogVersion)
        Description copied from interface: CMSNavigationDao
        Finds the super navigation root by catalog version.

        Note: CMSNavigationNodeModel are hierarchical structure where the super root is on its top. Beside that the super root is only used as a placeholder for root navigation nodes.

        Specified by:
        findSuperRootNavigationNode in interface CMSNavigationDao
        Parameters:
        catalogVersion - the catalog version
        Returns:
        the super root for given catalog version, or null if not exist
      • findNavigationEntriesByPage

        public java.util.List<CMSNavigationEntryModel> findNavigationEntriesByPage​(AbstractPageModel page)
        Description copied from interface: CMSNavigationDao
        Finds all CMSNavigationEntryModel whose item attribute is of type AbstractPageModel associated with a AbstractPageModel.
        Specified by:
        findNavigationEntriesByPage in interface CMSNavigationDao
        Parameters:
        page - the page
        Returns:
        a List of CMSNavigationEntryModel, or an empty List CMSNavigationEntryModel if not found