@RestController @CrossOrigin(origins="*") public class NotificationsController extends Object
| Constructor and Description |
|---|
NotificationsController() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteNotification(String pid) |
List<Notifications> |
getNotifications(String pid) |
Notifications |
getNotificationsForUser(String pid) |
Notifications |
saveNotification(String pid,
Notifications notifications) |
@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN)")
@RequestMapping(value="/community/{pid}/notifications/all",
method=GET)
public List<Notifications> getNotifications(@PathVariable(value="pid")
String pid)
throws eu.dnetlib.uoaadmintoolslibrary.handlers.ContentNotFoundException
eu.dnetlib.uoaadmintoolslibrary.handlers.ContentNotFoundException@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(\'community\'), @AuthorizationService.manager(\'community\', #pid))")
@RequestMapping(value="/community/{pid}/notifications",
method=GET)
public Notifications getNotificationsForUser(@PathVariable(value="pid")
String pid)
throws eu.dnetlib.uoaadmintoolslibrary.handlers.ContentNotFoundException
eu.dnetlib.uoaadmintoolslibrary.handlers.ContentNotFoundException@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(\'community\'), @AuthorizationService.manager(\'community\', #pid))")
@RequestMapping(value="/community/{pid}/notifications",
method=DELETE)
public void deleteNotification(@PathVariable(value="pid")
String pid)
throws eu.dnetlib.uoaadmintoolslibrary.handlers.ContentNotFoundException
eu.dnetlib.uoaadmintoolslibrary.handlers.ContentNotFoundException@PreAuthorize(value="hasAnyAuthority(@AuthorizationService.PORTAL_ADMIN, @AuthorizationService.curator(\'community\'), @AuthorizationService.manager(\'community\', #pid))")
@RequestMapping(value="/community/{pid}/notifications",
method=POST)
public Notifications saveNotification(@PathVariable(value="pid")
String pid,
@RequestBody
Notifications notifications)
throws eu.dnetlib.uoaadmintoolslibrary.handlers.ContentNotFoundException
eu.dnetlib.uoaadmintoolslibrary.handlers.ContentNotFoundExceptionCopyright © 2022. All rights reserved.