2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * Modifications Copyright (C) 2021 Nordix Foundation.
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.vendorsoftwareproduct.dao.type;
23 import java.util.ArrayList;
24 import java.util.Collections;
25 import java.util.List;
27 import lombok.NoArgsConstructor;
29 import org.openecomp.sdc.versioning.dao.types.Version;
30 import org.openecomp.sdc.versioning.dao.types.VersionableEntity;
35 public class VspDetails implements VersionableEntity {
37 public static final String ENTITY_TYPE = "Vendor Software Product";
39 private Version version;
41 private String description;
42 private String category;
43 private String subCategory;
45 private String vendorName;
46 private String vendorId;
47 private Version vlmVersion;
48 private String licenseType;
49 private String licenseAgreement;
50 private List<String> featureGroups;
51 private String onboardingMethod;
52 private List<String> modelIdList;
54 public VspDetails(String id, Version version) {
56 this.version = version;
60 public String getEntityType() {
65 public String getFirstClassCitizenId() {
69 public List<String> getModelIdList() {
70 if (modelIdList == null) {
71 return Collections.emptyList();
73 return new ArrayList<>(modelIdList);
77 public String toString() {
78 return String.format("Vsp id = '%s', Version = '%s', Name = '%s', Category = '%s', Description = '%s', Vendor = '%s', Model = '%s'",
79 this.id, this.version, this.name, this.category, this.description, this.vendorName, this.modelIdList);