Revision 60602
Added by Konstantinos Triantafyllou about 3 years ago
NotificationController.java | ||
---|---|---|
13 | 13 |
|
14 | 14 |
@RestController |
15 | 15 |
@RequestMapping("/notification") |
16 |
@CrossOrigin(origins = "*")
|
|
16 |
@CrossOrigin(origins = "*") |
|
17 | 17 |
public class NotificationController { |
18 | 18 |
|
19 | 19 |
@Autowired |
... | ... | |
31 | 31 |
@PreAuthorize("hasAuthority(@AuthorizationService.REGISTERED_USER)") |
32 | 32 |
@RequestMapping(value = {"/{service}"}, method = RequestMethod.GET) |
33 | 33 |
public List<Notification> getMyNotifications(@PathVariable String service) { |
34 |
return notificationService.getMyNotifications(authorizationService.getAaiId(), service, authorizationService.getRoles()); |
|
34 |
return notificationService.getMyNotifications(authorizationService.getAaiId(), authorizationService.getEmail(), |
|
35 |
service, authorizationService.getRoles()); |
|
35 | 36 |
} |
36 | 37 |
|
37 | 38 |
@PreAuthorize("hasAuthority(@AuthorizationService.REGISTERED_USER)") |
Also available in: Unified diff
[Notificaton Service | Trunk]: Fix a bug user email on groups