Fix for radio buttons
[sdc.git] / asdc-tests / src / main / java / org / openecomp / sdc / ci / tests / datatypes / ArtifactReqDetails.java
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.ci.tests.datatypes;
22
23 import java.util.List;
24
25 import org.openecomp.sdc.be.model.HeatParameterDefinition;
26
27 public class ArtifactReqDetails {
28
29         public ArtifactReqDetails() {
30
31         }
32
33         public ArtifactReqDetails(String artifactName, String artifactType, String artifactDescription, String payloadData,
34                         String artifactLable) {
35                 super();
36                 this.artifactName = artifactName;
37                 this.artifactType = artifactType;
38                 this.description = artifactDescription;
39                 this.payloadData = payloadData;
40                 this.artifactLabel = artifactLable;
41         }
42
43         public ArtifactReqDetails(String artifactLable, ArtifactReqDetails a) {
44                 super();
45                 this.artifactName = a.getArtifactName();
46                 this.artifactType = a.getArtifactType();
47                 this.description = a.getArtifactType();
48                 this.payloadData = a.getPayload();
49                 this.artifactLabel = artifactLable;
50         }
51
52         private String uniqueId;
53         private String artifactName;
54         private String artifactType;
55         private String description;
56         private String payloadData;
57         private String artifactLabel;
58         private String apiUrl;
59         private String artifactGroupType;
60         private Integer timeout;
61         private String userIdLastUpdater;
62         private String creatorFullName;
63         private String updaterFullName;
64         private String artifactChecksum;
65         private String artifactDisplayName;
66         private List<HeatParameterDefinition> heatParameters;
67
68         private boolean mandatory;
69         private boolean serviceApi;
70
71         public boolean isServiceApi() {
72                 return serviceApi;
73         }
74
75         public void setServiceApi(boolean serviceApi) {
76                 this.serviceApi = serviceApi;
77         }
78
79         public String getArtifactLabel() {
80                 return artifactLabel;
81         }
82
83         public void setArtifactLabel(String artifactLabel) {
84                 this.artifactLabel = artifactLabel;
85         }
86
87         public String getArtifactName() {
88                 return artifactName;
89         }
90
91         public void setArtifactName(String artifactName) {
92                 this.artifactName = artifactName;
93         }
94
95         public String getArtifactType() {
96                 return artifactType;
97         }
98
99         public void setArtifactType(String artifactType) {
100                 this.artifactType = artifactType;
101         }
102
103         public String getDescription() {
104                 return description;
105         }
106
107         public void setDescription(String description) {
108                 this.description = description;
109         }
110
111         public String getPayload() {
112                 return payloadData;
113         }
114
115         public void setPayload(String payload) {
116                 this.payloadData = payload;
117         }
118
119         public void setPayloadData(String payloadData) {
120                 this.payloadData = payloadData;
121         }
122
123         public String getArtifactGroupType() {
124                 return artifactGroupType;
125         }
126
127         public void setArtifactGroupType(String artifactGroupType) {
128                 this.artifactGroupType = artifactGroupType;
129         }
130
131         public Integer getTimeout() {
132                 return timeout;
133         }
134
135         public void setTimeout(Integer timeout) {
136                 this.timeout = timeout;
137         }
138
139         public boolean isMandatory() {
140                 return mandatory;
141         }
142
143         public void setMandatory(boolean mandatory) {
144                 this.mandatory = mandatory;
145         }
146
147         public String getUrl() {
148                 return apiUrl;
149         }
150
151         public void setUrl(String url) {
152                 this.apiUrl = url;
153         }
154
155         @Override
156         public String toString() {
157                 if (!apiUrl.isEmpty()) {
158                         return "ArtifactReqDetails [artifactName=" + artifactName + ", artifactType=" + artifactType
159                                         + ", description=" + description + ", payloadData=" + payloadData + ", artifactLabel="
160                                         + artifactLabel + ", mandatory=" + mandatory + ", url=" + apiUrl + "]";
161                 }
162
163                 return "ArtifactReqDetails [artifactName=" + artifactName + ", artifactType=" + artifactType + ", description="
164                                 + description + ", payloadData=" + payloadData + ", artifactLabel=" + artifactLabel
165                                 + ", artifactUniqueId=" + uniqueId + ", mandatory=" + mandatory + ", serviceApi=" + serviceApi + "]";
166
167         }
168
169         public String getArtifactDisplayName() {
170
171                 return artifactDisplayName;
172         }
173
174         public void setArtifactDisplayName(String artifactDisplayName) {
175                 this.artifactDisplayName = artifactDisplayName;
176         }
177
178         public String getUserIdLastUpdater() {
179                 return userIdLastUpdater;
180         }
181
182         public void setUserIdLastUpdater(String userIdLastUpdater) {
183                 this.userIdLastUpdater = userIdLastUpdater;
184         }
185
186         public String getCreatorFullName() {
187                 return creatorFullName;
188         }
189
190         public void setCreatorFullName(String creatorFullName) {
191                 this.creatorFullName = creatorFullName;
192         }
193
194         public String getUpdaterFullName() {
195                 return updaterFullName;
196         }
197
198         public void setUpdaterFullName(String updaterFullName) {
199                 this.updaterFullName = updaterFullName;
200         }
201
202         public String getArtifactChecksum() {
203                 return artifactChecksum;
204         }
205
206         public void setArtifactChecksum(String artifactChecksum) {
207                 this.artifactChecksum = artifactChecksum;
208         }
209
210         public String getUniqueId() {
211                 return uniqueId;
212         }
213
214         public void setUniqueId(String artifactUniqueId) {
215                 this.uniqueId = artifactUniqueId;
216         }
217
218         public List<HeatParameterDefinition> getHeatParameters() {
219                 return heatParameters;
220         }
221
222         public void setHeatParameters(List<HeatParameterDefinition> heatParameters) {
223                 this.heatParameters = heatParameters;
224         }
225
226 }