2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.vendorsoftwareproduct.dao.type;
23 import org.openecomp.sdc.versioning.dao.types.Version;
24 import org.openecomp.sdc.versioning.dao.types.VersionableEntity;
26 import java.util.List;
29 public class VspDetails implements VersionableEntity {
30 public static final String ENTITY_TYPE = "Vendor Software Product";
34 private Version version;
37 private String description;
39 private String category;
41 private String subCategory;
45 private String vendorName;
47 private String vendorId;
49 private Version vlmVersion;
51 private String licenseAgreement;
53 private List<String> featureGroups;
55 private Long writetimeMicroSeconds;
57 private String onboardingMethod;
62 public VspDetails(String id, Version version) {
64 this.version = version;
68 public String getEntityType() {
73 public String getFirstClassCitizenId() {
77 public String getId() {
81 public void setId(String id) {
86 public Version getVersion() {
91 public void setVersion(Version version) {
92 this.version = version;
95 public String getName() {
99 public void setName(String name) {
103 public String getDescription() {
107 public void setDescription(String description) {
108 this.description = description;
111 public String getCategory() {
115 public void setCategory(String category) {
116 this.category = category;
119 public String getSubCategory() {
123 public void setSubCategory(String subCategory) {
124 this.subCategory = subCategory;
127 public String getIcon() {
131 public void setIcon(String icon) {
135 public String getVendorName() {
139 public void setVendorName(String vendorName) {
140 this.vendorName = vendorName;
143 public String getVendorId() {
147 public void setVendorId(String vendorId) {
148 this.vendorId = vendorId;
151 public Version getVlmVersion() {
155 public void setVlmVersion(Version vlmVersion) {
156 this.vlmVersion = vlmVersion;
159 public String getLicenseAgreement() {
160 return licenseAgreement;
163 public void setLicenseAgreement(String licenseAgreement) {
164 this.licenseAgreement = licenseAgreement;
167 public List<String> getFeatureGroups() {
168 return featureGroups;
171 public void setFeatureGroups(List<String> featureGroups) {
172 this.featureGroups = featureGroups;
175 public Long getWritetimeMicroSeconds() {
176 return this.writetimeMicroSeconds;
179 public void setWritetimeMicroSeconds(Long writetimeMicroSeconds) {
180 this.writetimeMicroSeconds = writetimeMicroSeconds;
183 /*public boolean isOldVersion() {
184 return this.oldVersion;
187 public String getOnboardingMethod() {
188 return onboardingMethod;
191 public void setOnboardingMethod(String onboardingMethod) {
192 this.onboardingMethod = onboardingMethod;
197 public String toString() {
198 return String.format(
199 "Vsp id = '%s', Version = %s', Name = %s', Category = %s', Description = %s', Vendor = %s'",
200 this.id, this.version, this.name, this.category, this.description, this.vendorName);