public class AddPermissionPrincipalsComponent extends Object
EditPermissionsComponent
, shouldn't be bound
manually.EditPermissionsComponent
Modifier and Type | Class and Description |
---|---|
static class |
AddPermissionPrincipalsComponent.SelectedRightsDropdownMenu
A variant of dropdown2 menu for selecting rights for new principals.
|
Constructor and Description |
---|
AddPermissionPrincipalsComponent(com.atlassian.pageobjects.elements.PageElement container) |
Modifier and Type | Method and Description |
---|---|
AddPermissionPrincipalsComponent |
add()
Finalize adding permissions to new principals.
|
List<String> |
getSelectableRights()
Return a list of rights which can be granted to the chosen principals.
|
AddPermissionPrincipalsComponent |
setPrincipal(String principal)
Add the given principal to the list of new principals to add.
|
AddPermissionPrincipalsComponent |
setSelectedRights(List<String> selectedRights)
Select rights to grant to the chosen principals.
|
AddPermissionPrincipalsComponent |
setSelectedRights(String... selectedRights)
Select rights to grant to the chosen principals.
|
public AddPermissionPrincipalsComponent(com.atlassian.pageobjects.elements.PageElement container)
public AddPermissionPrincipalsComponent setPrincipal(String principal)
public AddPermissionPrincipalsComponent setSelectedRights(String... selectedRights)
public AddPermissionPrincipalsComponent setSelectedRights(List<String> selectedRights)
public List<String> getSelectableRights()
public AddPermissionPrincipalsComponent add()
The add button will stay disabled until new principals and their rights are selected. So it is necessary to call
setPrincipal(String)
at least once, while also calling setSelectedRights(String...)
or
setSelectedRights(List)
with at least one access right, prior to executing this method.
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.