aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types')
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/VendorLicenseArtifact.java76
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/VnfLicenseArtifact.java98
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/XmlArtifact.java44
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinEntitlementPoolEntityForVendorLicenseArtifact.java130
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinEntitlementPoolEntityForVnfArtifact.java130
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinFeatureGroupEntity.java55
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinFeatureGroupModel.java50
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLicenseKeyGroupEntityForVendorLicenseArtifact.java97
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLicenseKeyGroupEntityForVnfArtifact.java103
-rw-r--r--openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLimitArtifact.java18
10 files changed, 389 insertions, 412 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/VendorLicenseArtifact.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/VendorLicenseArtifact.java
index afc1d3151b..a805b75587 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/VendorLicenseArtifact.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/VendorLicenseArtifact.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,13 +17,13 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
+import java.util.Collection;
import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolEntity;
import org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyGroupEntity;
import org.openecomp.sdc.vendorlicense.dao.types.xml.LimitXml;
@@ -31,53 +31,47 @@ import org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins.MixinE
import org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins.MixinLicenseKeyGroupEntityForVendorLicenseArtifact;
import org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins.MixinLimitArtifact;
-import java.util.Collection;
-
@JacksonXmlRootElement(localName = "vendor-license-model",
namespace = "http://xmlns.openecomp.org/asdc/license-model/1.0")
public class VendorLicenseArtifact extends XmlArtifact {
- @JsonProperty(value = "vendor-name")
- String vendorName;
- Collection<EntitlementPoolEntity> entitlementPoolEntities;
- Collection<LicenseKeyGroupEntity> licenseKeyGroupEntities;
+ @JsonProperty(value = "vendor-name")
+ String vendorName;
+ Collection<EntitlementPoolEntity> entitlementPoolEntities;
+ Collection<LicenseKeyGroupEntity> licenseKeyGroupEntities;
- public String getVendorName() {
- return vendorName;
- }
+ public String getVendorName() {
+ return vendorName;
+ }
- public void setVendorName(String vendorName) {
- this.vendorName = vendorName;
- }
+ public void setVendorName(String vendorName) {
+ this.vendorName = vendorName;
+ }
- @JacksonXmlProperty(isAttribute = false, localName = "entitlement-pool")
- @JacksonXmlElementWrapper(localName = "entitlement-pool-list")
- public Collection<EntitlementPoolEntity> getEntitlementPoolEntities() {
- return entitlementPoolEntities;
- }
+ @JacksonXmlProperty(isAttribute = false, localName = "entitlement-pool")
+ @JacksonXmlElementWrapper(localName = "entitlement-pool-list")
+ public Collection<EntitlementPoolEntity> getEntitlementPoolEntities() {
+ return entitlementPoolEntities;
+ }
- public void setEntitlementPoolEntities(
- Collection<EntitlementPoolEntity> entitlementPoolEntities) {
- this.entitlementPoolEntities = entitlementPoolEntities;
- }
+ public void setEntitlementPoolEntities(Collection<EntitlementPoolEntity> entitlementPoolEntities) {
+ this.entitlementPoolEntities = entitlementPoolEntities;
+ }
- @JacksonXmlProperty(isAttribute = false, localName = "license-key-group")
- @JacksonXmlElementWrapper(localName = "license-key-group-list")
- public Collection<LicenseKeyGroupEntity> getLicenseKeyGroupEntities() {
- return licenseKeyGroupEntities;
- }
+ @JacksonXmlProperty(isAttribute = false, localName = "license-key-group")
+ @JacksonXmlElementWrapper(localName = "license-key-group-list")
+ public Collection<LicenseKeyGroupEntity> getLicenseKeyGroupEntities() {
+ return licenseKeyGroupEntities;
+ }
- public void setLicenseKeyGroupEntities(
- Collection<LicenseKeyGroupEntity> licenseKeyGroupEntities) {
- this.licenseKeyGroupEntities = licenseKeyGroupEntities;
- }
+ public void setLicenseKeyGroupEntities(Collection<LicenseKeyGroupEntity> licenseKeyGroupEntities) {
+ this.licenseKeyGroupEntities = licenseKeyGroupEntities;
+ }
- @Override
- void initMapper() {
- xmlMapper.addMixIn(EntitlementPoolEntity.class,
- MixinEntitlementPoolEntityForVendorLicenseArtifact.class);
- xmlMapper.addMixIn(LicenseKeyGroupEntity.class,
- MixinLicenseKeyGroupEntityForVendorLicenseArtifact.class);
- xmlMapper.addMixIn(LimitXml.class, MixinLimitArtifact.class);
- }
+ @Override
+ void initMapper() {
+ xmlMapper.addMixIn(EntitlementPoolEntity.class, MixinEntitlementPoolEntityForVendorLicenseArtifact.class);
+ xmlMapper.addMixIn(LicenseKeyGroupEntity.class, MixinLicenseKeyGroupEntityForVendorLicenseArtifact.class);
+ xmlMapper.addMixIn(LimitXml.class, MixinLimitArtifact.class);
+ }
}
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/VnfLicenseArtifact.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/VnfLicenseArtifact.java
index 91a73b6377..1686b9631d 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/VnfLicenseArtifact.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/VnfLicenseArtifact.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,7 +17,6 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types;
import com.ctc.wstx.api.WstxInputProperties;
@@ -29,6 +28,11 @@ import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
+import java.io.Writer;
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolEntity;
import org.openecomp.sdc.vendorlicense.dao.types.FeatureGroupModel;
import org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyGroupEntity;
@@ -38,63 +42,55 @@ import org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins.MixinF
import org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins.MixinLicenseKeyGroupEntityForVnfArtifact;
import org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins.MixinLimitArtifact;
-import javax.xml.stream.XMLStreamException;
-import javax.xml.stream.XMLStreamWriter;
-import java.io.Writer;
-import java.util.ArrayList;
-import java.util.List;
-
@JacksonXmlRootElement(localName = "vf-license-model",
namespace = "http://xmlns.openecomp.org/asdc/license-model/1.0")
public class VnfLicenseArtifact extends XmlArtifact {
- @JsonProperty(value = "vendor-name")
- String vendorName;
- @JsonProperty(value = "vf-id")
- String vspId;
- List<FeatureGroupModel> featureGroups = new ArrayList<>();
-
- public String getVspId() {
- return vspId;
- }
-
- public void setVspId(String vspId) {
- this.vspId = vspId;
- }
- public String getVendorName() {
- return vendorName;
- }
+ @JsonProperty(value = "vendor-name")
+ String vendorName;
+ @JsonProperty(value = "vf-id")
+ String vspId;
+ List<FeatureGroupModel> featureGroups = new ArrayList<>();
- public void setVendorName(String vendorName) {
- this.vendorName = vendorName;
- }
+ public String getVspId() {
+ return vspId;
+ }
- @JacksonXmlProperty(isAttribute = false, localName = "feature-group")
- @JacksonXmlElementWrapper(localName = "feature-group-list")
- public List<FeatureGroupModel> getFeatureGroups() {
- return featureGroups;
- }
+ public void setVspId(String vspId) {
+ this.vspId = vspId;
+ }
- public void setFeatureGroups(List<FeatureGroupModel> featureGroups) {
- this.featureGroups = featureGroups;
- }
+ public String getVendorName() {
+ return vendorName;
+ }
- void initMapper() {
- WstxOutputFactory wstxOutputFactory = new WstxOutputFactory() {
- @Override
- public XMLStreamWriter createXMLStreamWriter(Writer writer) throws XMLStreamException {
- mConfig.setProperty(WstxInputProperties.P_RETURN_NULL_FOR_DEFAULT_NAMESPACE, true);
- return super.createXMLStreamWriter(writer);
- }
- };
- XmlFactory factory = new XmlFactory(new WstxInputFactory(), wstxOutputFactory);
+ public void setVendorName(String vendorName) {
+ this.vendorName = vendorName;
+ }
- xmlMapper = new XmlMapper(factory);
+ @JacksonXmlProperty(isAttribute = false, localName = "feature-group")
+ @JacksonXmlElementWrapper(localName = "feature-group-list")
+ public List<FeatureGroupModel> getFeatureGroups() {
+ return featureGroups;
+ }
+ public void setFeatureGroups(List<FeatureGroupModel> featureGroups) {
+ this.featureGroups = featureGroups;
+ }
- xmlMapper.addMixIn(EntitlementPoolEntity.class, MixinEntitlementPoolEntityForVnfArtifact.class);
- xmlMapper.addMixIn(LicenseKeyGroupEntity.class, MixinLicenseKeyGroupEntityForVnfArtifact.class);
- xmlMapper.addMixIn(FeatureGroupModel.class, MixinFeatureGroupModel.class);
- xmlMapper.addMixIn(LimitXml.class, MixinLimitArtifact.class);
- }
+ void initMapper() {
+ WstxOutputFactory wstxOutputFactory = new WstxOutputFactory() {
+ @Override
+ public XMLStreamWriter createXMLStreamWriter(Writer writer) throws XMLStreamException {
+ mConfig.setProperty(WstxInputProperties.P_RETURN_NULL_FOR_DEFAULT_NAMESPACE, true);
+ return super.createXMLStreamWriter(writer);
+ }
+ };
+ XmlFactory factory = new XmlFactory(new WstxInputFactory(), wstxOutputFactory);
+ xmlMapper = new XmlMapper(factory);
+ xmlMapper.addMixIn(EntitlementPoolEntity.class, MixinEntitlementPoolEntityForVnfArtifact.class);
+ xmlMapper.addMixIn(LicenseKeyGroupEntity.class, MixinLicenseKeyGroupEntityForVnfArtifact.class);
+ xmlMapper.addMixIn(FeatureGroupModel.class, MixinFeatureGroupModel.class);
+ xmlMapper.addMixIn(LimitXml.class, MixinLimitArtifact.class);
+ }
}
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/XmlArtifact.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/XmlArtifact.java
index 7052d6afb6..dc5089f57a 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/XmlArtifact.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/XmlArtifact.java
@@ -12,8 +12,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-*/
-
+ */
package org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
@@ -23,28 +22,23 @@ import org.openecomp.sdc.vendorlicense.errors.JsonErrorBuilder;
public abstract class XmlArtifact {
- XmlMapper xmlMapper = new XmlMapper();
-
- abstract void initMapper();
-
- /**
- * To xml string.
- *
- * @return the string
- */
- public String toXml() {
- initMapper();
- String xml;
-
- try {
- xml = xmlMapper.writeValueAsString(this);
- } catch (com.fasterxml.jackson.core.JsonProcessingException exception) {
- throw new CoreException(new JsonErrorBuilder("Failed to write xml value as string ")
- .build(), exception);
+ XmlMapper xmlMapper = new XmlMapper();
+
+ abstract void initMapper();
+
+ /**
+ * To xml string.
+ *
+ * @return the string
+ */
+ public String toXml() {
+ initMapper();
+ String xml;
+ try {
+ xml = xmlMapper.writeValueAsString(this);
+ } catch (com.fasterxml.jackson.core.JsonProcessingException exception) {
+ throw new CoreException(new JsonErrorBuilder("Failed to write xml value as string ").build(), exception);
+ }
+ return xml.replaceAll(VendorLicenseConstants.VENDOR_LICENSE_MODEL_ARTIFACT_REGEX_REMOVE, "");
}
-
- return xml.replaceAll(VendorLicenseConstants.VENDOR_LICENSE_MODEL_ARTIFACT_REGEX_REMOVE, "");
- }
-
-
}
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinEntitlementPoolEntityForVendorLicenseArtifact.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinEntitlementPoolEntityForVendorLicenseArtifact.java
index 5afd0a9ab1..55301c9b7f 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinEntitlementPoolEntityForVendorLicenseArtifact.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinEntitlementPoolEntityForVendorLicenseArtifact.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,98 +17,104 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import org.openecomp.sdc.vendorlicense.dao.types.*;
-import org.openecomp.sdc.vendorlicense.dao.types.xml.*;
-
import java.util.Collection;
import java.util.Set;
-
-@JsonPropertyOrder({ "entitlement-pool-invariant-uuid", "entitlement-pool-uuid" })
+import org.openecomp.sdc.vendorlicense.dao.types.AggregationFunction;
+import org.openecomp.sdc.vendorlicense.dao.types.ChoiceOrOther;
+import org.openecomp.sdc.vendorlicense.dao.types.EntitlementMetric;
+import org.openecomp.sdc.vendorlicense.dao.types.EntitlementTime;
+import org.openecomp.sdc.vendorlicense.dao.types.LimitEntity;
+import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.AggregationFunctionForXml;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.EntitlementMetricForXml;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.EntitlementTimeForXml;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.LimitForXml;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.OperationalScopeForXml;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.ThresholdForXml;
+
+@JsonPropertyOrder({"entitlement-pool-invariant-uuid", "entitlement-pool-uuid"})
public abstract class MixinEntitlementPoolEntityForVendorLicenseArtifact {
- @JsonProperty(value = "threshold-value")
- abstract ThresholdForXml getThresholdForArtifact();
-
- @JsonProperty(value = "entitlement-pool-uuid")
- abstract String getVersionUuId();
-
- @JsonIgnore
- abstract Set<String> getReferencingFeatureGroups();
- @JsonIgnore
- abstract String getFirstClassCitizenId();
+ @JsonProperty(value = "threshold-value")
+ abstract ThresholdForXml getThresholdForArtifact();
- @JsonProperty(value = "entitlement-pool-invariant-uuid")
- abstract String getId();
+ @JsonProperty(value = "entitlement-pool-uuid")
+ abstract String getVersionUuId();
- @JsonProperty(value = "manufacturer-reference-number")
- abstract String getManufacturerReferenceNumber();
+ @JsonIgnore
+ abstract Set<String> getReferencingFeatureGroups();
- @JsonProperty(value = "version")
- abstract String getVersionForArtifact();
+ @JsonIgnore
+ abstract String getFirstClassCitizenId();
- @JsonIgnore
- abstract String getStartDate();
+ @JsonProperty(value = "entitlement-pool-invariant-uuid")
+ abstract String getId();
- @JsonIgnore
- abstract String getExpiryDate();
+ @JsonProperty(value = "manufacturer-reference-number")
+ abstract String getManufacturerReferenceNumber();
- @JsonProperty(value = "start-date")
- abstract String getIsoFormatStartDate();
+ @JsonProperty(value = "version")
+ abstract String getVersionForArtifact();
- @JsonProperty(value = "expiry-date")
- abstract String getIsoFormatExpiryDate();
+ @JsonIgnore
+ abstract String getStartDate();
- @JsonIgnore
- abstract String getVendorLicenseModelId();
+ @JsonIgnore
+ abstract String getExpiryDate();
+ @JsonProperty(value = "start-date")
+ abstract String getIsoFormatStartDate();
+ @JsonProperty(value = "expiry-date")
+ abstract String getIsoFormatExpiryDate();
- @JsonIgnore
- abstract String getThresholdUnit();
+ @JsonIgnore
+ abstract String getVendorLicenseModelId();
- @JsonIgnore
- abstract float getThresholdValue();
+ @JsonIgnore
+ abstract String getThresholdUnit();
- @JsonIgnore
- abstract ChoiceOrOther<EntitlementMetric> getEntitlementMetric();
+ @JsonIgnore
+ abstract float getThresholdValue();
- @JsonIgnore
- abstract ChoiceOrOther<EntitlementTime> getTime();
+ @JsonIgnore
+ abstract ChoiceOrOther<EntitlementMetric> getEntitlementMetric();
- @JsonIgnore
- abstract ChoiceOrOther<AggregationFunction> getAggregationFunction();
+ @JsonIgnore
+ abstract ChoiceOrOther<EntitlementTime> getTime();
- @JsonIgnore
- abstract String getEntityType();
+ @JsonIgnore
+ abstract ChoiceOrOther<AggregationFunction> getAggregationFunction();
- @JsonProperty(value = "operational-scope")
- abstract OperationalScopeForXml getOperationalScopeForArtifact();
+ @JsonIgnore
+ abstract String getEntityType();
- @JsonIgnore
- abstract ChoiceOrOther<OperationalScope> getOperationalScope();
+ @JsonProperty(value = "operational-scope")
+ abstract OperationalScopeForXml getOperationalScopeForArtifact();
- @JsonProperty(value = "entitlement-metric")
- abstract EntitlementMetricForXml getEntitlementMetricForArtifact();
+ @JsonIgnore
+ abstract ChoiceOrOther<OperationalScope> getOperationalScope();
- @JsonProperty(value = "time")
- abstract EntitlementTimeForXml getTimeForArtifact();
+ @JsonProperty(value = "entitlement-metric")
+ abstract EntitlementMetricForXml getEntitlementMetricForArtifact();
+ @JsonProperty(value = "time")
+ abstract EntitlementTimeForXml getTimeForArtifact();
- @JsonProperty(value = "aggregation-function")
- abstract AggregationFunctionForXml getAggregationFunctionForArtifact();
+ @JsonProperty(value = "aggregation-function")
+ abstract AggregationFunctionForXml getAggregationFunctionForArtifact();
- @JsonProperty(value = "sp-limits")
- abstract LimitForXml getSPLimits();
+ @JsonProperty(value = "sp-limits")
+ abstract LimitForXml getSPLimits();
- @JsonProperty(value = "vendor-limits")
- abstract LimitForXml getVendorLimits();
+ @JsonProperty(value = "vendor-limits")
+ abstract LimitForXml getVendorLimits();
- @JsonIgnore
- abstract Collection<LimitEntity> getLimits();
+ @JsonIgnore
+ abstract Collection<LimitEntity> getLimits();
}
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinEntitlementPoolEntityForVnfArtifact.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinEntitlementPoolEntityForVnfArtifact.java
index 32ac6fb532..95dd28ada2 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinEntitlementPoolEntityForVnfArtifact.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinEntitlementPoolEntityForVnfArtifact.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,99 +17,105 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
-import org.openecomp.sdc.vendorlicense.dao.types.*;
-import org.openecomp.sdc.vendorlicense.dao.types.xml.*;
-
import java.util.Collection;
import java.util.Set;
+import org.openecomp.sdc.vendorlicense.dao.types.AggregationFunction;
+import org.openecomp.sdc.vendorlicense.dao.types.ChoiceOrOther;
+import org.openecomp.sdc.vendorlicense.dao.types.EntitlementMetric;
+import org.openecomp.sdc.vendorlicense.dao.types.EntitlementTime;
+import org.openecomp.sdc.vendorlicense.dao.types.LimitEntity;
+import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.AggregationFunctionForXml;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.EntitlementMetricForXml;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.EntitlementTimeForXml;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.LimitForXml;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.OperationalScopeForXml;
+import org.openecomp.sdc.vendorlicense.dao.types.xml.ThresholdForXml;
public abstract class MixinEntitlementPoolEntityForVnfArtifact {
- @JsonProperty(value = "threshold-value")
- abstract ThresholdForXml getThresholdForArtifact();
-
- @JsonProperty(value = "entitlement-pool-invariant-uuid")
- abstract String getId();
-
- @JsonProperty(value = "manufacturer-reference-number")
- abstract String getManufacturerReferenceNumber();
- @JsonIgnore
- abstract Set<String> getReferencingFeatureGroups();
+ @JsonProperty(value = "threshold-value")
+ abstract ThresholdForXml getThresholdForArtifact();
- @JsonIgnore
- abstract String getFirstClassCitizenId();
+ @JsonProperty(value = "entitlement-pool-invariant-uuid")
+ abstract String getId();
- @JsonProperty(value = "entitlement-pool-uuid")
- abstract String getVersionUuId();
+ @JsonProperty(value = "manufacturer-reference-number")
+ abstract String getManufacturerReferenceNumber();
- @JsonIgnore
- abstract String getVersion();
+ @JsonIgnore
+ abstract Set<String> getReferencingFeatureGroups();
- @JsonProperty(value = "version")
- abstract String getVersionForArtifact();
+ @JsonIgnore
+ abstract String getFirstClassCitizenId();
- @JsonIgnore
- abstract String getVendorLicenseModelId();
+ @JsonProperty(value = "entitlement-pool-uuid")
+ abstract String getVersionUuId();
- @JsonIgnore
- abstract String getThresholdUnit();
+ @JsonIgnore
+ abstract String getVersion();
- @JsonIgnore
- abstract float getThresholdValue();
+ @JsonProperty(value = "version")
+ abstract String getVersionForArtifact();
- @JsonIgnore
- abstract String getStartDate();
+ @JsonIgnore
+ abstract String getVendorLicenseModelId();
- @JsonIgnore
- abstract String getExpiryDate();
+ @JsonIgnore
+ abstract String getThresholdUnit();
- @JsonProperty(value = "start-date")
- abstract String getIsoFormatStartDate();
+ @JsonIgnore
+ abstract float getThresholdValue();
- @JsonProperty(value = "expiry-date")
- abstract String getIsoFormatExpiryDate();
+ @JsonIgnore
+ abstract String getStartDate();
- @JsonIgnore
- abstract ChoiceOrOther<EntitlementMetric> getEntitlementMetric();
+ @JsonIgnore
+ abstract String getExpiryDate();
- @JsonIgnore
- abstract ChoiceOrOther<EntitlementTime> getTime();
+ @JsonProperty(value = "start-date")
+ abstract String getIsoFormatStartDate();
- @JsonIgnore
- abstract ChoiceOrOther<AggregationFunction> getAggregationFunction();
+ @JsonProperty(value = "expiry-date")
+ abstract String getIsoFormatExpiryDate();
- @JsonIgnore
- abstract String getEntityType();
+ @JsonIgnore
+ abstract ChoiceOrOther<EntitlementMetric> getEntitlementMetric();
- @JsonProperty(value = "operational-scope")
- abstract OperationalScopeForXml getOperationalScopeForArtifact();
+ @JsonIgnore
+ abstract ChoiceOrOther<EntitlementTime> getTime();
- @JsonIgnore
- abstract ChoiceOrOther<OperationalScope> getOperationalScope();
+ @JsonIgnore
+ abstract ChoiceOrOther<AggregationFunction> getAggregationFunction();
+ @JsonIgnore
+ abstract String getEntityType();
- @JsonProperty(value = "entitlement-metric")
- abstract EntitlementMetricForXml getEntitlementMetricForArtifact();
+ @JsonProperty(value = "operational-scope")
+ abstract OperationalScopeForXml getOperationalScopeForArtifact();
- @JsonProperty(value = "time")
- abstract EntitlementTimeForXml getTimeForArtifact();
+ @JsonIgnore
+ abstract ChoiceOrOther<OperationalScope> getOperationalScope();
+ @JsonProperty(value = "entitlement-metric")
+ abstract EntitlementMetricForXml getEntitlementMetricForArtifact();
- @JsonProperty(value = "aggregation-function")
- abstract AggregationFunctionForXml getAggregationFunctionForArtifact();
+ @JsonProperty(value = "time")
+ abstract EntitlementTimeForXml getTimeForArtifact();
- @JsonProperty(value = "sp-limits")
- abstract LimitForXml getSPLimits();
+ @JsonProperty(value = "aggregation-function")
+ abstract AggregationFunctionForXml getAggregationFunctionForArtifact();
- @JsonProperty(value = "vendor-limits")
- abstract LimitForXml getVendorLimits();
+ @JsonProperty(value = "sp-limits")
+ abstract LimitForXml getSPLimits();
- @JsonIgnore
- abstract Collection<LimitEntity> getLimits();
+ @JsonProperty(value = "vendor-limits")
+ abstract LimitForXml getVendorLimits();
+ @JsonIgnore
+ abstract Collection<LimitEntity> getLimits();
}
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinFeatureGroupEntity.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinFeatureGroupEntity.java
index 61751b111b..970290b25a 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinFeatureGroupEntity.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinFeatureGroupEntity.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,49 +17,44 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins;
import com.fasterxml.jackson.annotation.JsonIgnore;
-import org.openecomp.sdc.versioning.dao.types.Version;
-
import java.util.Set;
+import org.openecomp.sdc.versioning.dao.types.Version;
public abstract class MixinFeatureGroupEntity {
- @JsonIgnore
- abstract String getVendorLicenseModelId();
-
- @JsonIgnore
- abstract String getEntityType();
-
-
- @JsonIgnore
- abstract Version getVersion();
+ @JsonIgnore
+ abstract String getVendorLicenseModelId();
- @JsonIgnore
- abstract String getId();
+ @JsonIgnore
+ abstract String getEntityType();
- @JsonIgnore
- abstract String getName();
+ @JsonIgnore
+ abstract Version getVersion();
- @JsonIgnore
- abstract String getDescription();
+ @JsonIgnore
+ abstract String getId();
- @JsonIgnore
- abstract String getPartNumber();
+ @JsonIgnore
+ abstract String getName();
- @JsonIgnore
- abstract String getManufacturerReferenceNumber();
+ @JsonIgnore
+ abstract String getDescription();
- @JsonIgnore
- abstract Set<String> getLicenseKeyGroupIds();
+ @JsonIgnore
+ abstract String getPartNumber();
- @JsonIgnore
- abstract Set<String> getEntitlementPoolIds();
+ @JsonIgnore
+ abstract String getManufacturerReferenceNumber();
+ @JsonIgnore
+ abstract Set<String> getLicenseKeyGroupIds();
- @JsonIgnore
- abstract Set<String> getReferencingLicenseAgreements();
+ @JsonIgnore
+ abstract Set<String> getEntitlementPoolIds();
+ @JsonIgnore
+ abstract Set<String> getReferencingLicenseAgreements();
}
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinFeatureGroupModel.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinFeatureGroupModel.java
index b8c45ba4c6..45feb365e5 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinFeatureGroupModel.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinFeatureGroupModel.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,48 +17,44 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
+import java.util.Set;
import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolEntity;
import org.openecomp.sdc.vendorlicense.dao.types.FeatureGroupEntity;
import org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyGroupEntity;
-import java.util.Set;
-
public abstract class MixinFeatureGroupModel {
- @JacksonXmlProperty(isAttribute = false, localName = "entitlement-pool")
- @JacksonXmlElementWrapper(localName = "entitlement-pool-list")
- abstract Set<EntitlementPoolEntity> getEntitlementPools();
-
- @JacksonXmlProperty(isAttribute = false, localName = "license-key-group")
- @JacksonXmlElementWrapper(localName = "license-key-group-list")
- abstract Set<LicenseKeyGroupEntity> getLicenseKeyGroups();
-
- @JacksonXmlProperty(isAttribute = false, localName = "part-number")
- abstract String getEntityPartNumber();
- @JacksonXmlProperty(isAttribute = false, localName = "feature-group-uuid")
- abstract String getEntityId();
+ @JacksonXmlProperty(isAttribute = false, localName = "entitlement-pool")
+ @JacksonXmlElementWrapper(localName = "entitlement-pool-list")
+ abstract Set<EntitlementPoolEntity> getEntitlementPools();
- @JacksonXmlProperty(isAttribute = false, localName = "description")
- abstract String getEntityDesc();
+ @JacksonXmlProperty(isAttribute = false, localName = "license-key-group")
+ @JacksonXmlElementWrapper(localName = "license-key-group-list")
+ abstract Set<LicenseKeyGroupEntity> getLicenseKeyGroups();
- @JacksonXmlProperty(isAttribute = false, localName = "name")
- abstract String getEntityName();
+ @JacksonXmlProperty(isAttribute = false, localName = "part-number")
+ abstract String getEntityPartNumber();
+ @JacksonXmlProperty(isAttribute = false, localName = "feature-group-uuid")
+ abstract String getEntityId();
- @JsonIgnore
- abstract FeatureGroupEntity getFeatureGroup();
+ @JacksonXmlProperty(isAttribute = false, localName = "description")
+ abstract String getEntityDesc();
- @JsonIgnore
- abstract String getEntityType();
+ @JacksonXmlProperty(isAttribute = false, localName = "name")
+ abstract String getEntityName();
- @JsonIgnore
- abstract String getEntityManufacturerReferenceNumber();
+ @JsonIgnore
+ abstract FeatureGroupEntity getFeatureGroup();
+ @JsonIgnore
+ abstract String getEntityType();
+ @JsonIgnore
+ abstract String getEntityManufacturerReferenceNumber();
}
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLicenseKeyGroupEntityForVendorLicenseArtifact.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLicenseKeyGroupEntityForVendorLicenseArtifact.java
index eeaa7c0a3a..03bc6c83ad 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLicenseKeyGroupEntityForVendorLicenseArtifact.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLicenseKeyGroupEntityForVendorLicenseArtifact.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,11 +17,12 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Collection;
+import java.util.Set;
import org.openecomp.sdc.vendorlicense.dao.types.ChoiceOrOther;
import org.openecomp.sdc.vendorlicense.dao.types.LimitEntity;
import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
@@ -30,74 +31,68 @@ import org.openecomp.sdc.vendorlicense.dao.types.xml.LimitForXml;
import org.openecomp.sdc.vendorlicense.dao.types.xml.OperationalScopeForXml;
import org.openecomp.sdc.vendorlicense.dao.types.xml.ThresholdForXml;
-import java.util.Collection;
-import java.util.Set;
-
public abstract class MixinLicenseKeyGroupEntityForVendorLicenseArtifact {
- @JsonProperty(value = "license-key-group-uuid")
- abstract String getVersionUuId();
-
- @JsonIgnore
- abstract Set<String> getReferencingFeatureGroups();
-
- @JsonProperty(value = "version")
- abstract String getVersionForArtifact();
-
- @JsonIgnore
- abstract String getVendorLicenseModelId();
+ @JsonProperty(value = "license-key-group-uuid")
+ abstract String getVersionUuId();
- @JsonIgnore
- abstract String getEntityType();
+ @JsonIgnore
+ abstract Set<String> getReferencingFeatureGroups();
- @JsonIgnore
- abstract String getFirstClassCitizenId();
+ @JsonProperty(value = "version")
+ abstract String getVersionForArtifact();
- @JsonProperty(value = "license-key-group-invariant-uuid")
- abstract String getId();
+ @JsonIgnore
+ abstract String getVendorLicenseModelId();
+ @JsonIgnore
+ abstract String getEntityType();
- @JsonIgnore
- abstract ChoiceOrOther<OperationalScope> getOperationalScope();
+ @JsonIgnore
+ abstract String getFirstClassCitizenId();
- @JsonProperty(value = "operational-scope")
- abstract OperationalScopeForXml getOperationalScopeForArtifact();
+ @JsonProperty(value = "license-key-group-invariant-uuid")
+ abstract String getId();
+ @JsonIgnore
+ abstract ChoiceOrOther<OperationalScope> getOperationalScope();
- @JsonIgnore
- abstract LicenseKeyTypeForXml getTypeForArtifact();
+ @JsonProperty(value = "operational-scope")
+ abstract OperationalScopeForXml getOperationalScopeForArtifact();
- @JsonIgnore
- abstract String getVersionableId();
+ @JsonIgnore
+ abstract LicenseKeyTypeForXml getTypeForArtifact();
- @JsonProperty(value = "sp-limits")
- abstract LimitForXml getSPLimits();
+ @JsonIgnore
+ abstract String getVersionableId();
- @JsonProperty(value = "vendor-limits")
- abstract LimitForXml getVendorLimits();
+ @JsonProperty(value = "sp-limits")
+ abstract LimitForXml getSPLimits();
- @JsonIgnore
- abstract Collection<LimitEntity> getLimits();
+ @JsonProperty(value = "vendor-limits")
+ abstract LimitForXml getVendorLimits();
- @JsonIgnore
- abstract String getStartDate();
+ @JsonIgnore
+ abstract Collection<LimitEntity> getLimits();
- @JsonIgnore
- abstract String getExpiryDate();
+ @JsonIgnore
+ abstract String getStartDate();
- @JsonProperty(value = "start-date")
- abstract String getIsoFormatStartDate();
+ @JsonIgnore
+ abstract String getExpiryDate();
- @JsonProperty(value = "expiry-date")
- abstract String getIsoFormatExpiryDate();
+ @JsonProperty(value = "start-date")
+ abstract String getIsoFormatStartDate();
- @JsonProperty(value = "threshold-value")
- abstract ThresholdForXml getThresholdForArtifact();
+ @JsonProperty(value = "expiry-date")
+ abstract String getIsoFormatExpiryDate();
- @JsonIgnore
- abstract String getThresholdUnits();
+ @JsonProperty(value = "threshold-value")
+ abstract ThresholdForXml getThresholdForArtifact();
- @JsonIgnore
- abstract float getThresholdValue();
+ @JsonIgnore
+ abstract String getThresholdUnits();
+ @JsonIgnore
+ abstract float getThresholdValue();
}
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLicenseKeyGroupEntityForVnfArtifact.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLicenseKeyGroupEntityForVnfArtifact.java
index f560f363a1..c9e21806ce 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLicenseKeyGroupEntityForVnfArtifact.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLicenseKeyGroupEntityForVnfArtifact.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,11 +17,12 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Collection;
+import java.util.Set;
import org.openecomp.sdc.vendorlicense.dao.types.ChoiceOrOther;
import org.openecomp.sdc.vendorlicense.dao.types.LimitEntity;
import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
@@ -30,78 +31,74 @@ import org.openecomp.sdc.vendorlicense.dao.types.xml.LimitForXml;
import org.openecomp.sdc.vendorlicense.dao.types.xml.OperationalScopeForXml;
import org.openecomp.sdc.vendorlicense.dao.types.xml.ThresholdForXml;
-import java.util.Collection;
-import java.util.Set;
-
public abstract class MixinLicenseKeyGroupEntityForVnfArtifact {
- @JsonProperty(value = "license-key-group-invariant-uuid")
- abstract String getId();
-
- @JsonProperty(value = "manufacturer-reference-number")
- abstract String getManufacturerReferenceNumber();
- @JsonIgnore
- abstract Set<String> getReferencingFeatureGroups();
+ @JsonProperty(value = "license-key-group-invariant-uuid")
+ abstract String getId();
- @JsonIgnore
- abstract String getVersion();
+ @JsonProperty(value = "manufacturer-reference-number")
+ abstract String getManufacturerReferenceNumber();
- @JsonProperty(value = "version")
- abstract String getVersionForArtifact();
+ @JsonIgnore
+ abstract Set<String> getReferencingFeatureGroups();
- @JsonIgnore
- abstract String getVendorLicenseModelId();
+ @JsonIgnore
+ abstract String getVersion();
+ @JsonProperty(value = "version")
+ abstract String getVersionForArtifact();
- @JsonIgnore
- abstract String getEntityType();
+ @JsonIgnore
+ abstract String getVendorLicenseModelId();
- @JsonProperty(value = "license-key-group-uuid")
- abstract String getVersionUuId();
+ @JsonIgnore
+ abstract String getEntityType();
- @JsonIgnore
- abstract String getFirstClassCitizenId();
+ @JsonProperty(value = "license-key-group-uuid")
+ abstract String getVersionUuId();
+ @JsonIgnore
+ abstract String getFirstClassCitizenId();
- @JsonIgnore
- abstract ChoiceOrOther<OperationalScope> getOperationalScope();
+ @JsonIgnore
+ abstract ChoiceOrOther<OperationalScope> getOperationalScope();
- @JsonProperty(value = "operational-scope")
- abstract OperationalScopeForXml getOperationalScopeForArtifact();
+ @JsonProperty(value = "operational-scope")
+ abstract OperationalScopeForXml getOperationalScopeForArtifact();
+ @JsonIgnore
+ abstract LicenseKeyTypeForXml getTypeForArtifact();
- @JsonIgnore
- abstract LicenseKeyTypeForXml getTypeForArtifact();
+ @JsonIgnore
+ abstract String getVersionableId();
- @JsonIgnore
- abstract String getVersionableId();
+ @JsonProperty(value = "threshold-value")
+ abstract ThresholdForXml getThresholdForArtifact();
- @JsonProperty(value = "threshold-value")
- abstract ThresholdForXml getThresholdForArtifact();
- @JsonProperty(value = "sp-limits")
- abstract LimitForXml getSPLimits();
+ @JsonProperty(value = "sp-limits")
+ abstract LimitForXml getSPLimits();
- @JsonProperty(value = "vendor-limits")
- abstract LimitForXml getVendorLimits();
+ @JsonProperty(value = "vendor-limits")
+ abstract LimitForXml getVendorLimits();
- @JsonIgnore
- abstract Collection<LimitEntity> getLimits();
+ @JsonIgnore
+ abstract Collection<LimitEntity> getLimits();
- @JsonIgnore
- abstract String getStartDate();
+ @JsonIgnore
+ abstract String getStartDate();
- @JsonIgnore
- abstract String getExpiryDate();
+ @JsonIgnore
+ abstract String getExpiryDate();
- @JsonProperty(value = "start-date")
- abstract String getIsoFormatStartDate();
+ @JsonProperty(value = "start-date")
+ abstract String getIsoFormatStartDate();
- @JsonProperty(value = "expiry-date")
- abstract String getIsoFormatExpiryDate();
+ @JsonProperty(value = "expiry-date")
+ abstract String getIsoFormatExpiryDate();
- @JsonIgnore
- abstract String getThresholdUnits();
+ @JsonIgnore
+ abstract String getThresholdUnits();
- @JsonIgnore
- abstract float getThresholdValue();
+ @JsonIgnore
+ abstract float getThresholdValue();
}
diff --git a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLimitArtifact.java b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLimitArtifact.java
index 1a15a6e557..7627d5f243 100644
--- a/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLimitArtifact.java
+++ b/openecomp-be/lib/openecomp-sdc-vendor-license-lib/openecomp-sdc-vendor-license-core/src/main/java/org/openecomp/sdc/vendorlicense/licenseartifacts/impl/types/mixins/MixinLimitArtifact.java
@@ -17,7 +17,6 @@
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-
package org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins;
import com.fasterxml.jackson.annotation.JsonIgnore;
@@ -27,16 +26,15 @@ import org.openecomp.sdc.vendorlicense.dao.types.xml.EntitlementTimeForXml;
public abstract class MixinLimitArtifact {
- @JsonIgnore
- abstract String getTime();
-
- @JsonIgnore
- abstract String getAggregationFunction();
+ @JsonIgnore
+ abstract String getTime();
- @JsonProperty(value = "aggregation-function")
- abstract AggregationFunctionForXml getAggregationFunctionForArtifact();
+ @JsonIgnore
+ abstract String getAggregationFunction();
- @JsonProperty(value = "time")
- abstract EntitlementTimeForXml getTimeForArtifact();
+ @JsonProperty(value = "aggregation-function")
+ abstract AggregationFunctionForXml getAggregationFunctionForArtifact();
+ @JsonProperty(value = "time")
+ abstract EntitlementTimeForXml getTimeForArtifact();
}