Class NotificationsController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.NotificationsController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class NotificationsController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
org.springframework.http.HttpEntity<Response<Collection<String>>>
org.springframework.http.HttpEntity<Response<Map<RDFResourceRole,
List<NotificationPreferencesAPI.Action>>>> isWatchingPublished
(org.eclipse.rdf4j.model.Resource resource) org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>>
org.springframework.http.HttpEntity<String>
void
setApplicationContext
(org.springframework.context.ApplicationContext arg0) org.springframework.http.HttpEntity<String>
startWatchingPublished
(org.eclipse.rdf4j.model.Resource resource) org.springframework.http.HttpEntity<String>
stopWatchingPublished
(org.eclipse.rdf4j.model.Resource resource) org.springframework.http.HttpEntity<String>
storeNotificationPreferencesPublished
(Map<RDFResourceRole, List<NotificationPreferencesAPI.Action>> preferences) org.springframework.http.HttpEntity<String>
updateNotificationPreferencesPublished
(RDFResourceRole role, NotificationPreferencesAPI.Action action, boolean status)
-
Constructor Details
-
NotificationsController
public NotificationsController()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getServiceSpecies
- Specified by:
getServiceSpecies
in interfaceIntrospectableController
-
getService
- Specified by:
getService
in interfaceIntrospectableController
-
scheduleNotificationDigestPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Notifications/scheduleNotificationDigest", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> scheduleNotificationDigestPublished(@RequestParam(value="schedule",required=false) @JsonSerialized NotificationSystemSettings.CronDefinition schedule) throws STPropertyUpdateException - Throws:
STPropertyUpdateException
-
clearNotificationsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Notifications/clearNotifications", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> clearNotificationsPublished() throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
startWatchingPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Notifications/startWatching", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> startWatchingPublished(@RequestParam("resource") org.eclipse.rdf4j.model.Resource resource) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
listWatchingPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Notifications/listWatching", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<List<org.eclipse.rdf4j.model.Resource>>> listWatchingPublished() throws IOException- Throws:
IOException
-
listNotificationsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Notifications/listNotifications", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<com.fasterxml.jackson.databind.JsonNode>> listNotificationsPublished() throws IOException- Throws:
IOException
-
getAvailableTimeZoneIdsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Notifications/getAvailableTimeZoneIds", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<String>>> getAvailableTimeZoneIdsPublished() -
stopWatchingPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Notifications/stopWatching", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> stopWatchingPublished(@RequestParam("resource") org.eclipse.rdf4j.model.Resource resource) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
updateNotificationPreferencesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Notifications/updateNotificationPreferences", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> updateNotificationPreferencesPublished(@RequestParam("role") RDFResourceRole role, @RequestParam("action") NotificationPreferencesAPI.Action action, @RequestParam("status") boolean status) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
isWatchingPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Notifications/isWatching", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Boolean>> isWatchingPublished(@RequestParam("resource") org.eclipse.rdf4j.model.Resource resource) throws IOException - Throws:
IOException
-
storeNotificationPreferencesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Notifications/storeNotificationPreferences", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> storeNotificationPreferencesPublished(@RequestParam("preferences") @JsonSerialized Map<RDFResourceRole, List<NotificationPreferencesAPI.Action>> preferences) throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
getNotificationPreferencesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Notifications/getNotificationPreferences", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Map<RDFResourceRole,List<NotificationPreferencesAPI.Action>>>> getNotificationPreferencesPublished() throws IOException- Throws:
IOException
-