[POLICY-117] Resolve the Policy Critical issues
[policy/engine.git] / ECOMP-REST / src / main / java / org / openecomp / policy / rest / jpa / ConstraintType.java
index d7f5a72..60923d5 100644 (file)
@@ -51,7 +51,7 @@ public class ConstraintType implements Serializable {
                defaults.put(RANGE_TYPE, "Set a range of min and/or max integer/double values the attribute can be set to during policy creation.");
                defaults.put(REGEXP_TYPE, "Define a regular expression the attribute must match against during policy creation.");
        }
-       protected static final String[] RANGE_TYPES = {"minExclusive", "minInclusive", "maxExclusive", "maxInclusive"};
+       private static final String[] RANGE_TYPES = {"minExclusive", "minInclusive", "maxExclusive", "maxInclusive"};
        
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
@@ -114,4 +114,8 @@ public class ConstraintType implements Serializable {
                this.attributes = attributes;
        }
 
+       public static String[] getRangeTypes() {
+               return RANGE_TYPES;
+       }
+
 }