Class ApplicationPreferences
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.platform.notifications.test.po.preferences.AbstractNotificationPreferences
-
- org.xwiki.platform.notifications.test.po.preferences.ApplicationPreferences
-
public class ApplicationPreferences extends AbstractNotificationPreferences
Wrap the notification preferences of a given application.- Since:
- 9.7RC1
- Version:
- $Id: b107126c31760dd597f134e0ed1672909869ad2d $
-
-
Field Summary
-
Fields inherited from class org.xwiki.platform.notifications.test.po.preferences.AbstractNotificationPreferences
alertSwitch, driver, emailSwitch, webElement
-
-
Constructor Summary
Constructors Constructor Description ApplicationPreferences(org.openqa.selenium.WebElement webElement, XWikiWebDriver driver)
Construct an ApplicationPreferences.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApplicationId()
String
getApplicationName()
Map<String,EventTypePreferences>
getEventTypePreferences()
protected BootstrapSwitch
getSwitch(String format)
boolean
isCollapsed()
void
setCollapsed(boolean wantedState)
Set if the application details should be collapsed (hidden).-
Methods inherited from class org.xwiki.platform.notifications.test.po.preferences.AbstractNotificationPreferences
getAlertState, getEmailState, setAlertState, setEmailState
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Constructor Detail
-
ApplicationPreferences
public ApplicationPreferences(org.openqa.selenium.WebElement webElement, XWikiWebDriver driver)
Construct an ApplicationPreferences.- Parameters:
webElement
- table body of the applicationdriver
- the web driver
-
-
Method Detail
-
getApplicationId
public String getApplicationId()
- Returns:
- the application id
-
getApplicationName
public String getApplicationName()
- Returns:
- the application name
-
isCollapsed
public boolean isCollapsed()
- Returns:
- if the application details are collapsed (hidden)
-
setCollapsed
public void setCollapsed(boolean wantedState)
Set if the application details should be collapsed (hidden).- Parameters:
wantedState
- expected state
-
getSwitch
protected BootstrapSwitch getSwitch(String format)
- Specified by:
getSwitch
in classAbstractNotificationPreferences
- Parameters:
format
- the format of the notification- Returns:
- the switch associated to the given format
-
getEventTypePreferences
public Map<String,EventTypePreferences> getEventTypePreferences()
- Returns:
- a map of preferences for each event type of the application
-
-