Class CustomNotificationFilterPreference
- java.lang.Object
-
- org.xwiki.platform.notifications.test.po.preferences.filters.AbstractNotificationFilterPreference
-
- org.xwiki.platform.notifications.test.po.preferences.filters.CustomNotificationFilterPreference
-
@Unstable public class CustomNotificationFilterPreference extends AbstractNotificationFilterPreference
Represents a custom notification filter: i.e. a scope notification filter created by the user or through the watch settings.- Since:
- 13.2RC1
- Version:
- $Id: fa35136dbfa43aeab0c703f2c1b9fbffef0ffc28 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CustomNotificationFilterPreference.FilterAction
Represents the possible actions for such filter.
-
Constructor Summary
Constructors Constructor Description CustomNotificationFilterPreference(AbstractNotificationsSettingsPage parentPage, org.openqa.selenium.WebElement row, XWikiWebDriver webDriver)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
Delete the filter preference.List<String>
getEventTypes()
CustomNotificationFilterPreference.FilterAction
getFilterAction()
String
getLocation()
-
Methods inherited from class org.xwiki.platform.notifications.test.po.preferences.filters.AbstractNotificationFilterPreference
getFilterName, getFormats, getLivetableRow, getParentPage, isEnabled, setEnabled
-
-
-
-
Constructor Detail
-
CustomNotificationFilterPreference
public CustomNotificationFilterPreference(AbstractNotificationsSettingsPage parentPage, org.openqa.selenium.WebElement row, XWikiWebDriver webDriver)
Default constructor.- Parameters:
parentPage
- the page where the settings are displayed.row
- the row of the livetable for this filter.webDriver
- the webdriver to initialize the switches.
-
-
Method Detail
-
getEventTypes
public List<String> getEventTypes()
- Returns:
- the event types or an empty list in case of all events.
-
getLocation
public String getLocation()
- Returns:
- the watched location.
-
getFilterAction
public CustomNotificationFilterPreference.FilterAction getFilterAction()
- Returns:
- the action performed by the filter.
-
delete
public void delete()
Delete the filter preference.
-
-