Class AddPermissionPrincipalsComponent
java.lang.Object
com.atlassian.bamboo.pageobjects.components.permissions.AddPermissionPrincipalsComponent
Component for adding permissions to new principals. Part of
EditPermissionsComponent
, shouldn't be bound
manually.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A variant of dropdown2 menu for selecting rights for new principals. -
Constructor Summary
ConstructorDescriptionAddPermissionPrincipalsComponent
(com.atlassian.pageobjects.elements.PageElement container) -
Method Summary
Modifier and TypeMethodDescriptionadd()
Finalize adding permissions to new principals.Return a list of rights which can be granted to the chosen principals.setPrincipal
(String principal) Add the given principal to the list of new principals to add.setSelectedRights
(String... selectedRights) Select rights to grant to the chosen principals.setSelectedRights
(List<String> selectedRights) Select rights to grant to the chosen principals.
-
Constructor Details
-
AddPermissionPrincipalsComponent
public AddPermissionPrincipalsComponent(com.atlassian.pageobjects.elements.PageElement container)
-
-
Method Details
-
setPrincipal
Add the given principal to the list of new principals to add. -
setSelectedRights
Select rights to grant to the chosen principals. -
setSelectedRights
Select rights to grant to the chosen principals. -
getSelectableRights
Return a list of rights which can be granted to the chosen principals. -
add
Finalize adding permissions to new principals.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 callingsetSelectedRights(String...)
orsetSelectedRights(List)
with at least one access right, prior to executing this method.
-