Class CmsGalleryFilteredNavTreeBuilder


  • public class CmsGalleryFilteredNavTreeBuilder
    extends java.lang.Object
    Helper class for building a filtered sitemap tree for the gallery dialog's 'Sitemap' tab.

    Objects of this class are single-use, which means they should only be used for a single navigation tree filtering operation.

    • Constructor Detail

      • CmsGalleryFilteredNavTreeBuilder

        public CmsGalleryFilteredNavTreeBuilder​(CmsObject cms,
                                                java.lang.String rootPath)
        Creates a new navigation tree.

        Parameters:
        cms - the CMS context
        rootPath - the root path
    • Method Detail

      • hasMatches

        public boolean hasMatches()
        Returns true if any matching tree nodes have been found.

        Returns:
        tree if any matching tree nodes have been found
      • initTree

        public void initTree​(java.lang.String filter)
        Constructs the filtered navigation tree.

        Parameters:
        filter - the filter string