summaryrefslogtreecommitdiffstats
path: root/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-types/src/main/java/org/openecomp/sdcrests/vendorlicense/types/LimitEntityDto.java
diff options
context:
space:
mode:
authoraribeiro <anderson.ribeiro@est.tech>2021-07-12 15:10:19 +0100
committerMichael Morris <michael.morris@est.tech>2021-07-23 15:43:41 +0000
commitcba52c9e6c67ae2ee723c76f0c9ed165b657df63 (patch)
treeb0f8a2abdd105caa0560c6f0fa278b33d50a2c90 /openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-types/src/main/java/org/openecomp/sdcrests/vendorlicense/types/LimitEntityDto.java
parenta527fdac8996e4022879f1a871864ed49cf18325 (diff)
Fix security vulnerabilities
Issue-ID: SDC-3634 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I2ad864179cea8021773a9ea80953d995d75d36d0
Diffstat (limited to 'openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-types/src/main/java/org/openecomp/sdcrests/vendorlicense/types/LimitEntityDto.java')
-rw-r--r--openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-types/src/main/java/org/openecomp/sdcrests/vendorlicense/types/LimitEntityDto.java76
1 files changed, 22 insertions, 54 deletions
diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-types/src/main/java/org/openecomp/sdcrests/vendorlicense/types/LimitEntityDto.java b/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-types/src/main/java/org/openecomp/sdcrests/vendorlicense/types/LimitEntityDto.java
index a22bb0a64d..b9b018144d 100644
--- a/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-types/src/main/java/org/openecomp/sdcrests/vendorlicense/types/LimitEntityDto.java
+++ b/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-license-rest/vendor-license-rest-types/src/main/java/org/openecomp/sdcrests/vendorlicense/types/LimitEntityDto.java
@@ -19,6 +19,10 @@
*/
package org.openecomp.sdcrests.vendorlicense.types;
+import lombok.Data;
+import org.openecomp.sdc.common.util.ValidationUtils;
+
+@Data
public class LimitEntityDto {
private String id;
@@ -31,75 +35,39 @@ public class LimitEntityDto {
private String aggregationFunction;
private String time;
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getMetric() {
- return metric;
- }
-
- public void setMetric(String metric) {
- this.metric = metric;
+ public void setId(final String id) {
+ this.id = ValidationUtils.sanitizeInputString(id);
}
- public String getUnit() {
- return unit;
+ public void setName(final String name) {
+ this.name = ValidationUtils.sanitizeInputString(name);
}
- public void setUnit(String unit) {
- this.unit = unit;
+ public void setType(final String type) {
+ this.type = ValidationUtils.sanitizeInputString(type);
}
- public String getAggregationFunction() {
- return aggregationFunction;
+ public void setDescription(final String description) {
+ this.description = ValidationUtils.sanitizeInputString(description);
}
- public void setAggregationFunction(String aggregationFunction) {
- this.aggregationFunction = aggregationFunction;
+ public void setMetric(final String metric) {
+ this.metric = ValidationUtils.sanitizeInputString(metric);
}
- public String getTime() {
- return time;
+ public void setUnit(final String unit) {
+ this.unit = ValidationUtils.sanitizeInputString(unit);
}
- public void setTime(String time) {
- this.time = time;
+ public void setAggregationFunction(final String aggregationFunction) {
+ this.aggregationFunction = ValidationUtils.sanitizeInputString(aggregationFunction);
}
- public String getValue() {
- return value;
+ public void setTime(final String time) {
+ this.time = ValidationUtils.sanitizeInputString(time);
}
- public void setValue(String value) {
- this.value = value;
+ public void setValue(final String value) {
+ this.value = ValidationUtils.sanitizeInputString(value);
}
}