Author: pnguyen
Date: 2009-11-19 09:10:18 -0800 (Thu, 19 Nov 2009)
New Revision: 13968
URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=13968
Modified:
trunk/src/org/hyperic/hq/appdef/server/session/Service.java
trunk/src/org/hyperic/hq/appdef/shared/ServiceValue.java
Log:
[HHQ-3513] Added resourceId to ServiceValue so HQApi does not need to do an additional lookup
Modified: trunk/src/org/hyperic/hq/appdef/server/session/Service.java
===================================================================
--- trunk/src/org/hyperic/hq/appdef/server/session/Service.java 2009-11-19 17:00:44 UTC (rev 13967)
+++ trunk/src/org/hyperic/hq/appdef/server/session/Service.java 2009-11-19 17:10:18 UTC (rev 13968)
@@ -178,6 +178,8 @@
_serviceValue.setName(getName());
_serviceValue.setDescription(getDescription());
_serviceValue.setId(getId());
+ _serviceValue.setResourceId(getResource() != null ?
+ getResource().getId() : null);
_serviceValue.setMTime(getMTime());
_serviceValue.setCTime(getCTime());
if (getServer() != null) {
Modified: trunk/src/org/hyperic/hq/appdef/shared/ServiceValue.java
===================================================================
--- trunk/src/org/hyperic/hq/appdef/shared/ServiceValue.java 2009-11-19 17:00:44 UTC (rev 13967)
+++ trunk/src/org/hyperic/hq/appdef/shared/ServiceValue.java 2009-11-19 17:10:18 UTC (rev 13968)
@@ -62,6 +62,8 @@
private boolean descriptionHasBeenSet = false;
private Integer id;
private boolean idHasBeenSet = false;
+ private Integer resourceId;
+ private boolean resourceIdHasBeenSet = false;
private Long mTime;
private boolean mTimeHasBeenSet = false;
private Long cTime;
@@ -131,6 +133,8 @@
configResponseIdHasBeenSet = true;
this.parentId = otherValue.parentId;
parentIdHasBeenSet = true;
+ this.resourceId = otherValue.resourceId;
+ resourceIdHasBeenSet = true;
this.name = otherValue.name;
nameHasBeenSet = true;
this.description = otherValue.description;
@@ -287,6 +291,20 @@
public boolean parentIdHasBeenSet(){
return parentIdHasBeenSet;
}
+
+ public Integer getResourceId() {
+ return this.resourceId;
+ }
+
+ public void setResourceId(Integer resourceId) {
+ this.resourceId = resourceId;
+ resourceIdHasBeenSet = true;
+ }
+
+ public boolean resourceIdHasBeenSet() {
+ return resourceIdHasBeenSet;
+ }
+
public String getName()
{
return this.name;
|