|
From: <jt...@hy...> - 2007-03-24 00:18:10
|
Author: jtravis Date: 2007-03-23 16:18:00 -0800 (Fri, 23 Mar 2007) New Revision: 3849 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3849 Modified: trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy Log: Bring current with Morg's changes Modified: trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy =================================================================== --- trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy 2007-03-24 00:17:46 UTC (rev 3848) +++ trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy 2007-03-24 00:18:00 UTC (rev 3849) @@ -1,6 +1,9 @@ package org.hyperic.hq.ui.rendit.helpers +import org.hyperic.hq.appdef.shared.AppdefResourceValue +import org.hyperic.util.config.ConfigResponse import org.hyperic.hq.livedata.server.session.LiveDataManagerEJBImpl +import org.hyperic.hq.livedata.shared.LiveDataResult import org.json.JSONArray class LiveDataHelper @@ -12,12 +15,15 @@ private getDataMan() { LiveDataManagerEJBImpl.one } - String[] getCommands(resource) { + String[] getCommands(AppdefResourceValue resource) { dataMan.getCommands(userVal, resource.entityId) } - JSONArray getData(resource, command) { - new JSONArray(dataMan.getData(userVal, resource.entityId, command)) + LiveDataResult getData(AppdefResourceValue resource, String command, + config) + { + dataMan.getData(userVal, resource.entityId, command, + config as ConfigResponse) } } |