Package org.opencms.ade.galleries
Class CmsGalleryFilteredNavTreeBuilder
java.lang.Object
org.opencms.ade.galleries.CmsGalleryFilteredNavTreeBuilder
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
A tree node representing a navigation entry. -
Constructor Summary
ConstructorsConstructorDescriptionCmsGalleryFilteredNavTreeBuilder
(CmsObject cms, String rootPath) Creates a new navigation tree. -
Method Summary
Modifier and TypeMethodDescriptiongetRoot()
Gets the root node.boolean
Returns true if any matching tree nodes have been found.void
Constructs the filtered navigation tree.
-
Constructor Details
-
CmsGalleryFilteredNavTreeBuilder
Creates a new navigation tree.- Parameters:
cms
- the CMS contextrootPath
- the root path
-
-
Method Details
-
getRoot
Gets the root node.- Returns:
- the root node
-
hasMatches
Returns true if any matching tree nodes have been found.- Returns:
- tree if any matching tree nodes have been found
-
initTree
Constructs the filtered navigation tree.- Parameters:
filter
- the filter string
-