[SDC-29] rebase continue work to align source
[sdc.git] / common-app-api / src / main / java / org / openecomp / sdc / be / config / Configuration.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.config;
22
23 import java.util.Date;
24 import java.util.LinkedList;
25 import java.util.List;
26 import java.util.Map;
27 import java.util.Set;
28
29 import org.openecomp.sdc.common.api.BasicConfiguration;
30
31 import static java.lang.String.format;
32
33 public class Configuration extends BasicConfiguration {
34
35         private List<String> identificationHeaderFields;
36         /**
37          * Requests from these Urls will not be logged by
38          * org.openecomp.sdc.be.filters.BeServletFilter.<br>
39          **/
40         private List<String> unLoggedUrls;
41
42         /**
43          * backend host
44          */
45         private String beFqdn;
46         /**
47          * backend http port
48          */
49         private Integer beHttpPort;
50         /**
51          * backend http secured port
52          */
53         private Integer beSslPort;
54         /**
55          * be http context
56          */
57         private String beContext;
58         /**
59          * backend protocol. http | https
60          */
61         private String beProtocol = "http";
62
63         private Date released;
64         private String version = "1111";
65         private String toscaConformanceLevel = "3.0";
66         private String minToscaConformanceLevel = "3.0";
67         private List<String> protocols;
68         private Map<String, String> users;
69         private Map<String, Object> neo4j;
70         private ElasticSearchConfig elasticSearch;
71         private String titanCfgFile;
72         private String titanMigrationKeySpaceCfgFile;
73         private Boolean titanInMemoryGraph;
74         private int startMigrationFrom;
75         private Long titanLockTimeout;
76         private Long titanReconnectIntervalInSeconds;
77         private Long titanHealthCheckReadTimeout;
78         private Long esReconnectIntervalInSeconds;
79         private Long uebHealthCheckReconnectIntervalInSeconds;
80         private Long uebHealthCheckReadTimeout;
81         private LinkedList<Map<String, Map<String, String>>> defaultImports;
82         
83         private List<String> resourceTypes;
84         private List<String> excludeResourceCategory;
85         private Map<String, Object> deploymentResourceArtifacts;
86         private Map<String, Object> deploymentResourceInstanceArtifacts;
87         private Map<String, Object> toscaArtifacts;
88         private Map<String, Object> informationalResourceArtifacts;
89         private Map<String, Object> informationalServiceArtifacts;
90         private Map<String, ArtifactTypeConfig> resourceDeploymentArtifacts;
91         private Map<String, ArtifactTypeConfig> serviceDeploymentArtifacts;
92         private Map<String, ArtifactTypeConfig> resourceInstanceDeploymentArtifacts;
93         private Map<String, ArtifactTypeConfig> resourceInformationalArtifacts;
94         private Map<String, ArtifactTypeConfig> resourceInformationalDeployedArtifacts;
95         private Map<String, Object> serviceApiArtifacts;
96         private List<String> excludeServiceCategory;
97         private Map<String, Set<String>> requirementsToFulfillBeforeCert;
98         private Map<String, Set<String>> capabilitiesToConsumeBeforeCert;
99
100         private List<String> artifactTypes;
101         private List<String> licenseTypes;
102
103         private Integer additionalInformationMaxNumberOfKeys;
104         private Integer defaultHeatArtifactTimeoutMinutes;
105
106         private BeMonitoringConfig systemMonitoring;
107         private CleanComponentsConfiguration cleanComponentsConfiguration;
108
109         private String artifactsIndex;
110
111         private String heatEnvArtifactHeader;
112         private String heatEnvArtifactFooter;
113
114         private String toscaFilesDir;
115         private String heatTranslatorPath;
116
117         private OnboardingConfig onboarding;
118
119         private CassandrConfig cassandraConfig;
120
121         private SwitchoverDetectorConfig switchoverDetector;
122
123         private ApplicationL1CacheConfig applicationL1Cache;
124
125         private ApplicationL2CacheConfig applicationL2Cache;
126
127         private ToscaValidatorsConfig toscaValidators;
128
129         private boolean disableAudit;
130         
131         private Map<String, VfModuleProperty> vfModuleProperties;
132         
133         private Map<String, String> genericAssetNodeTypes;
134
135         public Map<String, String> getGenericAssetNodeTypes() {
136                 return genericAssetNodeTypes;
137         }
138
139         public void setGenericAssetNodeTypes(Map<String, String> genericAssetNodeTypes) {
140                 this.genericAssetNodeTypes = genericAssetNodeTypes;
141         }
142
143         public SwitchoverDetectorConfig getSwitchoverDetector() {
144                 return switchoverDetector;
145         }
146
147         public void setSwitchoverDetector(SwitchoverDetectorConfig switchoverDetector) {
148                 this.switchoverDetector = switchoverDetector;
149         }
150
151         public ApplicationL1CacheConfig getApplicationL1Cache() {
152                 return applicationL1Cache;
153         }
154
155         public void setApplicationL1Cache(ApplicationL1CacheConfig applicationL1Cache) {
156                 this.applicationL1Cache = applicationL1Cache;
157         }
158
159         public ApplicationL2CacheConfig getApplicationL2Cache() {
160                 return applicationL2Cache;
161         }
162
163         public void setApplicationL2Cache(ApplicationL2CacheConfig applicationL2Cache) {
164                 this.applicationL2Cache = applicationL2Cache;
165         }
166
167         private EcompPortalConfig ecompPortal;
168
169         public CassandrConfig getCassandraConfig() {
170                 return cassandraConfig;
171         }
172
173         public void setCassandraConfig(CassandrConfig cassandraKeySpace) {
174                 this.cassandraConfig = cassandraKeySpace;
175         }
176
177         public List<String> getIdentificationHeaderFields() {
178                 return identificationHeaderFields;
179         }
180
181         public void setIdentificationHeaderFields(List<String> identificationHeaderFields) {
182                 this.identificationHeaderFields = identificationHeaderFields;
183         }
184
185         public Date getReleased() {
186                 return released;
187         }
188
189         public String getVersion() {
190                 return version;
191         }
192
193         public void setReleased(Date released) {
194                 this.released = released;
195         }
196
197         public void setVersion(String version) {
198                 this.version = version;
199         }
200
201         public List<String> getProtocols() {
202                 return protocols;
203         }
204
205         public void setProtocols(List<String> protocols) {
206                 this.protocols = protocols;
207         }
208
209         public Map<String, String> getUsers() {
210                 return users;
211         }
212
213         public void setUsers(Map<String, String> users) {
214                 this.users = users;
215         }
216
217         public String getBeFqdn() {
218                 return beFqdn;
219         }
220
221         public void setBeFqdn(String beHost) {
222                 this.beFqdn = beHost;
223         }
224
225         public Integer getBeHttpPort() {
226                 return beHttpPort;
227         }
228
229         public void setBeHttpPort(Integer beHttpPort) {
230                 this.beHttpPort = beHttpPort;
231         }
232
233         public Integer getBeSslPort() {
234                 return beSslPort;
235         }
236
237         public void setBeSslPort(Integer beSslPort) {
238                 this.beSslPort = beSslPort;
239         }
240
241         public String getBeContext() {
242                 return beContext;
243         }
244
245         public void setBeContext(String beContext) {
246                 this.beContext = beContext;
247         }
248
249         public String getBeProtocol() {
250                 return beProtocol;
251         }
252
253         public void setBeProtocol(String beProtocol) {
254                 this.beProtocol = beProtocol;
255         }
256
257         public Map<String, Object> getNeo4j() {
258                 return neo4j;
259         }
260
261         public void setNeo4j(Map<String, Object> neo4j) {
262                 this.neo4j = neo4j;
263         }
264
265         public ElasticSearchConfig getElasticSearch() {
266                 return elasticSearch;
267         }
268
269         public void setElasticSearch(ElasticSearchConfig elasticSearch) {
270                 this.elasticSearch = elasticSearch;
271         }
272
273         public String getTitanCfgFile() {
274                 return titanCfgFile;
275         }
276
277         public void setTitanCfgFile(String titanCfgFile) {
278                 this.titanCfgFile = titanCfgFile;
279         }
280
281         public String getTitanMigrationKeySpaceCfgFile() {
282                 return titanMigrationKeySpaceCfgFile;
283         }
284
285         public void setTitanMigrationKeySpaceCfgFile(String titanMigrationKeySpaceCfgFile) {
286                 this.titanMigrationKeySpaceCfgFile = titanMigrationKeySpaceCfgFile;
287         }
288
289         public Boolean getTitanInMemoryGraph() {
290                 return titanInMemoryGraph;
291         }
292
293         public void setTitanInMemoryGraph(Boolean titanInMemoryGraph) {
294                 this.titanInMemoryGraph = titanInMemoryGraph;
295         }
296
297         public int getStartMigrationFrom() {
298                 return startMigrationFrom;
299         }
300
301         public void setStartMigrationFrom(int startMigrationFrom) {
302                 this.startMigrationFrom = startMigrationFrom;
303         }
304
305         public Long getTitanLockTimeout() {
306                 return titanLockTimeout;
307         }
308
309         public void setTitanLockTimeout(Long titanLockTimeout) {
310                 this.titanLockTimeout = titanLockTimeout;
311         }
312
313         public Long getTitanHealthCheckReadTimeout() {
314                 return titanHealthCheckReadTimeout;
315         }
316
317         public Long getTitanHealthCheckReadTimeout(long defaultVal) {
318                 return titanHealthCheckReadTimeout == null ? defaultVal : titanHealthCheckReadTimeout;
319         }
320
321         public void setTitanHealthCheckReadTimeout(Long titanHealthCheckReadTimeout) {
322                 this.titanHealthCheckReadTimeout = titanHealthCheckReadTimeout;
323         }
324
325         public Long getTitanReconnectIntervalInSeconds() {
326                 return titanReconnectIntervalInSeconds;
327         }
328
329         public Long getTitanReconnectIntervalInSeconds(long defaultVal) {
330                 return titanReconnectIntervalInSeconds == null ? defaultVal : titanReconnectIntervalInSeconds;
331         }
332
333         public void setTitanReconnectIntervalInSeconds(Long titanReconnectIntervalInSeconds) {
334                 this.titanReconnectIntervalInSeconds = titanReconnectIntervalInSeconds;
335         }
336
337         public Long getEsReconnectIntervalInSeconds() {
338                 return esReconnectIntervalInSeconds;
339         }
340
341         public Long getEsReconnectIntervalInSeconds(long defaultVal) {
342                 return esReconnectIntervalInSeconds == null ? defaultVal : esReconnectIntervalInSeconds;
343         }
344
345         public void setEsReconnectIntervalInSeconds(Long esReconnectIntervalInSeconds) {
346                 this.esReconnectIntervalInSeconds = esReconnectIntervalInSeconds;
347         }
348
349         public List<String> getArtifactTypes() {
350                 return artifactTypes;
351         }
352
353         public void setArtifactTypes(List<String> artifactTypes) {
354                 this.artifactTypes = artifactTypes;
355         }
356
357         public List<String> getExcludeResourceCategory() {
358                 return excludeResourceCategory;
359         }
360
361         public void setExcludeResourceCategory(List<String> excludeResourceCategory) {
362                 this.excludeResourceCategory = excludeResourceCategory;
363         }
364
365         public Map<String, Object> getToscaArtifacts() {
366                 return toscaArtifacts;
367         }
368
369         public void setToscaArtifacts(Map<String, Object> toscaArtifacts) {
370                 this.toscaArtifacts = toscaArtifacts;
371         }
372
373         public Map<String, Object> getInformationalResourceArtifacts() {
374                 return informationalResourceArtifacts;
375         }
376
377         public void setInformationalResourceArtifacts(Map<String, Object> informationalResourceArtifacts) {
378                 this.informationalResourceArtifacts = informationalResourceArtifacts;
379         }
380
381         public Map<String, Object> getInformationalServiceArtifacts() {
382                 return informationalServiceArtifacts;
383         }
384
385         public void setInformationalServiceArtifacts(Map<String, Object> informationalServiceArtifacts) {
386                 this.informationalServiceArtifacts = informationalServiceArtifacts;
387         }
388
389         public Map<String, Object> getServiceApiArtifacts() {
390                 return serviceApiArtifacts;
391         }
392
393         public void setServiceApiArtifacts(Map<String, Object> serviceApiArtifacts) {
394                 this.serviceApiArtifacts = serviceApiArtifacts;
395         }
396
397         public Map<String, ArtifactTypeConfig> getServiceDeploymentArtifacts() {
398                 return serviceDeploymentArtifacts;
399         }
400
401         public void setServiceDeploymentArtifacts(Map<String, ArtifactTypeConfig> serviceDeploymentArtifacts) {
402                 this.serviceDeploymentArtifacts = serviceDeploymentArtifacts;
403         }
404
405         public Map<String, ArtifactTypeConfig> getResourceDeploymentArtifacts() {
406                 return resourceDeploymentArtifacts;
407         }
408
409         public void setResourceDeploymentArtifacts(Map<String, ArtifactTypeConfig> resourceDeploymentArtifacts) {
410                 this.resourceDeploymentArtifacts = resourceDeploymentArtifacts;
411         }
412
413         public void setResourceInstanceDeploymentArtifacts(
414                         Map<String, ArtifactTypeConfig> resourceInstanceDeploymentArtifacts) {
415                 this.resourceInstanceDeploymentArtifacts = resourceInstanceDeploymentArtifacts;
416         }
417
418         public Map<String, ArtifactTypeConfig> getResourceInstanceDeploymentArtifacts() {
419                 return resourceInstanceDeploymentArtifacts;
420         }
421
422         public List<String> getExcludeServiceCategory() {
423                 return excludeServiceCategory;
424         }
425
426         public void setExcludeServiceCategory(List<String> excludeServiceCategory) {
427                 this.excludeServiceCategory = excludeServiceCategory;
428         }
429
430         public List<String> getLicenseTypes() {
431                 return licenseTypes;
432         }
433
434         public void setLicenseTypes(List<String> licenseTypes) {
435                 this.licenseTypes = licenseTypes;
436         }
437
438         public Integer getAdditionalInformationMaxNumberOfKeys() {
439                 return additionalInformationMaxNumberOfKeys;
440         }
441
442         public void setAdditionalInformationMaxNumberOfKeys(Integer additionalInformationMaxNumberOfKeys) {
443                 this.additionalInformationMaxNumberOfKeys = additionalInformationMaxNumberOfKeys;
444         }
445
446         public BeMonitoringConfig getSystemMonitoring() {
447                 return systemMonitoring;
448         }
449
450         public void setSystemMonitoring(BeMonitoringConfig systemMonitoring) {
451                 this.systemMonitoring = systemMonitoring;
452         }
453
454         public Integer getDefaultHeatArtifactTimeoutMinutes() {
455                 return defaultHeatArtifactTimeoutMinutes;
456         }
457
458         public void setDefaultHeatArtifactTimeoutMinutes(Integer defaultHeatArtifactTimeoutMinutes) {
459                 this.defaultHeatArtifactTimeoutMinutes = defaultHeatArtifactTimeoutMinutes;
460         }
461
462         public Long getUebHealthCheckReconnectIntervalInSeconds() {
463                 return uebHealthCheckReconnectIntervalInSeconds;
464         }
465
466         public void setUebHealthCheckReconnectIntervalInSeconds(Long uebHealthCheckReconnectIntervalInSeconds) {
467                 this.uebHealthCheckReconnectIntervalInSeconds = uebHealthCheckReconnectIntervalInSeconds;
468         }
469
470         public Long getUebHealthCheckReadTimeout() {
471                 return uebHealthCheckReadTimeout;
472         }
473
474         public void setUebHealthCheckReadTimeout(Long uebHealthCheckReadTimeout) {
475                 this.uebHealthCheckReadTimeout = uebHealthCheckReadTimeout;
476         }
477
478         public static class ElasticSearchConfig {
479
480                 List<IndicesTimeFrequencyEntry> indicesTimeFrequency;
481
482                 public List<IndicesTimeFrequencyEntry> getIndicesTimeFrequency() {
483                         return indicesTimeFrequency;
484                 }
485
486                 public void setIndicesTimeFrequency(List<IndicesTimeFrequencyEntry> indicesTimeFrequency) {
487                         this.indicesTimeFrequency = indicesTimeFrequency;
488                 }
489
490                 public static class IndicesTimeFrequencyEntry {
491
492                         String indexPrefix;
493                         String creationPeriod;
494
495                         public String getIndexPrefix() {
496                                 return indexPrefix;
497                         }
498
499                         public void setIndexPrefix(String indexPrefix) {
500                                 this.indexPrefix = indexPrefix;
501                         }
502
503                         public String getCreationPeriod() {
504                                 return creationPeriod;
505                         }
506
507                         public void setCreationPeriod(String creationPeriod) {
508                                 this.creationPeriod = creationPeriod;
509                         }
510                 }
511         }
512
513         public static class CassandrConfig {
514
515                 List<String> cassandraHosts;
516                 String localDataCenter;
517                 Long reconnectTimeout;
518                 List<KeyspaceConfig> keySpaces;
519                 boolean authenticate;
520                 String username;
521                 String password;
522                 boolean ssl;
523                 String truststorePath;
524                 String truststorePassword;
525
526                 public String getLocalDataCenter() {
527                         return localDataCenter;
528                 }
529
530                 public void setLocalDataCenter(String localDataCenter) {
531                         this.localDataCenter = localDataCenter;
532                 }
533
534                 public boolean isAuthenticate() {
535                         return authenticate;
536                 }
537
538                 public void setAuthenticate(boolean authenticate) {
539                         this.authenticate = authenticate;
540                 }
541
542                 public String getUsername() {
543                         return username;
544                 }
545
546                 public void setUsername(String username) {
547                         this.username = username;
548                 }
549
550                 public String getPassword() {
551                         return password;
552                 }
553
554                 public void setPassword(String password) {
555                         this.password = password;
556                 }
557
558                 public boolean isSsl() {
559                         return ssl;
560                 }
561
562                 public void setSsl(boolean ssl) {
563                         this.ssl = ssl;
564                 }
565
566                 public String getTruststorePath() {
567                         return truststorePath;
568                 }
569
570                 public void setTruststorePath(String truststorePath) {
571                         this.truststorePath = truststorePath;
572                 }
573
574                 public String getTruststorePassword() {
575                         return truststorePassword;
576                 }
577
578                 public void setTruststorePassword(String truststorePassword) {
579                         this.truststorePassword = truststorePassword;
580                 }
581
582                 public Long getReconnectTimeout() {
583                         return reconnectTimeout;
584                 }
585
586                 public void setReconnectTimeout(Long reconnectTimeout) {
587                         this.reconnectTimeout = reconnectTimeout;
588                 }
589
590                 public List<String> getCassandraHosts() {
591                         return cassandraHosts;
592                 }
593
594                 public void setCassandraHosts(List<String> cassandraHosts) {
595                         this.cassandraHosts = cassandraHosts;
596                 }
597
598                 public List<KeyspaceConfig> getKeySpaces() {
599                         return keySpaces;
600                 }
601
602                 public void setKeySpaces(List<KeyspaceConfig> cassandraConfig) {
603                         this.keySpaces = cassandraConfig;
604                 }
605
606                 public static class KeyspaceConfig {
607
608                         String name;
609                         String replicationStrategy;
610                         List<String> replicationInfo;
611
612                         public String getName() {
613                                 return name;
614                         }
615
616                         public void setName(String name) {
617                                 this.name = name;
618                         }
619
620                         public String getReplicationStrategy() {
621                                 return replicationStrategy;
622                         }
623
624                         public void setReplicationStrategy(String replicationStrategy) {
625                                 this.replicationStrategy = replicationStrategy;
626                         }
627
628                         public List<String> getReplicationInfo() {
629                                 return replicationInfo;
630                         }
631
632                         public void setReplicationInfo(List<String> replicationInfo) {
633                                 this.replicationInfo = replicationInfo;
634                         }
635                 }
636         }
637
638         public static class SwitchoverDetectorConfig {
639
640                 String gBeFqdn;
641                 String gFeFqdn;
642                 String beVip;
643                 String feVip;
644                 int beResolveAttempts;
645                 int feResolveAttempts;
646                 Boolean enabled;
647                 long interval;
648                 String changePriorityUser;
649                 String changePriorityPassword;
650                 String publishNetworkUrl;
651                 String publishNetworkBody;
652                 Map<String, GroupInfo> groups;
653
654                 public String getgBeFqdn() {
655                         return gBeFqdn;
656                 }
657
658                 public void setgBeFqdn(String gBeFqdn) {
659                         this.gBeFqdn = gBeFqdn;
660                 }
661
662                 public String getgFeFqdn() {
663                         return gFeFqdn;
664                 }
665
666                 public void setgFeFqdn(String gFeFqdn) {
667                         this.gFeFqdn = gFeFqdn;
668                 }
669
670                 public String getBeVip() {
671                         return beVip;
672                 }
673
674                 public void setBeVip(String beVip) {
675                         this.beVip = beVip;
676                 }
677
678                 public String getFeVip() {
679                         return feVip;
680                 }
681
682                 public void setFeVip(String feVip) {
683                         this.feVip = feVip;
684                 }
685
686                 public int getBeResolveAttempts() {
687                         return beResolveAttempts;
688                 }
689
690                 public void setBeResolveAttempts(int beResolveAttempts) {
691                         this.beResolveAttempts = beResolveAttempts;
692                 }
693
694                 public int getFeResolveAttempts() {
695                         return feResolveAttempts;
696                 }
697
698                 public void setFeResolveAttempts(int feResolveAttempts) {
699                         this.feResolveAttempts = feResolveAttempts;
700                 }
701
702                 public Boolean getEnabled() {
703                         return enabled;
704                 }
705
706                 public void setEnabled(Boolean enabled) {
707                         this.enabled = enabled;
708                 }
709
710                 public long getInterval() {
711                         return interval;
712                 }
713
714                 public void setInterval(long interval) {
715                         this.interval = interval;
716                 }
717
718                 public String getChangePriorityUser() {
719                         return changePriorityUser;
720                 }
721
722                 public void setChangePriorityUser(String changePriorityUser) {
723                         this.changePriorityUser = changePriorityUser;
724                 }
725
726                 public String getChangePriorityPassword() {
727                         return changePriorityPassword;
728                 }
729
730                 public void setChangePriorityPassword(String changePriorityPassword) {
731                         this.changePriorityPassword = changePriorityPassword;
732                 }
733
734                 public String getPublishNetworkUrl() {
735                         return publishNetworkUrl;
736                 }
737
738                 public void setPublishNetworkUrl(String publishNetworkUrl) {
739                         this.publishNetworkUrl = publishNetworkUrl;
740                 }
741
742                 public String getPublishNetworkBody() {
743                         return publishNetworkBody;
744                 }
745
746                 public void setPublishNetworkBody(String publishNetworkBody) {
747                         this.publishNetworkBody = publishNetworkBody;
748                 }
749
750                 public Map<String, GroupInfo> getGroups() {
751                         return groups;
752                 }
753
754                 public void setGroups(Map<String, GroupInfo> groups) {
755                         this.groups = groups;
756                 }
757
758                 public static class GroupInfo {
759
760                         String changePriorityUrl;
761                         String changePriorityBody;
762
763                         public String getChangePriorityUrl() {
764                                 return changePriorityUrl;
765                         }
766
767                         public void setChangePriorityUrl(String changePriorityUrl) {
768                                 this.changePriorityUrl = changePriorityUrl;
769                         }
770
771                         public String getChangePriorityBody() {
772                                 return changePriorityBody;
773                         }
774
775                         public void setChangePriorityBody(String changePriorityBody) {
776                                 this.changePriorityBody = changePriorityBody;
777                         }
778                 }
779
780         }
781
782         public static class BeMonitoringConfig {
783
784                 Boolean enabled;
785                 Boolean isProxy;
786                 Integer probeIntervalInSeconds;
787
788                 public Boolean getEnabled() {
789                         return enabled;
790                 }
791
792                 public void setEnabled(Boolean enabled) {
793                         this.enabled = enabled;
794                 }
795
796                 public Boolean getIsProxy() {
797                         return isProxy;
798                 }
799
800                 public void setIsProxy(Boolean isProxy) {
801                         this.isProxy = isProxy;
802                 }
803
804                 public Integer getProbeIntervalInSeconds() {
805                         return probeIntervalInSeconds;
806                 }
807
808                 public Integer getProbeIntervalInSeconds(int defaultVal) {
809                         return probeIntervalInSeconds == null ? defaultVal : probeIntervalInSeconds;
810                 }
811
812                 public void setProbeIntervalInSeconds(Integer probeIntervalInSeconds) {
813                         this.probeIntervalInSeconds = probeIntervalInSeconds;
814                 }
815         }
816
817         public static class ArtifactTypeConfig {
818
819                 List<String> acceptedTypes;
820                 List<String> validForResourceTypes;
821
822                 public List<String> getValidForResourceTypes() {
823                         return validForResourceTypes;
824                 }
825
826                 public void setValidForResourceTypes(List<String> validForResourceTypes) {
827                         this.validForResourceTypes = validForResourceTypes;
828                 }
829
830                 public List<String> getAcceptedTypes() {
831                         return acceptedTypes;
832                 }
833
834                 public void setAcceptedTypes(List<String> acceptedTypes) {
835                         this.acceptedTypes = acceptedTypes;
836                 }
837         }
838
839         public static class OnboardingConfig {
840
841                 String protocol = "http";
842                 String host;
843                 Integer port;
844                 String downloadCsarUri;
845
846                 public String getProtocol() {
847                         return protocol;
848                 }
849
850                 public void setProtocol(String protocol) {
851                         this.protocol = protocol;
852                 }
853
854                 public String getHost() {
855                         return host;
856                 }
857
858                 public void setHost(String host) {
859                         this.host = host;
860                 }
861
862                 public Integer getPort() {
863                         return port;
864                 }
865
866                 public void setPort(Integer port) {
867                         this.port = port;
868                 }
869
870                 public String getDownloadCsarUri() {
871                         return downloadCsarUri;
872                 }
873
874                 public void setDownloadCsarUri(String downloadCsarUri) {
875                         this.downloadCsarUri = downloadCsarUri;
876                 }
877
878                 @Override
879                 public String toString() {
880                         return "OnboardingConfig [protocol=" + protocol + ", host=" + host + ", port=" + port + ", downloadCsarUri="
881                                         + downloadCsarUri + "]";
882                 }
883
884         }
885
886         public static class EcompPortalConfig {
887
888                 private String defaultFunctionalMenu;
889
890                 public String getDefaultFunctionalMenu() {
891                         return defaultFunctionalMenu;
892                 }
893
894                 public void setDefaultFunctionalMenu(String defaultFunctionalMenu) {
895                         this.defaultFunctionalMenu = defaultFunctionalMenu;
896                 }
897
898                 @Override
899                 public String toString() {
900                         return "EcompPortalConfig [defaultFunctionalMenu=" + defaultFunctionalMenu + "]";
901                 }
902
903         }
904
905         public static class ApplicationL1CacheConfig {
906
907                 ApplicationL1CacheInfo datatypes;
908
909                 public ApplicationL1CacheInfo getDatatypes() {
910                         return datatypes;
911                 }
912
913                 public void setDatatypes(ApplicationL1CacheInfo datatypes) {
914                         this.datatypes = datatypes;
915                 }
916
917                 @Override
918                 public String toString() {
919                         return "ApplicationL1CacheConfig [datatypes=" + datatypes + "]";
920                 }
921
922         }
923
924         public static class ApplicationL2CacheConfig {
925
926                 boolean enabled;
927                 ApplicationL1CacheCatalogInfo catalogL1Cache;
928
929                 QueueInfo queue;
930
931                 public boolean isEnabled() {
932                         return enabled;
933                 }
934
935                 public void setEnabled(boolean enabled) {
936                         this.enabled = enabled;
937                 }
938
939                 public ApplicationL1CacheCatalogInfo getCatalogL1Cache() {
940                         return catalogL1Cache;
941                 }
942
943                 public void setCatalogL1Cache(ApplicationL1CacheCatalogInfo catalogL1Cache) {
944                         this.catalogL1Cache = catalogL1Cache;
945                 }
946
947                 public QueueInfo getQueue() {
948                         return queue;
949                 }
950
951                 public void setQueue(QueueInfo queue) {
952                         this.queue = queue;
953                 }
954
955                 @Override
956                 public String toString() {
957                         return "ApplicationL2CacheConfig [enabled=" + enabled + ", catalogL1Cache=" + catalogL1Cache + "]";
958                 }
959
960         }
961
962         public static class ToscaValidatorsConfig {
963
964                 private Integer stringMaxLength;
965
966                 public Integer getStringMaxLength() {
967                         return stringMaxLength;
968                 }
969
970                 public void setStringMaxLength(Integer stringMaxLength) {
971                         this.stringMaxLength = stringMaxLength;
972                 }
973
974                 @Override
975                 public String toString() {
976                         return "ToscaValidatorsConfig [stringMaxLength=" + stringMaxLength + "]";
977                 }
978
979         }
980
981         public static class ApplicationL1CacheInfo {
982
983                 Boolean enabled;
984                 Integer firstRunDelay;
985                 Integer pollIntervalInSec;
986
987                 public Boolean getEnabled() {
988                         return enabled;
989                 }
990
991                 public void setEnabled(Boolean enabled) {
992                         this.enabled = enabled;
993                 }
994
995                 public Integer getFirstRunDelay() {
996                         return firstRunDelay;
997                 }
998
999                 public void setFirstRunDelay(Integer firstRunDelay) {
1000                         this.firstRunDelay = firstRunDelay;
1001                 }
1002
1003                 public Integer getPollIntervalInSec() {
1004                         return pollIntervalInSec;
1005                 }
1006
1007                 public void setPollIntervalInSec(Integer pollIntervalInSec) {
1008                         this.pollIntervalInSec = pollIntervalInSec;
1009                 }
1010
1011                 @Override
1012                 public String toString() {
1013                         return "ApplicationL1CacheInfo [enabled=" + enabled + ", firstRunDelay=" + firstRunDelay
1014                                         + ", pollIntervalInSec=" + pollIntervalInSec + "]";
1015                 }
1016         }
1017
1018         public static class ApplicationL1CacheCatalogInfo {
1019
1020                 Boolean enabled;
1021                 Integer resourcesSizeInCache;
1022                 Integer servicesSizeInCache;
1023                 Integer productsSizeInCache;
1024
1025                 public Boolean getEnabled() {
1026                         return enabled;
1027                 }
1028
1029                 public void setEnabled(Boolean enabled) {
1030                         this.enabled = enabled;
1031                 }
1032
1033                 public Integer getResourcesSizeInCache() {
1034                         return resourcesSizeInCache;
1035                 }
1036
1037                 public void setResourcesSizeInCache(Integer resourcesSizeInCache) {
1038                         this.resourcesSizeInCache = resourcesSizeInCache;
1039                 }
1040
1041                 public Integer getServicesSizeInCache() {
1042                         return servicesSizeInCache;
1043                 }
1044
1045                 public void setServicesSizeInCache(Integer servicesSizeInCache) {
1046                         this.servicesSizeInCache = servicesSizeInCache;
1047                 }
1048
1049                 public Integer getProductsSizeInCache() {
1050                         return productsSizeInCache;
1051                 }
1052
1053                 public void setProductsSizeInCache(Integer productsSizeInCache) {
1054                         this.productsSizeInCache = productsSizeInCache;
1055                 }
1056
1057                 @Override
1058                 public String toString() {
1059                         return "ApplicationL1CacheCatalogInfo [enabled=" + enabled + ", resourcesSizeInCache="
1060                                         + resourcesSizeInCache + ", servicesSizeInCache=" + servicesSizeInCache + ", productsSizeInCache="
1061                                         + productsSizeInCache + "]";
1062                 }
1063
1064         }
1065
1066         public static class QueueInfo {
1067                 Integer numberOfCacheWorkers;
1068                 Integer waitOnShutDownInMinutes;
1069                 Integer syncIntervalInSecondes;
1070
1071                 public Integer getWaitOnShutDownInMinutes() {
1072                         return waitOnShutDownInMinutes;
1073                 }
1074
1075                 public void setWaitOnShutDownInMinutes(Integer waitOnShutDownInMinutes) {
1076                         this.waitOnShutDownInMinutes = waitOnShutDownInMinutes;
1077                 }
1078
1079                 public Integer getSyncIntervalInSecondes() {
1080                         return syncIntervalInSecondes;
1081                 }
1082
1083                 public void setSyncIntervalInSecondes(Integer syncIntervalInSecondes) {
1084                         this.syncIntervalInSecondes = syncIntervalInSecondes;
1085                 }
1086
1087                 public Integer getNumberOfCacheWorkers() {
1088                         return numberOfCacheWorkers;
1089                 }
1090
1091                 public void setNumberOfCacheWorkers(Integer numberOfCacheWorkers) {
1092                         this.numberOfCacheWorkers = numberOfCacheWorkers;
1093                 }
1094
1095                 @Override
1096                 public String toString() {
1097                         return "QueueInfo[" + "waitOnShutDownInMinutes=" + waitOnShutDownInMinutes + ", syncIntervalInSecondes="
1098                                         + syncIntervalInSecondes + ", numberOfCacheWorkers=" + this.numberOfCacheWorkers + ']';
1099                 }
1100         }
1101
1102         public CleanComponentsConfiguration getCleanComponentsConfiguration() {
1103                 return cleanComponentsConfiguration;
1104         }
1105
1106         public void setCleanComponentsConfiguration(CleanComponentsConfiguration cleanComponentsConfiguration) {
1107                 this.cleanComponentsConfiguration = cleanComponentsConfiguration;
1108         }
1109
1110         @Override
1111         public String toString() {
1112                 return new StringBuilder().append(format("backend host: %s\n", beFqdn))
1113                                 .append(format("backend http port: %s\n", beHttpPort))
1114                                 .append(format("backend ssl port: %s\n", beSslPort)).append(format("backend context: %s\n", beContext))
1115                                 .append(format("backend protocol: %s\n", beProtocol)).append(format("Version: %s\n", version))
1116                                 .append(format("Released: %s\n", released)).append(format("Supported protocols: %s\n", protocols))
1117                                 .append(format("Users: %s\n", users)).append(format("Neo4j: %s\n", neo4j))
1118                                 .append(format("ElasticSearch: %s\n", elasticSearch))
1119                                 .append(format("Titan Cfg File: %s\n", titanCfgFile))
1120                                 .append(format("Titan In memory: %s\n", titanInMemoryGraph))
1121                                 .append(format("Titan lock timeout: %s\n", titanLockTimeout))
1122                                 .append(format("Titan reconnect interval seconds: %s\n", titanReconnectIntervalInSeconds))
1123                                 .append(format("excludeResourceCategory: %s\n", excludeResourceCategory))
1124                                 .append(format("informationalResourceArtifacts: %s\n", informationalResourceArtifacts))
1125                                 .append(format("deploymentResourceArtifacts: %s\n", deploymentResourceArtifacts))
1126                                 .append(format("informationalServiceArtifacts: %s\n", informationalServiceArtifacts))
1127                                 .append(format("Supported artifacts types: %s\n", artifactTypes))
1128                                 .append(format("Supported license types: %s\n", licenseTypes))
1129                                 .append(format("Additional information Maximum number of preoperties: %s\n",
1130                                                 additionalInformationMaxNumberOfKeys))
1131                                 .append(format("Default Heat Artifact Timeout in Minutes: %s\n", defaultHeatArtifactTimeoutMinutes))
1132                                 .append(format("URLs For HTTP Requests that will not be automatically logged : %s\n", unLoggedUrls))
1133                                 .append(format("Service Api Artifacts: %s\n", serviceApiArtifacts))
1134                                 .append(format("heat env artifact header: %s\n", heatEnvArtifactHeader))
1135                                 .append(format("heat env artifact footer: %s\n", heatEnvArtifactFooter))
1136                                 .append(format("onboarding: %s\n", onboarding)).toString();
1137         }
1138
1139         public List<String> getUnLoggedUrls() {
1140                 return unLoggedUrls;
1141         }
1142
1143         public void setUnLoggedUrls(List<String> unLoggedUrls) {
1144                 this.unLoggedUrls = unLoggedUrls;
1145         }
1146
1147         public Map<String, Object> getDeploymentResourceArtifacts() {
1148                 return deploymentResourceArtifacts;
1149         }
1150
1151         public void setDeploymentResourceArtifacts(Map<String, Object> deploymentResourceArtifacts) {
1152                 this.deploymentResourceArtifacts = deploymentResourceArtifacts;
1153         }
1154
1155         public String getHeatEnvArtifactHeader() {
1156                 return heatEnvArtifactHeader;
1157         }
1158
1159         public void setHeatEnvArtifactHeader(String heatEnvArtifactHeader) {
1160                 this.heatEnvArtifactHeader = heatEnvArtifactHeader;
1161         }
1162
1163         public String getHeatEnvArtifactFooter() {
1164                 return heatEnvArtifactFooter;
1165         }
1166
1167         public void setHeatEnvArtifactFooter(String heatEnvArtifactFooter) {
1168                 this.heatEnvArtifactFooter = heatEnvArtifactFooter;
1169         }
1170
1171         public Map<String, Object> getDeploymentResourceInstanceArtifacts() {
1172                 return deploymentResourceInstanceArtifacts;
1173         }
1174
1175         public void setDeploymentResourceInstanceArtifacts(Map<String, Object> deploymentResourceInstanceArtifacts) {
1176                 this.deploymentResourceInstanceArtifacts = deploymentResourceInstanceArtifacts;
1177         }
1178
1179         public String getArtifactsIndex() {
1180                 return artifactsIndex;
1181         }
1182
1183         public void setArtifactsIndex(String artifactsIndex) {
1184                 this.artifactsIndex = artifactsIndex;
1185         }
1186
1187         public Map<String, ArtifactTypeConfig> getResourceInformationalDeployedArtifacts() {
1188                 return resourceInformationalDeployedArtifacts;
1189         }
1190
1191         public void setResourceInformationalDeployedArtifacts(
1192                         Map<String, ArtifactTypeConfig> resourceInformationalDeployedArtifacts) {
1193                 this.resourceInformationalDeployedArtifacts = resourceInformationalDeployedArtifacts;
1194         }
1195
1196         public List<String> getResourceTypes() {
1197                 return resourceTypes;
1198         }
1199
1200         public void setResourceTypes(List<String> resourceTypes) {
1201                 this.resourceTypes = resourceTypes;
1202         }
1203
1204         public String getToscaFilesDir() {
1205                 return toscaFilesDir;
1206         }
1207
1208         public void setToscaFilesDir(String toscaFilesDir) {
1209                 this.toscaFilesDir = toscaFilesDir;
1210         }
1211
1212         public String getHeatTranslatorPath() {
1213                 return heatTranslatorPath;
1214         }
1215
1216         public void setHeatTranslatorPath(String heatTranslatorPath) {
1217                 this.heatTranslatorPath = heatTranslatorPath;
1218         }
1219
1220         public Map<String, Set<String>> getRequirementsToFulfillBeforeCert() {
1221                 return requirementsToFulfillBeforeCert;
1222         }
1223
1224         public void setRequirementsToFulfillBeforeCert(Map<String, Set<String>> requirementsToFulfillBeforeCert) {
1225                 this.requirementsToFulfillBeforeCert = requirementsToFulfillBeforeCert;
1226         }
1227
1228         public Map<String, Set<String>> getCapabilitiesToConsumeBeforeCert() {
1229                 return capabilitiesToConsumeBeforeCert;
1230         }
1231
1232         public void setCapabilitiesToConsumeBeforeCert(Map<String, Set<String>> capabilitiesToConsumeBeforeCert) {
1233                 this.capabilitiesToConsumeBeforeCert = capabilitiesToConsumeBeforeCert;
1234         }
1235
1236         public OnboardingConfig getOnboarding() {
1237                 return onboarding;
1238         }
1239
1240         public void setOnboarding(OnboardingConfig onboarding) {
1241                 this.onboarding = onboarding;
1242         }
1243
1244         public EcompPortalConfig getEcompPortal() {
1245                 return ecompPortal;
1246         }
1247
1248         public void setEcompPortal(EcompPortalConfig ecompPortal) {
1249                 this.ecompPortal = ecompPortal;
1250         }
1251
1252         public ToscaValidatorsConfig getToscaValidators() {
1253                 return toscaValidators;
1254         }
1255
1256         public void setToscaValidators(ToscaValidatorsConfig toscaValidators) {
1257                 this.toscaValidators = toscaValidators;
1258         }
1259
1260         public boolean isDisableAudit() {
1261                 return disableAudit;
1262         }
1263
1264         public void setDisableAudit(boolean enableAudit) {
1265                 this.disableAudit = enableAudit;
1266         }
1267
1268         public Map<String, ArtifactTypeConfig> getResourceInformationalArtifacts() {
1269                 return resourceInformationalArtifacts;
1270         }
1271
1272         public void setResourceInformationalArtifacts(Map<String, ArtifactTypeConfig> resourceInformationalArtifacts) {
1273                 this.resourceInformationalArtifacts = resourceInformationalArtifacts;
1274         }
1275
1276         public Map<String, VfModuleProperty> getVfModuleProperties() {
1277                 return vfModuleProperties;
1278         }
1279
1280         public void setVfModuleProperties(Map<String, VfModuleProperty> vfModuleProperties) {
1281                 this.vfModuleProperties = vfModuleProperties;
1282         }
1283
1284         public String getToscaConformanceLevel() {
1285                 return toscaConformanceLevel;
1286         }
1287
1288         public void setToscaConformanceLevel(String toscaConformanceLevel) {
1289                 this.toscaConformanceLevel = toscaConformanceLevel;
1290         }
1291         
1292         public String getMinToscaConformanceLevel() {
1293                 return minToscaConformanceLevel;
1294         }
1295
1296         public void setMinToscaConformanceLevel(String toscaConformanceLevel) {
1297                 this.minToscaConformanceLevel = toscaConformanceLevel;
1298         }
1299
1300         public static class VfModuleProperty {
1301                 private String forBaseModule;
1302                 private String forNonBaseModule;
1303                 public String getForBaseModule() {
1304                         return forBaseModule;
1305                 }
1306                 public void setForBaseModule(String forBaseModule) {
1307                         this.forBaseModule = forBaseModule;
1308                 }
1309                 public String getForNonBaseModule() {
1310                         return forNonBaseModule;
1311                 }
1312                 public void setForNonBaseModule(String forNonBaseModule) {
1313                         this.forNonBaseModule = forNonBaseModule;
1314                 }
1315         }
1316
1317         public LinkedList<Map<String, Map<String, String>>> getDefaultImports() {
1318                 return defaultImports;
1319         }
1320
1321         public void setDefaultImports(LinkedList<Map<String, Map<String, String>>> defaultImports) {
1322                 this.defaultImports = defaultImports;
1323         }
1324 }