Skip to content

Commit d5139aa

Browse files
authored
Fixed EI Instance info issues and added some new EI Instance informations. (#116)
* Set Aggregated Rules RestApi to default enabled * Update application.properties * Fixed and issue in EI Instance info and added some missing EI Instance Information. * Removed duplication parameter in application.properties file. * Fixed indentations. * Removed passwords character from EI Instance Info object.
1 parent 2215468 commit d5139aa

File tree

2 files changed

+87
-6
lines changed

2 files changed

+87
-6
lines changed

src/main/java/com/ericsson/ei/controller/model/ParseInstanceInfoEI.java

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import com.ericsson.ei.erqueryservice.ERQueryService;
2020
import com.ericsson.ei.handlers.ObjectHandler;
21-
import com.ericsson.ei.mongodbhandler.MongoDBHandler;
2221
import com.ericsson.ei.rmqhandler.RmqHandler;
2322
import com.ericsson.ei.subscriptionhandler.InformSubscription;
2423
import com.ericsson.ei.subscriptionhandler.SendMail;
@@ -37,21 +36,26 @@
3736
*/
3837
@Component
3938
public class ParseInstanceInfoEI {
39+
4040
@Getter
4141
@Value("${spring.application.name}")
4242
private String applicationName;
4343

4444
@Getter
4545
@Value("${build.version}")
4646
private String version;
47+
48+
@Getter
49+
@Value("${testaggregated.enabled:false}")
50+
private String testRulesEnabled;
4751

4852
@Getter
4953
@Autowired
5054
private List<RmqHandler> rabbitmq;
5155

5256
@Getter
5357
@Autowired
54-
private List<MongoDBHandler> mongodb;
58+
private List<MongoDbValues> mongodb;
5559

5660
@Getter
5761
@Autowired
@@ -60,7 +64,15 @@ public class ParseInstanceInfoEI {
6064
@Getter
6165
@Autowired
6266
private List<SendMail> email;
67+
68+
@Getter
69+
@Autowired
70+
private List<MailServerValues> mailServerValues;
6371

72+
@Getter
73+
@Autowired
74+
private LdapValues ldap;
75+
6476
@Getter
6577
@Autowired
6678
private List<WaitListStorageHandler> waitList;
@@ -80,6 +92,72 @@ public class ParseInstanceInfoEI {
8092
@Getter
8193
@Autowired
8294
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+
83161

84162
@Component
85163
private class ThreadsValue {

src/main/resources/application.properties

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ waitlist.fixedRateResend: 15000
5353
subscription.collection.name: subscription
5454
subscription.collection.repeatFlagHandlerName: subscription_repeat_handler
5555

56+
# Need to be set to True to use Test Rules page in EI-Frontend.
57+
testaggregated.enabled: false
58+
5659
threads.corePoolSize: 100
5760
threads.queueCapacity: 5000
5861
threads.maxPoolSize: 150
@@ -67,14 +70,14 @@ notification.ttl.value: 600
6770

6871
spring.mail.host:
6972
spring.mail.port:
70-
#spring.mail.username:
71-
#spring.mail.password:
73+
spring.mail.username:
74+
spring.mail.password:
7275
spring.mail.properties.mail.smtp.auth: false
73-
#spring.mail.properties.mail.smtp.starttls.enable: false
76+
spring.mail.properties.mail.smtp.starttls.enable: false
7477

7578
er.url: http://localhost:8080/search/
7679

77-
ldap.enabled:false
80+
ldap.enabled: false
7881
ldap.url:
7982
ldap.base.dn:
8083
ldap.username:

0 commit comments

Comments
 (0)