Class AbstractNotificationFilterPreference
- java.lang.Object
-
- org.xwiki.platform.notifications.test.po.preferences.filters.AbstractNotificationFilterPreference
-
- Direct Known Subclasses:
CustomNotificationFilterPreference
,SystemNotificationFilterPreference
@Unstable public abstract class AbstractNotificationFilterPreference extends Object
Abstract representation of the notification filter preferences which covers common needs forSystemNotificationFilterPreference
andCustomNotificationFilterPreference
.- Since:
- 13.2RC1
- Version:
- $Id: 2883b0e0b3e71c0f718c557707d1fb133cbad0a7 $
-
-
Constructor Summary
Constructors Constructor Description AbstractNotificationFilterPreference(AbstractNotificationsSettingsPage parentPage, org.openqa.selenium.WebElement row, XWikiWebDriver webDriver)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFilterName()
List<String>
getFormats()
org.openqa.selenium.WebElement
getLivetableRow()
AbstractNotificationsSettingsPage
getParentPage()
boolean
isEnabled()
void
setEnabled(boolean enabled)
Enable or disable the current filter.
-
-
-
Constructor Detail
-
AbstractNotificationFilterPreference
public AbstractNotificationFilterPreference(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
-
getFilterName
public String getFilterName()
- Returns:
- the filter name.
-
getParentPage
public AbstractNotificationsSettingsPage getParentPage()
- Returns:
- the parent page where the settings are displayed.
-
getLivetableRow
public org.openqa.selenium.WebElement getLivetableRow()
- Returns:
- the livetable row.
-
isEnabled
public boolean isEnabled()
- Returns:
- either or not the preference is enabled
-
-