Revision 60810
Added by Konstantina Galouni about 3 years ago
NotificationConfiguration.java | ||
---|---|---|
6 | 6 |
import org.springframework.scheduling.annotation.EnableScheduling; |
7 | 7 |
|
8 | 8 |
@Configuration |
9 |
@PropertySources({ |
|
10 |
@PropertySource("classpath:notification.properties"), |
|
11 |
@PropertySource(value = "classpath:dnet-override.properties", ignoreResourceNotFound = true) |
|
12 |
}) |
|
9 |
//@PropertySources({
|
|
10 |
// @PropertySource("classpath:notification.properties"),
|
|
11 |
// @PropertySource(value = "classpath:dnet-override.properties", ignoreResourceNotFound = true)
|
|
12 |
//})
|
|
13 | 13 |
@EnableConfigurationProperties({MongoConfig.class}) |
14 | 14 |
@EnableScheduling |
15 | 15 |
@ComponentScan(basePackages = { "eu.dnetlib.uoanotificationservice"}) |
Also available in: Unified diff
[Trunk | Notificaton Service]:
1. NotificationConfiguration.java: [Bug fix] Commented @PropertySources (a library service should not set properties locally, but parent service is responsible for that).
2. NotificationController.java: For method "getAllNotifications()" (/all), set @PreAuthorize to PORTAL_ADMIN (instead of REGISTERED_USER) (used for testing).
3. NotificationService.java: Comment @Scheduled(cron = "0 0 0 1/1 * ?") method "deleteNotifications()" and never delete old notifications.
4. notification.properties: Commented properties - set in dnet-override.properties file.