@Role
public interface WatchedEntitiesManager
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getWatchedUsers(org.xwiki.model.reference.DocumentReference user) |
void |
unwatchEntity(WatchedEntityReference entity,
org.xwiki.model.reference.DocumentReference user)
Remove a filter to stop watching the specified entity.
|
void |
watchEntity(WatchedEntityReference entity,
org.xwiki.model.reference.DocumentReference user)
Add a filter to watch the specified entity.
|
void watchEntity(WatchedEntityReference entity, org.xwiki.model.reference.DocumentReference user) throws org.xwiki.notifications.NotificationException
entity
- the entity to watchuser
- user that will watch the entityorg.xwiki.notifications.NotificationException
- if an error happensvoid unwatchEntity(WatchedEntityReference entity, org.xwiki.model.reference.DocumentReference user) throws org.xwiki.notifications.NotificationException
entity
- the entity to watchuser
- user that will watch the entityorg.xwiki.notifications.NotificationException
- if an error happensCollection<String> getWatchedUsers(org.xwiki.model.reference.DocumentReference user) throws org.xwiki.notifications.NotificationException
user
- user for who we want to know the watched usersorg.xwiki.notifications.NotificationException
- if an error happensCopyright © 2004–2022 XWiki. All rights reserved.