Class NotificationPreferencesAPI
java.lang.Object
it.uniroma2.art.semanticturkey.user.notification.NotificationPreferencesAPI
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addToUser
(STUser user, Project project, RDFResourceRole role, NotificationPreferencesAPI.Action action) void
addToUser
(STUser user, Project project, Map<RDFResourceRole, List<NotificationPreferencesAPI.Action>> preferences) boolean
void
static NotificationPreferencesAPI
getRoleActionsNotificationPreferences
(Project project, STUser user) List<org.eclipse.rdf4j.model.Resource>
listResourcesFromUserInProject
(Project project, STUser user) Returns the resources that a user is watching in a project.boolean
removeProjResFromUser
(STUser user, Project project, org.eclipse.rdf4j.model.Resource resource) boolean
removeProjRoleActionFromUser
(STUser user, Project project, RDFResourceRole role, NotificationPreferencesAPI.Action action) boolean
removeUser
(STUser user) searchUserFromProjRes
(Project project, org.eclipse.rdf4j.model.Resource resource) searchUserFromProjRoleAction
(Project project, RDFResourceRole role, NotificationPreferencesAPI.Action action)
-
Field Details
-
availableRoles
-
-
Constructor Details
-
NotificationPreferencesAPI
public NotificationPreferencesAPI()
-
-
Method Details
-
getInstance
-
listResourcesFromUserInProject
public List<org.eclipse.rdf4j.model.Resource> listResourcesFromUserInProject(Project project, STUser user) throws IOException Returns the resources that a user is watching in a project.- Parameters:
project
-user
-- Returns:
- Throws:
IOException
-
getRoleActionsNotificationPreferences
public Map<RDFResourceRole,List<NotificationPreferencesAPI.Action>> getRoleActionsNotificationPreferences(Project project, STUser user) throws IOException - Throws:
IOException
-
searchUserFromProjRes
public List<String> searchUserFromProjRes(Project project, org.eclipse.rdf4j.model.Resource resource) throws IOException - Throws:
IOException
-
searchUserFromProjRoleAction
public List<String> searchUserFromProjRoleAction(Project project, RDFResourceRole role, NotificationPreferencesAPI.Action action) throws IOException - Throws:
IOException
-
addToUser
public boolean addToUser(STUser user, Project project, org.eclipse.rdf4j.model.Resource resource) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
addToUser
public boolean addToUser(STUser user, Project project, RDFResourceRole role, NotificationPreferencesAPI.Action action) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
addToUser
public void addToUser(STUser user, Project project, Map<RDFResourceRole, List<NotificationPreferencesAPI.Action>> preferences) throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
removeUser
- Throws:
IOException
InterruptedException
-
removeProjResFromUser
public boolean removeProjResFromUser(STUser user, Project project, org.eclipse.rdf4j.model.Resource resource) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
removeProjRoleActionFromUser
public boolean removeProjRoleActionFromUser(STUser user, Project project, RDFResourceRole role, NotificationPreferencesAPI.Action action) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
deleteIndex
- Throws:
IOException
-