org.exoplatform.wiki.tree.utils
Class TreeUtils

java.lang.Object
  extended by org.exoplatform.wiki.tree.utils.TreeUtils

public class TreeUtils
extends Object


Constructor Summary
TreeUtils()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeUtils

public TreeUtils()
Method Detail

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 parameters
context - 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 © 2003-2013 eXo Platform SAS. All Rights Reserved.