public class EditRightsPane extends BaseElement
Modifier and Type | Class and Description |
---|---|
static class |
EditRightsPane.Right
The known access rights.
|
static class |
EditRightsPane.State
The possible states of an access right box.
|
Constructor and Description |
---|
EditRightsPane() |
Modifier and Type | Method and Description |
---|---|
void |
clickGuestRight(EditRightsPane.Right right) |
void |
clickGuestRight(String rightName)
Click once on a right button for guest user, waiting for the next state to appear.
|
void |
clickRight(String entityName,
EditRightsPane.Right right)
Click once on a right button, waiting for the next state to appear.
|
void |
clickRight(String entityName,
String rightName)
Click once on a right button, waiting for the next state to appear.
|
EditRightsPane.State |
getGuestRight(EditRightsPane.Right right) |
EditRightsPane.State |
getGuestRight(String rightName)
Allow to get the state of the given right for guest user.
|
EditRightsPane.State |
getRight(String entityName,
EditRightsPane.Right right) |
EditRightsPane.State |
getRight(String entityName,
String rightName)
Allow to get the state of the given right for the given entityName.
|
LiveTableElement |
getRightsTable() |
String |
getURL(String space,
String page) |
boolean |
hasEntity(String entityName) |
void |
setGuestRight(EditRightsPane.Right right,
EditRightsPane.State wantedState)
Click on a right button until it gets in the wanted state.
|
void |
setRight(String entityName,
EditRightsPane.Right right,
EditRightsPane.State wantedState)
Click on a right button until it gets in the wanted state.
|
void |
switchToGroups() |
void |
switchToUsers() |
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public void switchToUsers()
public void switchToGroups()
public EditRightsPane.State getGuestRight(EditRightsPane.Right right)
public EditRightsPane.State getGuestRight(String rightName)
rightName
- the actual name of the right displayed in the header of the column.public EditRightsPane.State getRight(String entityName, EditRightsPane.Right right)
public EditRightsPane.State getRight(String entityName, String rightName)
entityName
- name of the entity for which to get the right state.rightName
- the actual name of the right displayed in the header of the column.public boolean hasEntity(String entityName)
public void clickGuestRight(EditRightsPane.Right right)
public void clickGuestRight(String rightName)
rightName
- the actual name of the right displayed in the header of the column.public void clickRight(String entityName, EditRightsPane.Right right)
entityName
- the target user or group nameright
- the target rightpublic void clickRight(String entityName, String rightName)
entityName
- the target user or group namerightName
- the actual name of the right displayed in the header of the column.public void setRight(String entityName, EditRightsPane.Right right, EditRightsPane.State wantedState)
entityName
- the target user or group nameright
- the target rightwantedState
- the wanted state for the rightpublic void setGuestRight(EditRightsPane.Right right, EditRightsPane.State wantedState)
right
- the target rightwantedState
- the wanted state for the rightpublic LiveTableElement getRightsTable()
Copyright © 2004–2021 XWiki. All rights reserved.