|
From: <rm...@hy...> - 2007-03-27 22:35:40
|
Author: rmorgan Date: 2007-03-27 14:35:35 -0800 (Tue, 27 Mar 2007) New Revision: 3926 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3926 Modified: trunk/ui_plugins/hqu_livedata/app/LiveController.groovy trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy Log: Clean up getData API for single commands. Modified: trunk/ui_plugins/hqu_livedata/app/LiveController.groovy =================================================================== --- trunk/ui_plugins/hqu_livedata/app/LiveController.groovy 2007-03-27 21:55:08 UTC (rev 3925) +++ trunk/ui_plugins/hqu_livedata/app/LiveController.groovy 2007-03-27 22:35:35 UTC (rev 3926) @@ -1,5 +1,6 @@ import org.hyperic.hq.ui.rendit.BaseController +import org.hyperic.hq.livedata.shared.LiveDataCommand import org.hyperic.util.config.ConfigResponse public class LiveController extends BaseController { @@ -16,7 +17,9 @@ if (command != null) { command = command[0] - result = liveDataHelper.getData(plat, command, [:]).XMLResult + def cmd = [plat.entityId, command, + [:] as ConfigResponse] as LiveDataCommand + result = liveDataHelper.getData(cmd).XMLResult } render(args:[resource:plat, cmds:cmds, result:result, command:command]) Modified: trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy =================================================================== --- trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy 2007-03-27 21:55:08 UTC (rev 3925) +++ trunk/ui_plugins/rendit_sys/org/hyperic/hq/ui/rendit/helpers/LiveDataHelper.groovy 2007-03-27 22:35:35 UTC (rev 3926) @@ -29,12 +29,9 @@ dataMan.getData(userVal, commands) } - LiveDataResult getData(AppdefResourceValue resource, String command, - config) + LiveDataResult getData(LiveDataCommand command) { - def cmd = [resource.entityId, command, - config as ConfigResponse] as LiveDataCommand - dataMan.getData(userVal, cmd) + dataMan.getData(userVal, command) } /** |