9f82b739787805e0153e1dc85ae5e5216b6180de
[sdc.git] /
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.vendorsoftwareproduct.dao.type;
22
23 import org.openecomp.sdc.versioning.dao.types.Version;
24 import org.openecomp.sdc.versioning.dao.types.VersionableEntity;
25
26 import java.util.List;
27
28
29 public class VspDetails implements VersionableEntity {
30   public static final String ENTITY_TYPE = "Vendor Software Product";
31
32   private String id;
33
34   private Version version;
35
36   private String name;
37   private String description;
38
39   private String category;
40
41   private String subCategory;
42
43   private String icon;
44
45   private String vendorName;
46
47   private String vendorId;
48
49   private Version vlmVersion;
50
51   private String licenseAgreement;
52
53   private List<String> featureGroups;
54
55   private String onboardingMethod;
56
57   public VspDetails() {
58   }
59
60   public VspDetails(String id, Version version) {
61     this.id = id;
62     this.version = version;
63   }
64
65   @Override
66   public String getEntityType() {
67     return ENTITY_TYPE;
68   }
69
70   @Override
71   public String getFirstClassCitizenId() {
72     return getId();
73   }
74
75   public String getId() {
76     return id;
77   }
78
79   public void setId(String id) {
80     this.id = id;
81   }
82
83   @Override
84   public Version getVersion() {
85     return version;
86   }
87
88   @Override
89   public void setVersion(Version version) {
90     this.version = version;
91   }
92
93   public String getName() {
94     return name;
95   }
96
97   public void setName(String name) {
98     this.name = name;
99   }
100
101   public String getDescription() {
102     return description;
103   }
104
105   public void setDescription(String description) {
106     this.description = description;
107   }
108
109   public String getCategory() {
110     return category;
111   }
112
113   public void setCategory(String category) {
114     this.category = category;
115   }
116
117   public String getSubCategory() {
118     return subCategory;
119   }
120
121   public void setSubCategory(String subCategory) {
122     this.subCategory = subCategory;
123   }
124
125   public String getIcon() {
126     return icon;
127   }
128
129   public void setIcon(String icon) {
130     this.icon = icon;
131   }
132
133   public String getVendorName() {
134     return vendorName;
135   }
136
137   public void setVendorName(String vendorName) {
138     this.vendorName = vendorName;
139   }
140
141   public String getVendorId() {
142     return vendorId;
143   }
144
145   public void setVendorId(String vendorId) {
146     this.vendorId = vendorId;
147   }
148
149   public Version getVlmVersion() {
150     return vlmVersion;
151   }
152
153   public void setVlmVersion(Version vlmVersion) {
154     this.vlmVersion = vlmVersion;
155   }
156
157   public String getLicenseAgreement() {
158     return licenseAgreement;
159   }
160
161   public void setLicenseAgreement(String licenseAgreement) {
162     this.licenseAgreement = licenseAgreement;
163   }
164
165   public List<String> getFeatureGroups() {
166     return featureGroups;
167   }
168
169   public void setFeatureGroups(List<String> featureGroups) {
170     this.featureGroups = featureGroups;
171   }
172
173   public String getOnboardingMethod() {
174     return onboardingMethod;
175   }
176
177   public void setOnboardingMethod(String onboardingMethod) {
178     this.onboardingMethod = onboardingMethod;
179   }
180
181   @Override
182   public String toString() {
183     return String.format(
184         "Vsp id = '%s', Version = %s', Name = %s', Category = %s', Description = %s', Vendor = %s'",
185         this.id, this.version, this.name, this.category, this.description, this.vendorName);
186   }
187 }