Package org.xwiki.test.ui.po
Class EditRightsPane
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.EditRightsPane
-
- Direct Known Subclasses:
RightsEditPage
public class EditRightsPane extends BaseElement
Class that holds the types of Rights and the types of States of a check-box- Since:
- 3.2M3
- Version:
- $Id: fecaf52015ba62a4e828756a7f3d8c8c80ae4c8d $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EditRightsPane.Right
The known access rights.static class
EditRightsPane.State
The possible states of an access right box.
-
Constructor Summary
Constructors Constructor Description EditRightsPane()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clickGuestRight(String rightName)
Click once on a right button for guest user, waiting for the next state to appear.void
clickGuestRight(EditRightsPane.Right right)
void
clickRight(String entityName, String rightName)
Click once on a right button, 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.EditRightsPane.State
getGuestRight(String rightName)
Allow to get the state of the given right for guest user.EditRightsPane.State
getGuestRight(EditRightsPane.Right right)
EditRightsPane.State
getRight(String entityName, String rightName)
Allow to get the state of the given right for the given entityName.EditRightsPane.State
getRight(String entityName, EditRightsPane.Right right)
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()
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
switchToUsers
public void switchToUsers()
-
switchToGroups
public void switchToGroups()
-
getGuestRight
public EditRightsPane.State getGuestRight(EditRightsPane.Right right)
-
getGuestRight
public EditRightsPane.State getGuestRight(String rightName)
Allow to get the state of the given right for guest user.- Parameters:
rightName
- the actual name of the right displayed in the header of the column.- Returns:
- the state for this given right.
- Since:
- 13.6RC1
-
getRight
public EditRightsPane.State getRight(String entityName, EditRightsPane.Right right)
-
getRight
public EditRightsPane.State getRight(String entityName, String rightName)
Allow to get the state of the given right for the given entityName.- Parameters:
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.- Returns:
- the state for this given right.
- Since:
- 13.6RC1
-
hasEntity
public boolean hasEntity(String entityName)
-
clickGuestRight
public void clickGuestRight(EditRightsPane.Right right)
-
clickGuestRight
public void clickGuestRight(String rightName)
Click once on a right button for guest user, waiting for the next state to appear.- Parameters:
rightName
- the actual name of the right displayed in the header of the column.- Since:
- 13.6RC1
-
clickRight
public void clickRight(String entityName, EditRightsPane.Right right)
Click once on a right button, waiting for the next state to appear.- Parameters:
entityName
- the target user or group nameright
- the target right
-
clickRight
public void clickRight(String entityName, String rightName)
Click once on a right button, waiting for the next state to appear.- Parameters:
entityName
- the target user or group namerightName
- the actual name of the right displayed in the header of the column.- Since:
- 13.6RC1
-
setRight
public void setRight(String entityName, EditRightsPane.Right right, EditRightsPane.State wantedState)
Click on a right button until it gets in the wanted state.- Parameters:
entityName
- the target user or group nameright
- the target rightwantedState
- the wanted state for the right
-
setGuestRight
public void setGuestRight(EditRightsPane.Right right, EditRightsPane.State wantedState)
Click on a right button until it gets in the wanted state.- Parameters:
right
- the target rightwantedState
- the wanted state for the right
-
getRightsTable
public LiveTableElement getRightsTable()
-
-