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