public class TreeUtils extends Object
| Constructor and Description |
|---|
TreeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static TreeNode |
getDescendants(WikiPageParams params,
HashMap<String,Object> context)
Create a tree node contain all its descendant with a given
WikiPageParams |
static WikiPageParams |
getPageParamsFromPath(String path) |
static String |
getPathFromPageParams(WikiPageParams param) |
static TreeNode |
getTreeNode(WikiPageParams params)
Create a tree node with a given
WikiPageParams |
static List<JsonNodeData> |
tranformToJson(TreeNode treeNode,
HashMap<String,Object> context) |
public static TreeNode getTreeNode(WikiPageParams params) throws Exception
WikiPageParamsparams - is the wiki page parametersTreeNodeExceptionpublic static TreeNode getDescendants(WikiPageParams params, HashMap<String,Object> context) throws Exception
WikiPageParamsparams - is the wiki page parameterscontext - is the page tree contextTreeNodeExceptionpublic static List<JsonNodeData> tranformToJson(TreeNode treeNode, HashMap<String,Object> context) throws Exception
Exceptionpublic static WikiPageParams getPageParamsFromPath(String path) throws Exception
Exceptionpublic static String getPathFromPageParams(WikiPageParams param)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.