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.ci.tests.datatypes;
23 import org.openecomp.sdc.be.model.category.CategoryDefinition;
25 import java.util.List;
27 public class ResourceRespJavaObject {
32 String creatorFullName;
33 String lastUpdaterUserId;
34 String lastUpdaterFullName;
38 String isHighestVersion;
40 String lastUpdateDate;
42 String lifecycleState;
43 List<String> derivedFrom;
48 String highestVersion;
49 List<String> artifacts;
50 List<String> interfaces;
55 List<CategoryDefinition> categories;
57 public String getResourceType() {
61 public void setResourceType(String resourceType) {
62 this.resourceType = resourceType;
65 public ResourceRespJavaObject(String uniqueId, String resourceName, String resourceVersion, String creatorUserId,
66 String creatorFullName, String lastUpdaterUserId, String lastUpdaterFullName, String description,
67 String icon, List<String> tags, String isHighestVersion, String creationDate, String lastUpdateDate,
68 String category, String lifecycleState, List<String> derivedFrom, String vendorName, String vendorRelease,
69 String contactId, String abstractt, String highestVersion, List<String> artifacts, List<String> interfaces,
70 String uuid, String cost, String licenseType, String resourceType) {
72 this.uniqueId = uniqueId;
73 this.name = resourceName;
74 this.version = resourceVersion;
75 this.creatorUserId = creatorUserId;
76 this.creatorFullName = creatorFullName;
77 this.lastUpdaterUserId = lastUpdaterUserId;
78 this.lastUpdaterFullName = lastUpdaterFullName;
79 this.description = description;
82 this.isHighestVersion = isHighestVersion;
83 this.creationDate = creationDate;
84 this.lastUpdateDate = lastUpdateDate;
85 // this.category = category;
86 this.lifecycleState = lifecycleState;
87 this.derivedFrom = derivedFrom;
88 this.vendorName = vendorName;
89 this.vendorRelease = vendorRelease;
90 this.contactId = contactId;
91 this.abstractt = abstractt;
92 this.highestVersion = highestVersion;
93 this.artifacts = artifacts;
94 this.interfaces = interfaces;
97 this.licenseType = licenseType;
98 this.resourceType = resourceType;
101 public void setUuid(String uuid) {
105 public String getCost() {
109 public void setCost(String cost) {
113 public String getLicenseType() {
117 public void setLicenseType(String licenseType) {
118 this.licenseType = licenseType;
121 public String getUuid() {
125 public String setUuid() {
129 public List<String> getInterfaces() {
133 public void setInterfaces(List<String> interfaces) {
134 this.interfaces = interfaces;
137 public List<String> getArtifacts() {
141 public void setArtifacts(List<String> artifacts) {
142 this.artifacts = artifacts;
145 public ResourceRespJavaObject() {
149 // public ResourceRespJavaObject(String uniqueId, String resourceName,
150 // String resourceVersion, String creatorUserId,
151 // String creatorFullName, String lastUpdaterUserId,
152 // String lastUpdaterFullName, String description, String icon,
153 // List<String> tags, String isHighestVersion, String creationDate,
154 // String lastUpdateDate, String category, String lifecycleState,
155 // List<String> derivedFrom, String vendorName, String vendorRelease,
156 // String contactId, String abstractt, String highestVersion) {
158 // this.uniqueId = uniqueId;
159 // this.resourceName = resourceName;
160 // this.resourceVersion = resourceVersion;
161 // this.creatorUserId = creatorUserId;
162 // this.creatorFullName = creatorFullName;
163 // this.lastUpdaterUserId = lastUpdaterUserId;
164 // this.lastUpdaterFullName = lastUpdaterFullName;
165 // this.description = description;
168 // this.isHighestVersion = isHighestVersion;
169 // this.creationDate = creationDate;
170 // this.lastUpdateDate = lastUpdateDate;
171 // this.category = category;
172 // this.lifecycleState = lifecycleState;
173 // this.derivedFrom = derivedFrom;
174 // this.vendorName = vendorName;
175 // this.vendorRelease = vendorRelease;
176 // this.contactId = contactId;
177 // this.abstractt = abstractt;
178 // this.highestVersion = highestVersion;
180 public String getUniqueId() {
184 public void setUniqueId(String uniqueId) {
185 this.uniqueId = uniqueId;
188 public String getName() {
192 public void setName(String resourceName) {
193 this.name = resourceName;
196 public String getVersion() {
200 public void setVersion(String resourceVersion) {
201 this.version = resourceVersion;
204 public String getCreatorUserId() {
205 return creatorUserId;
208 public void setCreatorUserId(String creatorUserId) {
209 this.creatorUserId = creatorUserId;
212 public String getCreatorFullName() {
213 return creatorFullName;
216 public void setCreatorFullName(String creatorFullName) {
217 this.creatorFullName = creatorFullName;
220 public String getLastUpdaterUserId() {
221 return lastUpdaterUserId;
224 public void setLastUpdaterUserId(String lastUpdaterUserId) {
225 this.lastUpdaterUserId = lastUpdaterUserId;
228 public String getLastUpdaterFullName() {
229 return lastUpdaterFullName;
232 public void setLastUpdaterFullName(String lastUpdaterFullName) {
233 this.lastUpdaterFullName = lastUpdaterFullName;
236 public String getDescription() {
240 public void setDescription(String description) {
241 this.description = description;
244 public String getIcon() {
248 public void setIcon(String icon) {
252 public List<String> getTags() {
256 public void setTags(List<String> tags) {
260 public String getIsHighestVersion() {
261 return isHighestVersion;
264 public void setIsHighestVersion(String isHighestVersion) {
265 this.isHighestVersion = isHighestVersion;
268 public String getCreationDate() {
272 public void setCreationDate(String creationDate) {
273 this.creationDate = creationDate;
276 public String getLastUpdateDate() {
277 return lastUpdateDate;
280 public void setLastUpdateDate(String lastUpdateDate) {
281 this.lastUpdateDate = lastUpdateDate;
284 // public String getCategory() {
287 // public void setCategory(String category) {
288 // this.category = category;
290 public String getLifecycleState() {
291 return lifecycleState;
294 public void setLifecycleState(String lifecycleState) {
295 this.lifecycleState = lifecycleState;
298 public List<String> getDerivedFrom() {
302 public void setDerivedFrom(List<String> derivedFrom) {
303 this.derivedFrom = derivedFrom;
306 public String getVendorName() {
310 public void setVendorName(String vendorName) {
311 this.vendorName = vendorName;
314 public String getVendorRelease() {
315 return vendorRelease;
318 public void setVendorRelease(String vendorRelease) {
319 this.vendorRelease = vendorRelease;
322 public String getContactId() {
326 public void setContactId(String contactId) {
327 this.contactId = contactId;
330 public String getAbstractt() {
334 public void setAbstractt(String abstractt) {
335 this.abstractt = abstractt;
338 public String getHighestVersion() {
339 return highestVersion;
342 public void setHighestVersion(String highestVersion) {
343 this.highestVersion = highestVersion;
346 public List<CategoryDefinition> getCategories() {
350 public void setCategories(List<CategoryDefinition> categories) {
351 this.categories = categories;
355 public String toString() {
356 return "ResourceRespJavaObject [uniqueId=" + uniqueId + ", resourceName=" + name + ", resourceVersion="
357 + version + ", creatorUserId=" + creatorUserId + ", creatorFullName=" + creatorFullName
358 + ", lastUpdaterUserId=" + lastUpdaterUserId + ", lastUpdaterFullName=" + lastUpdaterFullName
359 + ", description=" + description + ", icon=" + icon + ", tags=" + tags + ", isHighestVersion="
360 + isHighestVersion + ", creationDate=" + creationDate + ", lastUpdateDate=" + lastUpdateDate
361 + ", lifecycleState=" + lifecycleState + ", derivedFrom=" + derivedFrom + ", vendorName=" + vendorName
362 + ", vendorRelease=" + vendorRelease + ", contactId=" + contactId + ", abstractt=" + abstractt
363 + ", highestVersion=" + highestVersion + ", artifacts=" + artifacts + ", interfaces=" + interfaces
364 + ", uuid=" + uuid + ", cost=" + cost + ", licenseType=" + licenseType + ", resourceType="
365 + resourceType + "]";