064d17b8facb5a33b042eaa9bd51eca2ac616fc7
[sdc.git] / 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
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.vendorlicense.licenseartifacts.impl.types.mixins;
22
23 import com.fasterxml.jackson.annotation.JsonIgnore;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
26 import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
27 import org.openecomp.sdc.vendorlicense.dao.types.AggregationFunction;
28 import org.openecomp.sdc.vendorlicense.dao.types.ChoiceOrOther;
29 import org.openecomp.sdc.vendorlicense.dao.types.EntitlementMetric;
30 import org.openecomp.sdc.vendorlicense.dao.types.EntitlementTime;
31 import org.openecomp.sdc.vendorlicense.dao.types.OperationalScope;
32 import org.openecomp.sdc.vendorlicense.dao.types.xml.AggregationFunctionForXml;
33 import org.openecomp.sdc.vendorlicense.dao.types.xml.EntitlementMetricForXml;
34 import org.openecomp.sdc.vendorlicense.dao.types.xml.EntitlementTimeForXml;
35 import org.openecomp.sdc.vendorlicense.dao.types.xml.ThresholdForXml;
36
37 import java.util.Set;
38
39 public abstract class MixinEntitlementPoolEntityForVnfArtifact {
40   @JsonProperty(value = "threshold-value")
41   abstract ThresholdForXml getThresholdForArtifact();
42
43   @JsonIgnore
44   abstract String getId();
45
46   @JsonProperty(value = "manufacturer-reference-number")
47   abstract String getManufacturerReferenceNumber();
48
49   @JsonIgnore
50   abstract Set<String> getReferencingFeatureGroups();
51
52   @JsonIgnore
53   abstract String getFirstClassCitizenId();
54
55   @JsonProperty(value = "entitlement-pool-uuid")
56   abstract String getVersionUuId();
57
58   @JsonIgnore
59   abstract String getVersion();
60
61   @JsonIgnore
62   abstract String getVersionForArtifact();
63
64   @JsonIgnore
65   abstract String getVendorLicenseModelId();
66
67   @JsonIgnore
68   abstract String getThresholdUnit();
69
70   @JsonIgnore
71   abstract float getThresholdValue();
72
73   @JsonIgnore
74   abstract ChoiceOrOther<EntitlementMetric> getEntitlementMetric();
75
76   @JsonIgnore
77   abstract ChoiceOrOther<EntitlementTime> getTime();
78
79   @JsonIgnore
80   abstract ChoiceOrOther<AggregationFunction> getAggregationFunction();
81
82   @JsonIgnore
83   abstract String getEntityType();
84
85   @JacksonXmlProperty(isAttribute = false, localName = "value")
86   @JacksonXmlElementWrapper(localName = "operational-scope")
87   abstract String getOperationalScopeForArtifact();
88
89   @JsonIgnore
90   abstract ChoiceOrOther<OperationalScope> getOperationalScope();
91
92
93   @JsonProperty(value = "entitlement-metric")
94   abstract EntitlementMetricForXml getEntitlementMetricForArtifact();
95
96   @JsonProperty(value = "time")
97   abstract EntitlementTimeForXml getTimeForArtifact();
98
99
100   @JsonProperty(value = "aggregation-function")
101   abstract AggregationFunctionForXml getAggregationFunctionForArtifact();
102
103 }