@Role
public interface NotificationPreferenceProvider
Modifier and Type | Method and Description |
---|---|
List<NotificationPreference> |
getPreferencesForUser(org.xwiki.model.reference.DocumentReference user)
Get every registered
NotificationPreference for the given user. |
List<NotificationPreference> |
getPreferencesForWiki(org.xwiki.model.reference.WikiReference wiki)
Get every registered and/or inherited
NotificationPreference for the given wiki. |
int |
getProviderPriority()
Get the priority that the preferences given by this provider should have.
|
void |
savePreferences(List<NotificationPreference> preferences)
Save a given list of preferences.
|
int getProviderPriority()
List<NotificationPreference> getPreferencesForUser(org.xwiki.model.reference.DocumentReference user) throws NotificationException
NotificationPreference
for the given user.user
- the user for which to retrieve the notification preferencesNotificationException
- if an error happenedList<NotificationPreference> getPreferencesForWiki(org.xwiki.model.reference.WikiReference wiki) throws NotificationException
NotificationPreference
for the given wiki.wiki
- the wiki for which to retrieve the notification preferencesNotificationException
- if an error happenedvoid savePreferences(List<NotificationPreference> preferences) throws NotificationException
preferences
- the NotificationPreference
to saveNotificationException
- if an error occurredCopyright © 2004–2021 XWiki. All rights reserved.