Project

General

Profile

« Previous | Next » 

Revision 60810

[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.

View differences:

NotificationController.java
22 22
    @Autowired
23 23
    private AuthorizationService authorizationService;
24 24

  
25
    @PreAuthorize("hasAuthority(@AuthorizationService.REGISTERED_USER)")
25
    @PreAuthorize("hasAuthority(@AuthorizationService.PORTAL_ADMIN)")
26 26
    @RequestMapping(value = {"/all"}, method = RequestMethod.GET)
27 27
    public List<Notification> getAllNotifications() {
28 28
        return notificationService.getAllNotifications();

Also available in: Unified diff