aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-04-11 11:04:29 -0400
committerJim Hahn <jrh3@att.com>2019-04-11 11:04:29 -0400
commit5fb11a142d8310d9d9ed62b58fe6701f6ce4d6b7 (patch)
tree60f3f8e7fe9a8e6fa55758f9756696535255a258
parent891bffd9f13177d96ad26acdfa7148d09e1d682a (diff)
Add constant PdpGroup.VERSION
At some point, the "version" field will be removed from PdpGroup. Until then, all groups should have the same version, thus added a constant for that value. Change-Id: Ib81e2760d04bea0abf83c42bf95fe861a7471176 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
-rw-r--r--models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpGroup.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpGroup.java b/models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpGroup.java
index 9665fd472..8805ae9ba 100644
--- a/models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpGroup.java
+++ b/models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpGroup.java
@@ -41,6 +41,12 @@ import org.onap.policy.models.pdp.enums.PdpState;
@Data
@NoArgsConstructor
public class PdpGroup implements PfNameVersion, Comparable<PdpGroup> {
+ /**
+ * In the future, we'll eliminate the "version" field. Until then, the version of
+ * every group should always be this fixed value.
+ */
+ public static final String VERSION = "1.0.0";
+
private String name;
private String version;
private String description;