Class UserNotificationsAPI
java.lang.Object
it.uniroma2.art.semanticturkey.user.notification.UserNotificationsAPI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
clearNotifications
(STUser user) boolean
clearNotifications
(STUser user, Project project) protected String
void
static UserNotificationsAPI
boolean
removeUser
(STUser user) retrieveNotifications
(STUser user) retrieveNotifications
(STUser user, Project project) boolean
storeNotification
(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:
IOException
InterruptedException
-
clearNotifications
public boolean clearNotifications(STUser user, Project project) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
storeNotification
public boolean storeNotification(STUser user, Project project, org.eclipse.rdf4j.model.Resource resource, RDFResourceRole role, NotificationPreferencesAPI.Action action) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
removeUser
- Throws:
IOException
InterruptedException
-
deleteIndex
- Throws:
IOException
-
currentTime
- Throws:
org.eclipse.rdf4j.sail.SailException
-