Sync Integ to Master
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / elements / ArtifactDataDefinition.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.be.datatypes.elements;
22
23 import org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields;
24 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
25 import org.openecomp.sdc.common.api.ArtifactGroupTypeEnum;
26
27 import java.io.Serializable;
28 import java.util.ArrayList;
29 import java.util.List;
30 import java.util.Map;
31
32 //import com.google.gson.reflect.TypeToken;
33
34 public class ArtifactDataDefinition extends ToscaDataDefinition implements Serializable {
35         /**
36          * 
37          */
38         private static final long serialVersionUID = -1691343090754083941L;
39
40         
41
42         public ArtifactDataDefinition() {
43                 super();
44                 setArtifactVersion("0");
45         }
46         
47         public ArtifactDataDefinition(Map<String, Object> art) {
48                 super(art);
49                 setArtifactVersion("0");
50         }
51         
52         
53
54         public ArtifactDataDefinition(ArtifactDataDefinition a ) {
55                 super();
56                 this.setUniqueId(a.getUniqueId());
57                 this.setArtifactType(a.getArtifactType());
58                 this.setArtifactRef( a.getArtifactRef());
59                 this.setArtifactName( a.getArtifactName());
60                 this.setArtifactRepository( a.getArtifactRepository());
61                 this.setArtifactChecksum( a.getArtifactChecksum());
62                 this.setUserIdCreator(  a.getUserIdCreator());
63                 this.setUserIdLastUpdater(  a.getUserIdLastUpdater());
64                 this.setCreatorFullName(  a.getCreatorFullName());
65                 this.setUpdaterFullName( a.getUpdaterFullName());
66                 this.setCreationDate (  a.getCreationDate());
67                 this.setLastUpdateDate ( a.getLastUpdateDate());
68                 this.setDescription (  a.getDescription());
69                 this.setEsId (  a.getEsId());
70                 this.setArtifactLabel( a.getArtifactLabel());
71                 this.setArtifactCreator( a.getArtifactCreator());
72                 this.setMandatory ( a.getMandatory());
73                 this.setArtifactDisplayName( a.getArtifactDisplayName());
74                 this.setApiUrl(  a.getApiUrl());
75                 this.setServiceApi (  a.getServiceApi());
76                 this.setArtifactGroupType (  a.getArtifactGroupType());
77                 this.setTimeout ( a.getTimeout());
78                 this.setArtifactVersion(  a.getArtifactVersion());
79                 this.setArtifactUUID (  a.getArtifactUUID());
80                 this.setPayloadUpdateDate (  a.getPayloadUpdateDate());
81                 this.setHeatParamsUpdateDate (  a.getHeatParamsUpdateDate());
82                 this.setGenerated(a.getGenerated());
83                 this.setDuplicated(a.getDuplicated());
84                 if (a.getRequiredArtifacts() != null)
85                         this.setRequiredArtifacts(new ArrayList<>(a.getRequiredArtifacts()));
86                 if (a.getHeatParameters() != null)
87                         this.setHeatParameters(new ArrayList<>(a.getHeatParameters()));
88                 this.setGeneratedFromId( a.getGeneratedFromId());
89                 this.setIsFromCsar(a.getIsFromCsar());
90
91
92         }
93
94         public String getArtifactName() {
95                 return (String) getToscaPresentationValue(JsonPresentationFields.NAME);
96                 
97         }
98
99         public String getArtifactType() {
100                 return (String) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_TYPE);
101         }
102
103         public void setArtifactType(String artifactType) {      
104                 setToscaPresentationValue(JsonPresentationFields.ARTIFACT_TYPE, artifactType);
105                 
106         }
107
108         public String getArtifactRef() {                
109                 return (String) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_REF); 
110                 
111         }
112
113         public void setArtifactRef(String artifactRef) {
114                 setToscaPresentationValue(JsonPresentationFields.ARTIFACT_REF, artifactRef);
115         }
116
117         public String getArtifactRepository() {         
118                 return (String) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_REPOSITORY);  
119                 
120         }
121
122         public void setArtifactRepository(String artifactRepository) {
123                 setToscaPresentationValue(JsonPresentationFields.ARTIFACT_REPOSITORY, artifactRepository);
124         }
125
126         public void setArtifactName(String artifactName) {
127                 setToscaPresentationValue(JsonPresentationFields.NAME, artifactName);
128                 
129         }
130
131         public String getArtifactChecksum() {           
132                 return (String) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_CHECKSUM);            
133         }
134
135         public void setArtifactChecksum(String artifactChecksum) {
136                 setToscaPresentationValue(JsonPresentationFields.ARTIFACT_CHECKSUM, artifactChecksum);          
137         }
138
139         public String getUserIdCreator() {
140         
141                 return (String) getToscaPresentationValue(JsonPresentationFields.USER_ID_CREATOR);
142         }
143
144         public void setUserIdCreator(String userIdCreator) {
145                 setToscaPresentationValue(JsonPresentationFields.USER_ID_CREATOR, userIdCreator);       
146         }
147
148         public String getUserIdLastUpdater() {
149                 return  (String) getToscaPresentationValue(JsonPresentationFields.USER_ID_LAST_UPDATER);
150         }
151
152         public void setUserIdLastUpdater(String userIdLastUpdater) {
153                 setToscaPresentationValue(JsonPresentationFields.USER_ID_LAST_UPDATER, userIdLastUpdater);
154         }
155
156         public String getCreatorFullName() {
157                 return (String) getToscaPresentationValue(JsonPresentationFields.CREATOR_FULL_NAME);
158         }
159
160         public void setCreatorFullName(String creatorFullName) {
161                 setToscaPresentationValue(JsonPresentationFields.CREATOR_FULL_NAME, creatorFullName);
162         }
163
164         public String getUpdaterFullName() {    
165                 return (String) getToscaPresentationValue(JsonPresentationFields.UPDATER_FULL_NAME);
166         }
167
168         public void setUpdaterFullName(String updaterFullName) {
169                 setToscaPresentationValue(JsonPresentationFields.UPDATER_FULL_NAME, updaterFullName);
170         }
171
172         public Long getCreationDate() {
173                 return (Long) getToscaPresentationValue(JsonPresentationFields.CREATION_DATE);
174         }
175
176         public void setCreationDate(Long creationDate) {
177                 setToscaPresentationValue(JsonPresentationFields.CREATION_DATE, creationDate);
178         }
179
180         public Long getLastUpdateDate() {               
181                 return (Long) getToscaPresentationValue(JsonPresentationFields.LAST_UPDATE_DATE);       
182         }
183
184         public void setLastUpdateDate(Long lastUpdateDate) {
185                 setToscaPresentationValue(JsonPresentationFields.LAST_UPDATE_DATE, lastUpdateDate);
186         }
187
188         public String getUniqueId() {
189                 return (String) getToscaPresentationValue(JsonPresentationFields.UNIQUE_ID);
190         }
191
192         public void setUniqueId(String uniqueId) {
193                 setToscaPresentationValue(JsonPresentationFields.UNIQUE_ID, uniqueId);
194         }
195
196         public String getDescription() {
197                 return (String) getToscaPresentationValue(JsonPresentationFields.DESCRIPTION);
198         }
199
200         public void setDescription(String description) {
201                 setToscaPresentationValue(JsonPresentationFields.DESCRIPTION, description);
202         }
203
204         public String getArtifactLabel() {
205                 return (String) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_LABEL);
206         }
207
208         public void setArtifactLabel(String artifactLabel) {
209                 setToscaPresentationValue(JsonPresentationFields.ARTIFACT_LABEL, artifactLabel);
210         }
211
212         public String getEsId() {
213                 return (String) getToscaPresentationValue(JsonPresentationFields.ES_ID);
214         }
215
216         public void setEsId(String esId) {
217                 setToscaPresentationValue(JsonPresentationFields.ES_ID, esId);
218         }
219
220         public String getArtifactCreator() {
221                 return (String) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_CREATOR);
222         }
223
224         public void setArtifactCreator(String artifactCreator) {
225                 setToscaPresentationValue(JsonPresentationFields.ARTIFACT_CREATOR, artifactCreator);
226         }
227
228         public Boolean getMandatory() {         
229                  Boolean isMandatory =  (Boolean) getToscaPresentationValue(JsonPresentationFields.IS_ABSTRACT);
230                  return isMandatory == null? Boolean.FALSE: isMandatory;
231         }
232
233         public void setMandatory(Boolean mandatory) {
234                 setToscaPresentationValue(JsonPresentationFields.IS_ABSTRACT, mandatory);
235         }
236
237         public String getArtifactDisplayName() {                
238                 return (String) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_DISPLAY_NAME);                
239         }
240
241         public void setArtifactDisplayName(String artifactDisplayName) {
242                 setToscaPresentationValue(JsonPresentationFields.ARTIFACT_DISPLAY_NAME, artifactDisplayName);
243         }
244
245         public String getApiUrl() {             
246                 return (String) getToscaPresentationValue(JsonPresentationFields.API_URL);              
247         }
248
249         public void setApiUrl(String apiUrl) {
250                 setToscaPresentationValue(JsonPresentationFields.API_URL, apiUrl);
251         }
252
253         public Boolean getServiceApi() {
254                 Boolean serviceApi = (Boolean) getToscaPresentationValue(JsonPresentationFields.SERVICE_API);   
255                 return serviceApi == null? Boolean.FALSE: serviceApi;
256         }
257
258         public void setServiceApi(Boolean serviceApi) {
259                 setToscaPresentationValue(JsonPresentationFields.SERVICE_API, serviceApi);
260         }
261
262         public ArtifactGroupTypeEnum getArtifactGroupType() {
263                 ArtifactGroupTypeEnum artifactGroupType = null;
264                 String groupType = (String) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_GROUP_TYPE);      
265                 if (groupType != null && !groupType.isEmpty()) {
266
267                         artifactGroupType = ArtifactGroupTypeEnum.findType(groupType);
268                 }
269                 return artifactGroupType;
270         }
271
272         public void setArtifactGroupType(ArtifactGroupTypeEnum artifactGroupType) {
273                 if(artifactGroupType != null)
274                         setToscaPresentationValue(JsonPresentationFields.ARTIFACT_GROUP_TYPE, artifactGroupType.getType());
275         }
276
277         public Integer getTimeout() {           
278                 return (Integer) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_TIMEOUT);
279         }
280
281         public void setTimeout(Integer timeout) {
282                 setToscaPresentationValue(JsonPresentationFields.ARTIFACT_TIMEOUT, timeout);
283         }
284
285         public String getArtifactVersion() {            
286                 return  (String) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_VERSION);
287         }
288
289         public void setArtifactVersion(String artifactVersion) {
290                 setToscaPresentationValue(JsonPresentationFields.ARTIFACT_VERSION, artifactVersion);
291         }
292
293         public String getArtifactUUID() {
294                 return  (String) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_UUID);
295         }
296
297         public void setArtifactUUID(String artifactUUID) {
298                 setToscaPresentationValue(JsonPresentationFields.ARTIFACT_UUID, artifactUUID);
299         }
300
301         public Long getPayloadUpdateDate() {            
302                 return (Long) getToscaPresentationValue(JsonPresentationFields.PAYLOAD_UPDATE_DATE);
303         }
304
305         public void setPayloadUpdateDate(Long payloadUpdateDate) {
306                 setToscaPresentationValue(JsonPresentationFields.PAYLOAD_UPDATE_DATE, payloadUpdateDate);
307         }
308
309         public Long getHeatParamsUpdateDate() {
310                 return (Long) getToscaPresentationValue(JsonPresentationFields.HEAT_PARAMS_UPDATE_DATE);
311         }
312
313         public void setHeatParamsUpdateDate(Long heatParamsUpdateDate) {
314                 setToscaPresentationValue(JsonPresentationFields.HEAT_PARAMS_UPDATE_DATE, heatParamsUpdateDate);
315         }
316
317         public List<String> getRequiredArtifacts() {
318                 return (List<String>) getToscaPresentationValue(JsonPresentationFields.REQUIRED_ARTIFACTS);
319         }
320
321         public void setRequiredArtifacts(List<String> requiredArtifacts) {
322                 setToscaPresentationValue(JsonPresentationFields.REQUIRED_ARTIFACTS, requiredArtifacts);
323         }
324         
325         public Boolean getGenerated() { 
326                 Boolean generated = (Boolean) getToscaPresentationValue(JsonPresentationFields.GENERATED);
327                 return  generated == null ? Boolean.FALSE: generated;
328         }
329
330         public void setGenerated(Boolean generated) {
331                 setToscaPresentationValue(JsonPresentationFields.GENERATED, generated);
332         }
333         
334         public Boolean getDuplicated() {        
335                 Boolean duplicated = (Boolean) getToscaPresentationValue(JsonPresentationFields.DUPLICATED);
336                 return  duplicated == null ? Boolean.FALSE: duplicated;
337         }
338
339         public void setDuplicated(Boolean duplicated) {
340                 setToscaPresentationValue(JsonPresentationFields.DUPLICATED, duplicated);
341         }
342         
343         public List<HeatParameterDataDefinition> getHeatParameters() {
344                  return (List<HeatParameterDataDefinition>) getToscaPresentationValue(JsonPresentationFields.HEAT_PARAMETERS);
345         }
346
347         public void setHeatParameters(List<HeatParameterDataDefinition> properties) {
348                 setToscaPresentationValue(JsonPresentationFields.HEAT_PARAMETERS, properties);
349         }
350
351         public String getGeneratedFromId() {
352                 return  (String) getToscaPresentationValue(JsonPresentationFields.GENERATED_FROM_ID);
353         }
354         public boolean getIsFromCsar(){
355                 Boolean isFromCsar = (Boolean) getToscaPresentationValue(JsonPresentationFields.IS_FROM_CSAR);
356                 return  isFromCsar == null ? Boolean.FALSE: isFromCsar;
357         }
358         public void setIsFromCsar(Boolean isFromCsar) {
359                 setToscaPresentationValue(JsonPresentationFields.IS_FROM_CSAR, isFromCsar);
360         }
361
362         public void setGeneratedFromId(String generatedFromId) {
363                 setToscaPresentationValue(JsonPresentationFields.GENERATED_FROM_ID, generatedFromId);
364         }
365         
366
367         @Override
368         public String toString() {
369                 return "ArtifactDataDefinition [uniqueId=" + getUniqueId() + ", artifactType=" + getArtifactType() + ", artifactRef=" + getArtifactRef() + ", artifactName=" + getArtifactName() + ", artifactRepository=" + getArtifactRepository() + ", artifactChecksum="
370                                 +  getArtifactChecksum() + ", userIdCreator=" + getUserIdCreator() + ", userIdLastUpdater=" + getUserIdLastUpdater() + ", creatorFullName=" + getCreatorFullName() + ", updaterFullName=" + getUpdaterFullName() + ", creationDate=" + getCreationDate()
371                                 + ", lastUpdateDate=" +  getLastUpdateDate() + ", esId=" +  getEsId() + ", artifactLabel=" + getArtifactLabel() + ", artifactCreator=" + getArtifactCreator() + ", description=" + getDescription() + ", mandatory=" + getMandatory() + ", artifactDisplayName="
372                                 +  getArtifactDisplayName() + ", apiUrl=" +  getApiUrl() + ", serviceApi=" +  getServiceApi() + ", artifactGroupType=" + getArtifactGroupType() + ", timeout=" + getTimeout() + ", artifactVersion=" + getArtifactVersion() + ", artifactUUID=" + getArtifactUUID()
373                                 + ", payloadUpdateDate=" +  getPayloadUpdateDate() + ", heatParamsUpdateDate=" +  getHeatParamsUpdateDate() + ", requiredArtifacts=" + getRequiredArtifacts() + "]";
374         }
375
376         @Override
377         public int hashCode() {
378                 final int prime = 31;
379                 int result = 1;
380                 
381                 String apiUrl =  getApiUrl();
382                 String artifactChecksum =  getArtifactChecksum();
383                 String artifactCreator =  getArtifactCreator();
384                 String artifactDisplayName =  getArtifactDisplayName();
385                 ArtifactGroupTypeEnum artifactGroupType =  getArtifactGroupType();
386                 String artifactLabel =  getArtifactLabel();             
387                 String artifactName =  getArtifactName();
388                 String artifactRef =  getArtifactRef();
389                 String artifactRepository =  getArtifactRepository();
390                 String artifactType =  getArtifactType();
391                 
392                 String artifactUUID =  getArtifactUUID();
393                 String artifactVersion =  getArtifactVersion();
394                 String userIdCreator =  getUserIdCreator();
395                 String userIdLastUpdater =  getUserIdLastUpdater();
396                 Long creationDate =  getCreationDate();
397                 
398                 String creatorFullName =  getCreatorFullName();
399                 String description =  getDescription();
400                 String esId =  getEsId();
401                 Long heatParamsUpdateDate =  getHeatParamsUpdateDate();
402                 Long lastUpdateDate =  getLastUpdateDate();
403                 Boolean mandatory =  getMandatory();
404                 
405                 Long payloadUpdateDate =  getPayloadUpdateDate();
406                 List<String> requiredArtifacts =  getRequiredArtifacts();
407                 Boolean serviceApi =  getServiceApi();
408                 Integer timeout =  getTimeout();
409                 String uniqueId =  getUniqueId();
410                 String updaterFullName =  getUpdaterFullName();
411                                 
412                 result = prime * result + ((apiUrl == null) ? 0 : apiUrl.hashCode());
413                 result = prime * result + ((artifactChecksum == null) ? 0 : artifactChecksum.hashCode());
414                 result = prime * result + ((artifactCreator == null) ? 0 : artifactCreator.hashCode());
415                 result = prime * result + ((artifactDisplayName == null) ? 0 : artifactDisplayName.hashCode());
416                 result = prime * result + ((artifactGroupType == null) ? 0 : artifactGroupType.hashCode());
417                 result = prime * result + ((artifactLabel == null) ? 0 : artifactLabel.hashCode());
418                 result = prime * result + ((artifactName == null) ? 0 : artifactName.hashCode());
419                 result = prime * result + ((artifactRef == null) ? 0 : artifactRef.hashCode());
420                 result = prime * result + ((artifactRepository == null) ? 0 : artifactRepository.hashCode());
421                 result = prime * result + ((artifactType == null) ? 0 : artifactType.hashCode());
422                 result = prime * result + ((artifactUUID == null) ? 0 : artifactUUID.hashCode());
423                 result = prime * result + ((artifactVersion == null) ? 0 : artifactVersion.hashCode());
424                 result = prime * result + ((userIdCreator == null) ? 0 : userIdCreator.hashCode());
425                 result = prime * result + ((userIdLastUpdater == null) ? 0 : userIdLastUpdater.hashCode());
426                 result = prime * result + ((creationDate == null) ? 0 : creationDate.hashCode());
427                 result = prime * result + ((creatorFullName == null) ? 0 : creatorFullName.hashCode());
428                 result = prime * result + ((description == null) ? 0 : description.hashCode());
429                 result = prime * result + ((esId == null) ? 0 : esId.hashCode());
430                 result = prime * result + ((heatParamsUpdateDate == null) ? 0 : heatParamsUpdateDate.hashCode());
431                 result = prime * result + ((lastUpdateDate == null) ? 0 : lastUpdateDate.hashCode());
432                 result = prime * result + ((mandatory == null) ? 0 : mandatory.hashCode());
433                 result = prime * result + ((payloadUpdateDate == null) ? 0 : payloadUpdateDate.hashCode());
434                 result = prime * result + ((requiredArtifacts == null) ? 0 : requiredArtifacts.hashCode());
435                 result = prime * result + ((serviceApi == null) ? 0 : serviceApi.hashCode());
436                 result = prime * result + ((timeout == null) ? 0 : timeout.hashCode());
437                 result = prime * result + ((uniqueId == null) ? 0 : uniqueId.hashCode());
438                 result = prime * result + ((updaterFullName == null) ? 0 : updaterFullName.hashCode());
439                 return result;
440         }
441
442         @Override
443         public boolean equals(Object obj) {
444                 if (this == obj)
445                         return true;
446                 if (obj == null)
447                         return false;
448                 if (getClass() != obj.getClass())
449                         return false;
450                 ArtifactDataDefinition other = (ArtifactDataDefinition) obj;
451                 if (getApiUrl() == null) {
452                         if (other.getApiUrl() != null)
453                                 return false;
454                 } else if (!getApiUrl().equals(other.getApiUrl()))
455                         return false;
456                 if (getArtifactChecksum() == null) {
457                         if (other.getArtifactChecksum() != null)
458                                 return false;
459                 } else if (!getArtifactChecksum().equals(other.getArtifactChecksum()))
460                         return false;
461                 if (getArtifactCreator() == null) {
462                         if (other.getArtifactCreator() != null)
463                                 return false;
464                 } else if (!getArtifactCreator().equals(other.getArtifactCreator()))
465                         return false;
466                 if (getArtifactDisplayName() == null) {
467                         if (other.getArtifactDisplayName() != null)
468                                 return false;
469                 } else if (!getArtifactDisplayName().equals(other.getArtifactDisplayName()))
470                         return false;
471                 if (getArtifactGroupType() != other.getArtifactGroupType())
472                         return false;
473                 if (getArtifactLabel() == null) {
474                         if (other.getArtifactLabel() != null)
475                                 return false;
476                 } else if (!getArtifactLabel().equals(other.getArtifactLabel()))
477                         return false;
478                 if (getArtifactName() == null) {
479                         if (other.getArtifactName() != null)
480                                 return false;
481                 } else if (!getArtifactName().equals(other.getArtifactName()))
482                         return false;
483                 if (getArtifactRef() == null) {
484                         if (other.getArtifactRef() != null)
485                                 return false;
486                 } else if (!getArtifactRef().equals(other.getArtifactRef()))
487                         return false;
488                 if (getArtifactRepository() == null) {
489                         if (other.getArtifactRepository() != null)
490                                 return false;
491                 } else if (!getArtifactRepository().equals(other.getArtifactRepository()))
492                         return false;
493                 if (getArtifactType() == null) {
494                         if (other.getArtifactType() != null)
495                                 return false;
496                 } else if (!getArtifactType().equals(other.getArtifactType()))
497                         return false;
498                 if (getArtifactUUID() == null) {
499                         if (other.getArtifactUUID() != null)
500                                 return false;
501                 } else if (!getArtifactUUID().equals(other.getArtifactUUID()))
502                         return false;
503                 if (getArtifactVersion() == null) {
504                         if (other.getArtifactVersion() != null)
505                                 return false;
506                 } else if (!getArtifactVersion().equals(other.getArtifactVersion()))
507                         return false;
508                 if (getUserIdCreator() == null) {
509                         if (other.getUserIdCreator() != null)
510                                 return false;
511                 } else if (!getUserIdCreator().equals(other.getUserIdCreator()))
512                         return false;
513                 if (getUserIdLastUpdater() == null) {
514                         if (other.getUserIdLastUpdater() != null)
515                                 return false;
516                 } else if (!getUserIdLastUpdater().equals(other.getUserIdLastUpdater()))
517                         return false;
518                 if (getCreationDate() == null) {
519                         if (other.getCreationDate() != null)
520                                 return false;
521                 } else if (!getCreationDate().equals(other.getCreationDate()))
522                         return false;
523                 if (getCreatorFullName() == null) {
524                         if (other.getCreatorFullName() != null)
525                                 return false;
526                 } else if (!getCreatorFullName().equals(other.getCreatorFullName()))
527                         return false;
528                 if (getDescription() == null) {
529                         if (other.getDescription() != null)
530                                 return false;
531                 } else if (!getDescription().equals(other.getDescription()))
532                         return false;
533                 if (getEsId() == null) {
534                         if (other.getEsId() != null)
535                                 return false;
536                 } else if (!getEsId().equals(other.getEsId()))
537                         return false;
538                 if (getHeatParamsUpdateDate() == null) {
539                         if (other.getHeatParamsUpdateDate() != null)
540                                 return false;
541                 } else if (!getHeatParamsUpdateDate().equals(other.getHeatParamsUpdateDate()))
542                         return false;
543                 if (getLastUpdateDate() == null) {
544                         if (other.getLastUpdateDate() != null)
545                                 return false;
546                 } else if (!getLastUpdateDate().equals(other.getLastUpdateDate()))
547                         return false;
548                 if (getMandatory() == null) {
549                         if (other.getMandatory() != null)
550                                 return false;
551                 } else if (!getMandatory().equals(other.getMandatory()))
552                         return false;
553                 if (getPayloadUpdateDate() == null) {
554                         if (other.getPayloadUpdateDate() != null)
555                                 return false;
556                 } else if (!getPayloadUpdateDate().equals(other.getPayloadUpdateDate()))
557                         return false;
558                 if (getRequiredArtifacts() == null) {
559                         if (other.getRequiredArtifacts() != null)
560                                 return false;
561                 } else if (!getRequiredArtifacts().equals(other.getRequiredArtifacts()))
562                         return false;
563                 if (getServiceApi() == null) {
564                         if (other.getServiceApi() != null)
565                                 return false;
566                 } else if (!getServiceApi().equals(other.getServiceApi()))
567                         return false;
568                 if (getTimeout() == null) {
569                         if (other.getTimeout() != null)
570                                 return false;
571                 } else if (!getTimeout().equals(other.getTimeout()))
572                         return false;
573                 if (getUniqueId() == null) {
574                         if (other.getUniqueId() != null)
575                                 return false;
576                 } else if (!getUniqueId().equals(other.getUniqueId()))
577                         return false;
578                 if (getUpdaterFullName() == null) {
579                         if (other.getUpdaterFullName() != null)
580                                 return false;
581                 } else if (!getUpdaterFullName().equals(other.getUpdaterFullName()))
582                         return false;
583                 return true;
584         }
585 }