Class NotificationFilterPreference


  • @Deprecated
    public class NotificationFilterPreference
    extends Object
    Deprecated.
    Since 13.2RC1: this page object is related to the usage of the deprecated XWiki macro NotificationsFiltersPreferences which was mixing system filters and custom filters. You should now use either CustomNotificationFilterPreference or SystemNotificationFilterPreference.
    Represent a livetable row describing a notification filter preference.
    Since:
    10.8RC1, 9.11.8
    Version:
    $Id: df49f65ee77d0fd0ce4eed7d3024ba1018f6ac23 $
    • Constructor Detail

      • NotificationFilterPreference

        public NotificationFilterPreference​(AbstractNotificationsSettingsPage parentPage,
                                            org.openqa.selenium.WebElement webElement,
                                            XWikiWebDriver driver)
        Deprecated.
        Construct a NotificationFilterPreference.
        Parameters:
        parentPage - the user profile's page holding the livetable.
        webElement - the livetable row
        driver - the current webdriver in used
    • Method Detail

      • getFilterName

        public String getFilterName()
        Deprecated.
        Returns:
        the name of the filter
      • getFilterType

        public String getFilterType()
        Deprecated.
        Returns:
        the type of the filter
      • getEventTypes

        public List<String> getEventTypes()
        Deprecated.
        Returns:
        the event types concerned by the filters (empty means "all").
      • getFormats

        public List<String> getFormats()
        Deprecated.
        Returns:
        the formats concerned by the filter
      • isEnabled

        public boolean isEnabled()
        Deprecated.
        Returns:
        either or not the preference is enabled
      • setEnabled

        public void setEnabled​(boolean enabled)
                        throws Exception
        Deprecated.
        Enable or disable the current filter.
        Parameters:
        enabled - either or not the filter must be enabled
        Throws:
        Exception - if the expected state cannot be set
      • getLocation

        public String getLocation()
        Deprecated.
        Returns:
        the watched location if the current filter is a ScopeNotificationFilter.
      • delete

        public void delete()
        Deprecated.
        Delete the filter preference.
      • getID

        public String getID()
        Deprecated.
        Returns:
        the ID of the filter.
        Since:
        12.4