From: <pn...@hy...> - 2010-04-09 03:55:00
|
Author: pnguyen Date: 2010-04-08 20:54:51 -0700 (Thu, 08 Apr 2010) New Revision: 14490 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=14490 Modified: trunk/src/org/hyperic/hq/hqu/rendit/metaclass/ResourceCategory.groovy Log: [HQ-2080] Add HQApi support to execute group control actions. Functionality added primarily for integration testing. Modified: trunk/src/org/hyperic/hq/hqu/rendit/metaclass/ResourceCategory.groovy =================================================================== --- trunk/src/org/hyperic/hq/hqu/rendit/metaclass/ResourceCategory.groovy 2010-04-09 03:46:06 UTC (rev 14489) +++ trunk/src/org/hyperic/hq/hqu/rendit/metaclass/ResourceCategory.groovy 2010-04-09 03:54:51 UTC (rev 14490) @@ -215,7 +215,11 @@ */ static void runAction(Resource r, AuthzSubject user, String action, String arguments) { - cMan.doAction(user, r.entityId, action, arguments) + if (r.entityId.isGroup()) { + cMan.doGroupAction(user, r.entityId, action, arguments, null) + } else { + cMan.doAction(user, r.entityId, action, arguments) + } } static boolean isGroup(Resource r) { |