Class NotificationFilterPreference
- java.lang.Object
-
- org.xwiki.platform.notifications.test.po.preferences.filters.NotificationFilterPreference
-
@Deprecated public class NotificationFilterPreference extends Object
Deprecated.Since 13.2RC1: this page object is related to the usage of the deprecated XWiki macroNotificationsFiltersPreferences
which was mixing system filters and custom filters. You should now use eitherCustomNotificationFilterPreference
orSystemNotificationFilterPreference
.Represent a livetable row describing a notification filter preference.- Since:
- 10.8RC1, 9.11.8
- Version:
- $Id: df49f65ee77d0fd0ce4eed7d3024ba1018f6ac23 $
-
-
Constructor Summary
Constructors Constructor Description NotificationFilterPreference(AbstractNotificationsSettingsPage parentPage, org.openqa.selenium.WebElement webElement, XWikiWebDriver driver)
Deprecated.Construct a NotificationFilterPreference.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
delete()
Deprecated.Delete the filter preference.List<String>
getEventTypes()
Deprecated.String
getFilterName()
Deprecated.String
getFilterType()
Deprecated.List<String>
getFormats()
Deprecated.String
getID()
Deprecated.String
getLocation()
Deprecated.boolean
isEnabled()
Deprecated.void
setEnabled(boolean enabled)
Deprecated.Enable or disable the current filter.String
toString()
Deprecated.
-
-
-
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 rowdriver
- 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
-
-