/** * Get a displayable form of the given {@link NotificationFilterPreference}. * * @param filter the filter bound to the given preference * @param preference the filter preference to display * @return a {@link Block} that can be used to display the given notification filter * @throws NotificationException if an error occurs * * @since 9.8RC1 */ public Block displayFilterPreference(NotificationFilter filter, NotificationFilterPreference preference) throws NotificationException { return notificationFilterManager.displayFilter(filter, preference); }
/** * Get a set of notification filters that can be toggled by the current user. * * @return a set of notification filters that are toggleable * @throws NotificationException if an error occurs */ public Set<NotificationFilter> getToggleableNotificationFilters() throws NotificationException { return notificationFilterManager.getToggleableFilters( notificationFilterManager.getAllFilters(documentAccessBridge.getCurrentUserReference(), false)).collect( Collectors.toSet()); }
/** * @return a collection of every {@link NotificationFilter} available to the current user. * @throws NotificationException if an error happens * * @since 9.8RC1 */ public Collection<NotificationFilter> getFilters() throws NotificationException { return notificationFilterManager.getAllFilters(documentAccessBridge.getCurrentUserReference(), false); }