Class PermissionsTableComponent
java.lang.Object
com.atlassian.bamboo.pageobjects.components.permissions.PermissionsTableComponent
Component for performing operations on permissions table. Part of
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
.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A sub-component for a single row of permissions table. -
Constructor Summary
ConstructorDescriptionPermissionsTableComponent
(com.atlassian.pageobjects.elements.PageElement container) -
Method Summary
Modifier and TypeMethodDescriptionawaitAllOperationsCompletion
(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.Returns a list of all permissions in this table.Returns a list of all principals which have permissions granted.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.removePrincipal
(String principal) Remove a principal and all it's associated permissions from the table.revokePermission
(String principal, String permission) Revoke a permission from the given principal.
-
Constructor Details
-
PermissionsTableComponent
public PermissionsTableComponent(com.atlassian.pageobjects.elements.PageElement container)
-
-
Method Details
-
grantPermission
Grant a permission to the given principal. To await operation completion, subsequently callawaitAllOperationsCompletion(String)
. -
revokePermission
Revoke a permission from the given principal. To await operation completion, subsequently callawaitAllOperationsCompletion(String)
. -
awaitAllOperationsCompletion
Waits for all operations (permissions being granted or revoked) to complete for the given principal. -
canChangePermission
Whether the given permission can be changed for the given principal. -
removePrincipal
Remove a principal and all it's associated permissions from the table. -
hasPermission
Check whether the given principal has a permission. -
getPrincipals
Returns a list of all principals which have permissions granted. -
getListedPermissions
Returns a list of all permissions in this table. Note that some listed permissions may not be editable for various principals or for specific users. For example, anonymous role can't be granted ADMIN permission, and restricted administrator can't grant or revoke global administrative permission.
-