From 85cac1dc75b716d828ebab894b8f406867a5b98a Mon Sep 17 00:00:00 2001 From: Jennifer Hickey Date: Fri, 18 Dec 2009 17:51:29 -0800 Subject: [PATCH] Fixed bug caused by refactoring of AppdefEntityID --- hqu/hqapi1/app/ResourceController.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hqu/hqapi1/app/ResourceController.groovy b/hqu/hqapi1/app/ResourceController.groovy index 37d44455..5670d6d8 100644 --- a/hqu/hqapi1/app/ResourceController.groovy +++ b/hqu/hqapi1/app/ResourceController.groovy @@ -1,5 +1,6 @@ import org.hyperic.hq.hqapi1.ErrorCode import org.hyperic.hq.appdef.shared.AppdefEntityID +import org.hyperic.hq.appdef.shared.AppdefUtil; import org.hyperic.hq.authz.shared.AuthzConstants import org.hyperic.hq.authz.shared.PermissionException import org.hyperic.hq.authz.shared.ResourceEdgeCreateException @@ -890,7 +891,7 @@ class ResourceController extends ApiController { resourceFrom = getResource(xmlResource.'@id'?.toInteger()) if (resourceFrom) { - parent = new AppdefEntityID(resourceFrom) + parent = AppdefUtil.newAppdefEntityId(resourceFrom) } else { return getFailureXML(ErrorCode.OBJECT_NOT_FOUND, "Unable to find resource with id = " + @@ -900,7 +901,7 @@ class ResourceController extends ApiController { xmlResourceTo['Resource'].each { resourceTo = getResource(it.'@id'?.toInteger()) if (resourceTo) { - children << new AppdefEntityID(resourceTo) + children << AppdefUtil.newAppdefEntityId(resourceTo) } else { return getFailureXML(ErrorCode.OBJECT_NOT_FOUND, "Unable to find resource with id = " +