Package org.opencms.ui.sitemap
Class CmsSitemapTreeDataProvider
java.lang.Object
org.opencms.ui.sitemap.CmsSitemapTreeDataProvider
Loads node data for the sitemap tree.
-
Constructor Summary
ConstructorDescriptionCmsSitemapTreeDataProvider
(CmsObject cms, CmsResource root, I_CmsLocaleCompareContext context) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetChildren
(CmsSitemapTreeNodeData nodeData) Gets the node data for children of a given node.getData
(CmsResource resource) Gets the tree data for a resource.getRoot()
Gets the node data for the tree's root.Gets the sitemap service.
-
Constructor Details
-
CmsSitemapTreeDataProvider
public CmsSitemapTreeDataProvider(CmsObject cms, CmsResource root, I_CmsLocaleCompareContext context) Creates a new instance.- Parameters:
cms
- the CMS contextroot
- the root resource of the treecontext
- the locale context
-
-
Method Details
-
getChildren
Gets the node data for children of a given node.- Parameters:
nodeData
- the node whose children to get- Returns:
- the children
-
getData
Gets the tree data for a resource.- Parameters:
resource
- a resource- Returns:
- the data for the resource
-
getRoot
Gets the node data for the tree's root.- Returns:
- the node data
-
getSitemapService
Gets the sitemap service.- Returns:
- the sitemap service
- Throws:
CmsException
- if something goes wrong
-