Add constant PdpGroup.VERSION 72/85072/1
authorJim Hahn <jrh3@att.com>
Thu, 11 Apr 2019 15:04:29 +0000 (11:04 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 11 Apr 2019 15:04:29 +0000 (11:04 -0400)
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>
models-pdp/src/main/java/org/onap/policy/models/pdp/concepts/PdpGroup.java

index 9665fd4..8805ae9 100644 (file)
@@ -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;