Package org.wso2.carbon.dashboard.common.bean

Examples of org.wso2.carbon.dashboard.common.bean.Tab.toJSONObject()


     * @throws AxisFault
     */
    public String getDashboardContentAsJson(String userId, String dashboardName, String tDomain, String backendServerURL) throws AxisFault {
        DashboardContentBean dashboardContentBean = getDashboardContent(userId, dashboardName, tDomain, backendServerURL);
        try {
            return dashboardContentBean.toJSONObject().toString();
        } catch (JSONException e) {
            log.error(e.getMessage(), e);
            throw new AxisFault(e.getMessage(), e);
        }
    }
View Full Code Here


     */
    public String getTabContentAsJson(String userId, String dashboardName, String tDomain, String backendServerURL, String tabId) throws AxisFault {
        DashboardContentBean dashboardContentBean = getDashboardContent(userId, dashboardName, tDomain, backendServerURL);
        Tab tab = getTabContentFromId(dashboardContentBean, tabId);
        try {
            return tab.toJSONObject().toString();
        } catch (JSONException e) {
            log.error(e.getMessage(), e);
            throw new AxisFault(e.getMessage(), e);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.