18
18
19
19
import com .ericsson .ei .erqueryservice .ERQueryService ;
20
20
import com .ericsson .ei .handlers .ObjectHandler ;
21
- import com .ericsson .ei .mongodbhandler .MongoDBHandler ;
22
21
import com .ericsson .ei .rmqhandler .RmqHandler ;
23
22
import com .ericsson .ei .subscriptionhandler .InformSubscription ;
24
23
import com .ericsson .ei .subscriptionhandler .SendMail ;
37
36
*/
38
37
@ Component
39
38
public class ParseInstanceInfoEI {
39
+
40
40
@ Getter
41
41
@ Value ("${spring.application.name}" )
42
42
private String applicationName ;
43
43
44
44
@ Getter
45
45
@ Value ("${build.version}" )
46
46
private String version ;
47
+
48
+ @ Getter
49
+ @ Value ("${testaggregated.enabled:false}" )
50
+ private String testRulesEnabled ;
47
51
48
52
@ Getter
49
53
@ Autowired
50
54
private List <RmqHandler > rabbitmq ;
51
55
52
56
@ Getter
53
57
@ Autowired
54
- private List <MongoDBHandler > mongodb ;
58
+ private List <MongoDbValues > mongodb ;
55
59
56
60
@ Getter
57
61
@ Autowired
@@ -60,7 +64,15 @@ public class ParseInstanceInfoEI {
60
64
@ Getter
61
65
@ Autowired
62
66
private List <SendMail > email ;
67
+
68
+ @ Getter
69
+ @ Autowired
70
+ private List <MailServerValues > mailServerValues ;
63
71
72
+ @ Getter
73
+ @ Autowired
74
+ private LdapValues ldap ;
75
+
64
76
@ Getter
65
77
@ Autowired
66
78
private List <WaitListStorageHandler > waitList ;
@@ -80,6 +92,72 @@ public class ParseInstanceInfoEI {
80
92
@ Getter
81
93
@ Autowired
82
94
private ERQueryService erUrl ;
95
+
96
+ public ParseInstanceInfoEI (){
97
+ }
98
+
99
+ @ Component
100
+ private class MailServerValues {
101
+ @ Getter
102
+ @ Value ("${spring.mail.host}" )
103
+ private String host ;
104
+
105
+ @ Getter
106
+ @ Value ("${spring.mail.port}" )
107
+ private String port ;
108
+
109
+ @ Getter
110
+ @ Value ("${spring.mail.username}" )
111
+ private String username ;
112
+
113
+ @ Getter
114
+ @ Value ("${spring.mail.properties.mail.smtp.auth}" )
115
+ private String smtpAuth ;
116
+
117
+ @ Getter
118
+ @ Value ("${spring.mail.properties.mail.smtp.starttls.enable}" )
119
+ private String startTls ;
120
+ }
121
+
122
+ @ Component
123
+ private class MongoDbValues {
124
+ @ Getter
125
+ @ Value ("${spring.data.mongodb.host}" )
126
+ private String host ;
127
+
128
+ @ Getter
129
+ @ Value ("${spring.data.mongodb.port}" )
130
+ private String port ;
131
+
132
+ @ Getter
133
+ @ Value ("${spring.data.mongodb.database}" )
134
+ private String database ;
135
+ }
136
+
137
+ @ Component
138
+ private class LdapValues {
139
+ @ Getter
140
+ @ Value ("${ldap.enabled}" )
141
+ private String enabled ;
142
+
143
+ @ Getter
144
+ @ Value ("${ldap.url}" )
145
+ private String url ;
146
+
147
+ @ Getter
148
+ @ Value ("${ldap.base.dn}" )
149
+ private String baseDn ;
150
+
151
+ @ Getter
152
+ @ Value ("${ldap.user.filter}" )
153
+ private String filter ;
154
+
155
+ @ Getter
156
+ @ Value ("${ldap.username}" )
157
+ private String username ;
158
+ }
159
+
160
+
83
161
84
162
@ Component
85
163
private class ThreadsValue {
0 commit comments