com.silverpeas.treeMenu.process
Class TreeMenuJason

java.lang.Object
  extended by com.silverpeas.treeMenu.process.TreeMenuJason

public class TreeMenuJason
extends Object

Allows transforming menuItem to Json objects


Method Summary
static org.json.JSONArray getListAsJSONArray(List<MenuItem> items)
           
static org.json.JSONObject getMenuItemAsJSONObject(MenuItem item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMenuItemAsJSONObject

public static org.json.JSONObject getMenuItemAsJSONObject(MenuItem item)
Parameters:
item -
Returns:

getListAsJSONArray

public static org.json.JSONArray getListAsJSONArray(List<MenuItem> items)
Parameters:
items -
Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.