org.exoplatform.wiki.tree.utils
Class TreeUtils
java.lang.Object
org.exoplatform.wiki.tree.utils.TreeUtils
public class TreeUtils
- extends Object
Created by The eXo Platform SAS
Author : Lai Trung Hieu
hieu.lai@exoplatform.com
7 Jan 2011
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeUtils
public TreeUtils()
getTreeNode
public static TreeNode getTreeNode(WikiPageParams params)
throws Exception
- Create a tree node with a given
WikiPageParams
- Parameters:
params - is the wiki page parameters
- Returns:
TreeNode
- Throws:
Exception
getDescendants
public static TreeNode getDescendants(WikiPageParams params,
HashMap<String,Object> context)
throws Exception
- Create a tree node contain all its descendant with a given
WikiPageParams
- Parameters:
params - is the wiki page parameterscontext - is the page tree context
- Returns:
TreeNode
- Throws:
Exception
tranformToJson
public static List<JsonNodeData> tranformToJson(TreeNode treeNode,
HashMap<String,Object> context)
throws Exception
- Throws:
Exception
getPageParamsFromPath
public static WikiPageParams getPageParamsFromPath(String path)
throws Exception
- Throws:
Exception
getPathFromPageParams
public static String getPathFromPageParams(WikiPageParams param)
Copyright © 2013 eXo Platform SAS. All Rights Reserved.