public class PermissionsTableComponent extends Object
EditPermissionsComponent
, shouldn't be
bound manually.
Methods from this component should be chained, because often mutative calls require re-binding of all
elements. Subsequent calls to the same instance of the component are prone to StaleElementReferenceException
.
EditPermissionsComponent
Modifier and Type | Class and Description |
---|---|
static class |
PermissionsTableComponent.PermissionsTableRowComponent
A sub-component for a single row of permissions table.
|
Constructor and Description |
---|
PermissionsTableComponent(com.atlassian.pageobjects.elements.PageElement container) |
Modifier and Type | Method and Description |
---|---|
PermissionsTableComponent |
awaitAllOperationsCompletion(String principal)
Waits for all operations (permissions being granted or revoked) to complete for the given principal.
|
boolean |
canChangePermission(String principal,
String permission)
Whether the given permission can be changed for the given principal.
|
List<String> |
getListedPermissions()
Returns a list of all permissions in this table.
|
List<String> |
getPrincipals()
Returns a list of all principals which have permissions granted.
|
PermissionsTableComponent |
grantPermission(String principal,
String permission)
Grant a permission to the given principal.
|
boolean |
hasPermission(String principal,
String permission)
Check whether the given principal has a permission.
|
PermissionsTableComponent |
removePrincipal(String principal)
Remove a principal and all it's associated permissions from the table.
|
PermissionsTableComponent |
revokePermission(String principal,
String permission)
Revoke a permission from the given principal.
|
public PermissionsTableComponent(com.atlassian.pageobjects.elements.PageElement container)
public PermissionsTableComponent grantPermission(String principal, String permission)
awaitAllOperationsCompletion(String)
.public PermissionsTableComponent revokePermission(String principal, String permission)
awaitAllOperationsCompletion(String)
.public PermissionsTableComponent awaitAllOperationsCompletion(String principal)
public boolean canChangePermission(String principal, String permission)
public PermissionsTableComponent removePrincipal(String principal)
public boolean hasPermission(String principal, String permission)
public List<String> getPrincipals()
public List<String> getListedPermissions()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.