diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src')
3 files changed, 28 insertions, 28 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolEntity.java index dce2939ae5..2b7b3a6ded 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/EntitlementPoolEntity.java @@ -258,11 +258,11 @@ public class EntitlementPoolEntity implements VersionableEntity { if(obj.getType().equals(LimitType.ServiceProvider)){ LimitXml xmlObj = new LimitXml(); xmlObj.setDescription(obj.getDescription()); - xmlObj.setMetric(obj.getMetric()!=null?obj.getMetric().name():null); - xmlObj.setValues(obj.getValue()!=null?Integer.toString(obj.getValue()):null); - xmlObj.setUnit(obj.getUnit()!=null?Integer.toString(obj.getUnit()):null); + xmlObj.setMetric(obj.getMetric()); + xmlObj.setValues(obj.getValue()); + xmlObj.setUnit(obj.getUnit()); xmlObj.setAggregationFunction(obj.getAggregationFunction()!=null?obj.getAggregationFunction().name():null); - xmlObj.setTime(obj.getTime()!=null?obj.getTime().name():null); + xmlObj.setTime(obj.getTime()); hs.add(xmlObj); } } @@ -281,11 +281,11 @@ public class EntitlementPoolEntity implements VersionableEntity { if(obj.getType().equals(LimitType.Vendor)){ LimitXml xmlObj = new LimitXml(); xmlObj.setDescription(obj.getDescription()); - xmlObj.setMetric(obj.getMetric()!=null?obj.getMetric().name():null); - xmlObj.setValues(obj.getValue()!=null?Integer.toString(obj.getValue()):null); - xmlObj.setUnit(obj.getUnit()!=null?Integer.toString(obj.getUnit()):null); + xmlObj.setMetric(obj.getMetric()); + xmlObj.setValues(obj.getValue()); + xmlObj.setUnit(obj.getUnit()); xmlObj.setAggregationFunction(obj.getAggregationFunction()!=null?obj.getAggregationFunction().name():null); - xmlObj.setTime(obj.getTime()!=null?obj.getTime().name():null); + xmlObj.setTime(obj.getTime()); hs.add(xmlObj); } } diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseKeyGroupEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseKeyGroupEntity.java index d5efd59a6b..364a240498 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseKeyGroupEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/LicenseKeyGroupEntity.java @@ -224,11 +224,11 @@ public class LicenseKeyGroupEntity implements VersionableEntity { if(obj.getType().equals(LimitType.ServiceProvider)){ LimitXml xmlObj = new LimitXml(); xmlObj.setDescription(obj.getDescription()); - xmlObj.setMetric(obj.getMetric().toString()); - xmlObj.setValues(obj.getValue()!=null?Integer.toString(obj.getValue()):null); - xmlObj.setUnit(obj.getUnit()!=null?Integer.toString(obj.getUnit()):null); + xmlObj.setMetric(obj.getMetric()); + xmlObj.setValues(obj.getValue()); + xmlObj.setUnit(obj.getUnit()); xmlObj.setAggregationFunction(obj.getAggregationFunction()!=null?obj.getAggregationFunction().name():null); - xmlObj.setTime(obj.getTime()!=null?obj.getTime().name():null); + xmlObj.setTime(obj.getTime()); hs.add(xmlObj); } } @@ -247,11 +247,11 @@ public class LicenseKeyGroupEntity implements VersionableEntity { if(obj.getType().equals(LimitType.Vendor)){ LimitXml xmlObj = new LimitXml(); xmlObj.setDescription(obj.getDescription()); - xmlObj.setMetric(obj.getMetric().toString()); - xmlObj.setValues(obj.getValue()!=null?Integer.toString(obj.getValue()):null); - xmlObj.setUnit(obj.getUnit()!=null?Integer.toString(obj.getUnit()):null); + xmlObj.setMetric(obj.getMetric()); + xmlObj.setValues(obj.getValue()); + xmlObj.setUnit(obj.getUnit()); xmlObj.setAggregationFunction(obj.getAggregationFunction()!=null?obj.getAggregationFunction().name():null); - xmlObj.setTime(obj.getTime()!=null?obj.getTime().name():null); + xmlObj.setTime(obj.getTime()); hs.add(xmlObj); } } diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/LimitEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/LimitEntity.java index ba9c38f453..e40b2988b3 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/LimitEntity.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-api/src/main/java/org/openecomp/sdc/vendorlicense/dao/types/LimitEntity.java @@ -14,12 +14,12 @@ public class LimitEntity implements VersionableEntity { private String name; private LimitType type; private String description; - private EntitlementMetric metric; + private String metric; private Version version; - private Integer value; - private Integer unit; + private String value; + private String unit; private AggregationFunction aggregationFunction; - private EntitlementTime time; + private String time; public LimitEntity() { } @@ -31,11 +31,11 @@ public class LimitEntity implements VersionableEntity { this.id = id; } - public Integer getUnit() { + public String getUnit() { return unit; } - public void setUnit(Integer unit) { + public void setUnit(String unit) { this.unit = unit; } @@ -48,11 +48,11 @@ public class LimitEntity implements VersionableEntity { this.aggregationFunction = aggregationFunction; } - public EntitlementTime getTime() { + public String getTime() { return time; } - public void setTime(EntitlementTime time) { + public void setTime(String time) { this.time = time; } @@ -119,11 +119,11 @@ public class LimitEntity implements VersionableEntity { this.name = name; } - public EntitlementMetric getMetric() { + public String getMetric() { return metric; } - public void setMetric(EntitlementMetric metric) { + public void setMetric(String metric) { this.metric = metric; } @@ -135,11 +135,11 @@ public class LimitEntity implements VersionableEntity { this.description = description; } - public Integer getValue() { + public String getValue() { return value; } - public void setValue(Integer value) { + public void setValue(String value) { this.value = value; } |