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.onap.sdc.ci.tests.datatypes;
23 import java.util.List;
25 import org.onap.sdc.ci.tests.devObjects.CategoryDefinition;
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() {
147 // TODO Auto-generated constructor stub
150 // public ResourceRespJavaObject(String uniqueId, String resourceName,
151 // String resourceVersion, String creatorUserId,
152 // String creatorFullName, String lastUpdaterUserId,
153 // String lastUpdaterFullName, String description, String icon,
154 // List<String> tags, String isHighestVersion, String creationDate,
155 // String lastUpdateDate, String category, String lifecycleState,
156 // List<String> derivedFrom, String vendorName, String vendorRelease,
157 // String contactId, String abstractt, String highestVersion) {
159 // this.uniqueId = uniqueId;
160 // this.resourceName = resourceName;
161 // this.resourceVersion = resourceVersion;
162 // this.creatorUserId = creatorUserId;
163 // this.creatorFullName = creatorFullName;
164 // this.lastUpdaterUserId = lastUpdaterUserId;
165 // this.lastUpdaterFullName = lastUpdaterFullName;
166 // this.description = description;
169 // this.isHighestVersion = isHighestVersion;
170 // this.creationDate = creationDate;
171 // this.lastUpdateDate = lastUpdateDate;
172 // this.category = category;
173 // this.lifecycleState = lifecycleState;
174 // this.derivedFrom = derivedFrom;
175 // this.vendorName = vendorName;
176 // this.vendorRelease = vendorRelease;
177 // this.contactId = contactId;
178 // this.abstractt = abstractt;
179 // this.highestVersion = highestVersion;
181 public String getUniqueId() {
185 public void setUniqueId(String uniqueId) {
186 this.uniqueId = uniqueId;
189 public String getName() {
193 public void setName(String resourceName) {
194 this.name = resourceName;
197 public String getVersion() {
201 public void setVersion(String resourceVersion) {
202 this.version = resourceVersion;
205 public String getCreatorUserId() {
206 return creatorUserId;
209 public void setCreatorUserId(String creatorUserId) {
210 this.creatorUserId = creatorUserId;
213 public String getCreatorFullName() {
214 return creatorFullName;
217 public void setCreatorFullName(String creatorFullName) {
218 this.creatorFullName = creatorFullName;
221 public String getLastUpdaterUserId() {
222 return lastUpdaterUserId;
225 public void setLastUpdaterUserId(String lastUpdaterUserId) {
226 this.lastUpdaterUserId = lastUpdaterUserId;
229 public String getLastUpdaterFullName() {
230 return lastUpdaterFullName;
233 public void setLastUpdaterFullName(String lastUpdaterFullName) {
234 this.lastUpdaterFullName = lastUpdaterFullName;
237 public String getDescription() {
241 public void setDescription(String description) {
242 this.description = description;
245 public String getIcon() {
249 public void setIcon(String icon) {
253 public List<String> getTags() {
257 public void setTags(List<String> tags) {
261 public String getIsHighestVersion() {
262 return isHighestVersion;
265 public void setIsHighestVersion(String isHighestVersion) {
266 this.isHighestVersion = isHighestVersion;
269 public String getCreationDate() {
273 public void setCreationDate(String creationDate) {
274 this.creationDate = creationDate;
277 public String getLastUpdateDate() {
278 return lastUpdateDate;
281 public void setLastUpdateDate(String lastUpdateDate) {
282 this.lastUpdateDate = lastUpdateDate;
285 // public String getCategory() {
288 // public void setCategory(String category) {
289 // this.category = category;
291 public String getLifecycleState() {
292 return lifecycleState;
295 public void setLifecycleState(String lifecycleState) {
296 this.lifecycleState = lifecycleState;
299 public List<String> getDerivedFrom() {
303 public void setDerivedFrom(List<String> derivedFrom) {
304 this.derivedFrom = derivedFrom;
307 public String getVendorName() {
311 public void setVendorName(String vendorName) {
312 this.vendorName = vendorName;
315 public String getVendorRelease() {
316 return vendorRelease;
319 public void setVendorRelease(String vendorRelease) {
320 this.vendorRelease = vendorRelease;
323 public String getContactId() {
327 public void setContactId(String contactId) {
328 this.contactId = contactId;
331 public String getAbstractt() {
335 public void setAbstractt(String abstractt) {
336 this.abstractt = abstractt;
339 public String getHighestVersion() {
340 return highestVersion;
343 public void setHighestVersion(String highestVersion) {
344 this.highestVersion = highestVersion;
347 public List<CategoryDefinition> getCategories() {
351 public void setCategories(List<CategoryDefinition> categories) {
352 this.categories = categories;
356 public String toString() {
357 return "ResourceRespJavaObject [uniqueId=" + uniqueId + ", resourceName=" + name + ", resourceVersion="
358 + version + ", creatorUserId=" + creatorUserId + ", creatorFullName=" + creatorFullName
359 + ", lastUpdaterUserId=" + lastUpdaterUserId + ", lastUpdaterFullName=" + lastUpdaterFullName
360 + ", description=" + description + ", icon=" + icon + ", tags=" + tags + ", isHighestVersion="
361 + isHighestVersion + ", creationDate=" + creationDate + ", lastUpdateDate=" + lastUpdateDate
362 + ", lifecycleState=" + lifecycleState + ", derivedFrom=" + derivedFrom + ", vendorName=" + vendorName
363 + ", vendorRelease=" + vendorRelease + ", contactId=" + contactId + ", abstractt=" + abstractt
364 + ", highestVersion=" + highestVersion + ", artifacts=" + artifacts + ", interfaces=" + interfaces
365 + ", uuid=" + uuid + ", cost=" + cost + ", licenseType=" + licenseType + ", resourceType="
366 + resourceType + "]";