From 5fb11a142d8310d9d9ed62b58fe6701f6ce4d6b7 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Thu, 11 Apr 2019 11:04:29 -0400 Subject: 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 --- .../src/main/java/org/onap/policy/models/pdp/concepts/PdpGroup.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'models-pdp/src/main/java/org') 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 { + /** + * 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; -- cgit 1.2.3-korg