Package org.xwiki.notifications.filters
Interface NotificationFilterDisplayer
-
@Role public interface NotificationFilterDisplayerThis interface can be used to display a given notification filter with a corresponding preference.- Since:
- 9.7RC1
- Version:
- $Id: 899666cdc6463a26dea95915d43b97ad6eccd1f2 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.xwiki.rendering.block.Blockdisplay(NotificationFilter filter, NotificationFilterPreference preference)Using the givenNotificationFilterand an associatedNotificationFilterPreference, display the filter.Set<String>getSupportedFilters()
-
-
-
Method Detail
-
display
org.xwiki.rendering.block.Block display(NotificationFilter filter, NotificationFilterPreference preference) throws NotificationException
Using the givenNotificationFilterand an associatedNotificationFilterPreference, display the filter.- Parameters:
filter- the filter that should be displayedpreference- the preferences that should be used for rendering the block- Returns:
- the rendered form of the given filter
- Throws:
NotificationException- if error occurs
-
getSupportedFilters
Set<String> getSupportedFilters()
- Returns:
- a set of
NotificationFilternames that are supported by the displayer.
-
-