Class UserNotificationsAPI
java.lang.Object
it.uniroma2.art.semanticturkey.user.notification.UserNotificationsAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclearNotifications(STUser user) booleanclearNotifications(STUser user, Project project) protected Stringvoidstatic UserNotificationsAPIbooleanremoveUser(STUser user) retrieveNotifications(STUser user) retrieveNotifications(STUser user, Project project) booleanstoreNotification(STUser user, Project project, org.eclipse.rdf4j.model.Resource resource, RDFResourceRole role, NotificationPreferencesAPI.Action action)
-
Constructor Details
-
UserNotificationsAPI
public UserNotificationsAPI()
-
-
Method Details
-
getInstance
-
retrieveNotifications
- Throws:
IOException
-
retrieveNotifications
public List<NotificationRecord> retrieveNotifications(STUser user, Project project) throws IOException - Throws:
IOException
-
clearNotifications
- Throws:
IOExceptionInterruptedException
-
clearNotifications
public boolean clearNotifications(STUser user, Project project) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
storeNotification
public boolean storeNotification(STUser user, Project project, org.eclipse.rdf4j.model.Resource resource, RDFResourceRole role, NotificationPreferencesAPI.Action action) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
removeUser
- Throws:
IOExceptionInterruptedException
-
deleteIndex
- Throws:
IOException
-
currentTime
- Throws:
org.eclipse.rdf4j.sail.SailException
-