|
From: <jt...@hy...> - 2007-03-24 00:17:48
|
Author: jtravis Date: 2007-03-23 16:17:46 -0800 (Fri, 23 Mar 2007) New Revision: 3848 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3848 Modified: trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy Log: Add getAllPlatforms Modified: trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy =================================================================== --- trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy 2007-03-24 00:17:05 UTC (rev 3847) +++ trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/ui/rendit/helpers/ResourceHelper.groovy 2007-03-24 00:17:46 UTC (rev 3848) @@ -1,5 +1,7 @@ package org.hyperic.hq.ui.rendit.helpers +import org.hyperic.util.pager.PageControl + import org.hyperic.hq.appdef.shared.AppdefResourceValue import org.hyperic.hq.appdef.server.session.PlatformManagerEJBImpl @@ -22,7 +24,16 @@ private getPlatMan() { PlatformManagerEJBImpl.one } /** - * Generic method to find resources. + * Get all the platforms. The results are constrained by the authoraiztaion + * of the current user + */ + Collection getAllPlatforms() { + platMan.getAllPlatforms(userVal, PageControl.PAGE_ALL) + } + + /** + * Generic method to find resources. The results are constrained by the + * authorization of the current user * * args: The arguments are a map of options. Currently the only * options are to find a platform or platformType by name or id. |