public interface WatchedEntityReference
Modifier and Type | Method and Description |
---|---|
NotificationFilterPreference |
createExclusiveFilterPreference()
Create a notification filter preference to watch this entity.
|
NotificationFilterPreference |
createInclusiveFilterPreference()
Create a notification filter preference to watch this entity.
|
boolean |
isWatched(org.xwiki.model.reference.DocumentReference userReference) |
default boolean |
isWatchedWithAllEventTypes(org.xwiki.model.reference.DocumentReference userReference) |
boolean |
matchExactly(NotificationFilterPreference notificationFilterPreference) |
boolean isWatched(org.xwiki.model.reference.DocumentReference userReference) throws org.xwiki.notifications.NotificationException
userReference
- a usertrue
if the given user watch the current entity reference for any event type or format.org.xwiki.notifications.NotificationException
- if an error happens@Unstable default boolean isWatchedWithAllEventTypes(org.xwiki.model.reference.DocumentReference userReference) throws org.xwiki.notifications.NotificationException
userReference
- a usertrue
if the given user watch the current entity reference for all events.org.xwiki.notifications.NotificationException
- if an error happensboolean matchExactly(NotificationFilterPreference notificationFilterPreference)
notificationFilterPreference
- a filter preferenceNotificationFilterPreference createInclusiveFilterPreference()
NotificationFilterPreference createExclusiveFilterPreference()
Copyright © 2004–2022 XWiki. All rights reserved.