diff options
author | Arthur Martella <amartell@research.att.com> | 2017-09-08 13:27:46 -0400 |
---|---|---|
committer | Arthur Martella <amartell@research.att.com> | 2017-09-08 13:32:24 -0400 |
commit | 62cd6aaaf74aa91ee0037c0e155c8e7284f07567 (patch) | |
tree | 68c0c53c9156f5aa3c6b3599ac940770f986633d /mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatEnvironment.java | |
parent | fa1a211d28a912892fcd888569df033900eb01ee (diff) |
1710 Rebase - Second Attempt
This commit rebases changes from openecomp-mso/internal-staging-1710 up to and including this codecloud commit:
54483fc6606ddb1591a2e9da61bff8712325f924
Wed Sep 6 18:12:56 2017 -0400
Rebasing was done on a branch on top of this commit in so/master in ONAP:
93fbdfbe46104f8859d4754040f979cb7997c157
Thu Sep 7 16:42:59 2017 +0000
Change-Id: I4ad9abf40da32bf5bdca43e868b8fa2dbcd9dc59
Issue-id: SO-107
Signed-off-by: Arthur Martella <amartell@research.att.com>
Diffstat (limited to 'mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatEnvironment.java')
-rw-r--r-- | mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatEnvironment.java | 77 |
1 files changed, 17 insertions, 60 deletions
diff --git a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatEnvironment.java b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatEnvironment.java index a920375bcd..b7275f1a24 100644 --- a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatEnvironment.java +++ b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/HeatEnvironment.java @@ -20,47 +20,37 @@ package org.openecomp.mso.db.catalog.beans; - +import java.io.Serializable; import java.sql.Timestamp; import java.text.DateFormat; import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning; -public class HeatEnvironment extends MavenLikeVersioning { - private int id; +public class HeatEnvironment extends MavenLikeVersioning implements Serializable { + + private static final long serialVersionUID = 768026109321305392L; + + private String artifactUuid; private String name = null; private String description = null; private String environment = null; - - private String asdcUuid; - private String asdcResourceName; - private String asdcLabel; private String artifactChecksum; private Timestamp created; public HeatEnvironment() {} - public int getId() { - return this.id; + public String getArtifactUuid() { + return this.artifactUuid; } - - public void setId(int id) { - this.id = id; + public void setArtifactUuid(String artifactUuid) { + this.artifactUuid = artifactUuid; } - - /** - * @return the name - */ public String getName () { return name; } - - /** - * @param name the name to set - */ public void setName (String name) { this.name = name; } @@ -79,20 +69,6 @@ public class HeatEnvironment extends MavenLikeVersioning { this.environment = environment; } - public String getAsdcUuid() { - return asdcUuid; - } - - public void setAsdcUuid(String asdcUuid) { - this.asdcUuid = asdcUuid; - } - public String getAsdcLabel() { - return this.asdcLabel; - } - public void setAsdcLabel(String asdcLabel) { - this.asdcLabel = asdcLabel; - } - public String getArtifactChecksum() { return artifactChecksum; } @@ -101,21 +77,6 @@ public class HeatEnvironment extends MavenLikeVersioning { this.artifactChecksum = artifactChecksum; } - /** - * @return the asdcResourceName - */ - public String getAsdcResourceName () { - return asdcResourceName; - } - - - /** - * @param asdcResourceName the asdcResourceName to set - */ - public void setAsdcResourceName (String asdcResourceName) { - this.asdcResourceName = asdcResourceName; - } - public Timestamp getCreated() { return created; } @@ -127,22 +88,18 @@ public class HeatEnvironment extends MavenLikeVersioning { @Override public String toString () { StringBuffer sb = new StringBuffer(); - sb.append ("ID=" + this.id); + sb.append ("Artifact UUID=" + this.artifactUuid); sb.append (", name="); sb.append (name); sb.append (", version="); sb.append (version); sb.append(", description="); - sb.append (description == null ? "null" : description); - sb.append(", environment="); - sb.append (environment == null ? "null" : environment); - sb.append(", asdcUuid="); - sb.append (asdcUuid == null ? "null" : asdcUuid); - sb.append (", asdcResourceName="); - sb.append (asdcResourceName == null ? "null" : asdcResourceName); - if (created != null) { - sb.append (",created="); - sb.append (DateFormat.getInstance().format(created)); + sb.append (this.description == null ? "null" : this.description); + sb.append(", body="); + sb.append (this.environment == null ? "null" : this.environment); + if (this.created != null) { + sb.append (",creationTimestamp="); + sb.append (DateFormat.getInstance().format(this.created)); } return sb.toString(); } |