Class EditPermissionsComponent
- java.lang.Object
-
- com.atlassian.bamboo.pageobjects.components.permissions.EditPermissionsComponent
-
public class EditPermissionsComponent extends Object
Component for configuring permissions. To be used on pages which use the asynchronous permissions configuration widget.- See Also:
AbstractPermissionsPage
-
-
Constructor Summary
Constructors Constructor Description EditPermissionsComponent(com.atlassian.pageobjects.elements.PageElement container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAddingPrincipalsEnabled()Whether adding new principals is possible for this component.booleanisFilteringEnabled()Whether filtering is possible for this component.EditPermissionsComponentsetFilterText(String filter, Predicate<PermissionsTableComponent> changePredicate)Filter permissions table by the specifiedfilter.voidwaitForInitialization()EditPermissionsComponentwithAddPrincipalsForm(Consumer<AddPermissionPrincipalsComponent> consumer)Perform assertions or modifications on the form to add new principals.EditPermissionsComponentwithPermissionsTable(Consumer<PermissionsTableComponent> consumer)Perform assertions or modifications on the table of permissions.
-
-
-
Method Detail
-
waitForInitialization
public void waitForInitialization()
-
setFilterText
public EditPermissionsComponent setFilterText(String filter, Predicate<PermissionsTableComponent> changePredicate)
Filter permissions table by the specifiedfilter. Set to empty to remove filtering.- Parameters:
changePredicate- a predicate which will indicate that the filtering got successfully applied to the table
-
isFilteringEnabled
public boolean isFilteringEnabled()
Whether filtering is possible for this component.
-
withAddPrincipalsForm
public EditPermissionsComponent withAddPrincipalsForm(Consumer<AddPermissionPrincipalsComponent> consumer)
Perform assertions or modifications on the form to add new principals.
-
isAddingPrincipalsEnabled
public boolean isAddingPrincipalsEnabled()
Whether adding new principals is possible for this component.
-
withPermissionsTable
public EditPermissionsComponent withPermissionsTable(Consumer<PermissionsTableComponent> consumer)
Perform assertions or modifications on the table of permissions.
-
-