Class 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 $
    • Constructor Detail

      • EditRightsPane

        public EditRightsPane()
    • Method Detail

      • switchToUsers

        public void switchToUsers()
      • switchToGroups

        public void switchToGroups()
      • 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,
                                             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​(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 name
        right - 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 name
        rightName - 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 name
        right - the target right
        wantedState - 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 right
        wantedState - the wanted state for the right