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: e32dd9eb83e9b902f46351b5661e34516e637d9b $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEditRightsPane.RightThe known access rights.static classEditRightsPane.StateThe 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 voidclickGuestRight(String rightName)Click once on a right button for guest user, waiting for the next state to appear.voidclickGuestRight(EditRightsPane.Right right)voidclickRight(String entityName, String rightName)Click once on a right button, waiting for the next state to appear.voidclickRight(String entityName, EditRightsPane.Right right)Click once on a right button, waiting for the next state to appear.EditRightsPane.StategetGuestRight(String rightName)Allow to get the state of the given right for guest user.EditRightsPane.StategetGuestRight(EditRightsPane.Right right)EditRightsPane.StategetRight(String entityName, String rightName)Allow to get the state of the given right for the given entityName.EditRightsPane.StategetRight(String entityName, EditRightsPane.Right right)LiveTableElementgetRightsTable()StringgetURL(String space, String page)booleanhasEntity(String entityName)voidsetGuestRight(EditRightsPane.Right right, EditRightsPane.State wantedState)Click on a right button until it gets in the wanted state.voidsetRight(String entityName, EditRightsPane.Right right, EditRightsPane.State wantedState)Click on a right button until it gets in the wanted state.voidswitchToGroups()voidswitchToUsers()-
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()
-
-