@ExperimentalApi
public interface PlanPermissionsService
Modifier and Type | Method and Description |
---|---|
boolean |
addAnonymousPermissionsToPlan(@NotNull String planKey) |
boolean |
addGroupPermissionsToPlan(@NotNull String planKey,
@NotNull String groupName,
@NotNull List<BambooPermission> permissionsToAdd) |
boolean |
addLoggedInPermissionsToPlan(@NotNull String planKey,
@NotNull List<BambooPermission> permissionsToAdd) |
boolean |
addUserPermissionsToPlan(@NotNull String planKey,
@NotNull String username,
@NotNull List<BambooPermission> permissionsToAdd) |
@NotNull List<BambooPermission> |
getAnonymousPermissionsForPlan(@NotNull String planKey) |
@NotNull List<BambooPermission> |
getGroupPermissionsForPlan(@NotNull String planKey,
@NotNull String groupName) |
@NotNull List<BambooPermission> |
getLoggedInPermissionsForPlan(@NotNull String planKey) |
@NotNull List<BambooPermission> |
getUserPermissionsForPlan(@NotNull String planKey,
@NotNull String username) |
@NotNull Iterable<String> |
listGroupsWithPermissionsForPlan(@NotNull String planKey) |
@NotNull Iterable<String> |
listUsersWithPermissionsForPlan(@NotNull String planKey) |
@NotNull Collection<BambooPermission> |
permissionDependencies(@NotNull BambooPermission permission)
Obtain a collection of Bamboo permissions dependent on the passed
permission . |
boolean |
removeAnonymousPermissionsFromPlan(@NotNull String planKey) |
boolean |
removeGroupPermissionsFromPlan(@NotNull String planKey,
@NotNull String groupName,
@NotNull List<BambooPermission> permissionsToRemove) |
boolean |
removeLoggedInPermissionsFromPlan(@NotNull String planKey,
@NotNull List<BambooPermission> permissionsToRemove) |
boolean |
removeUserPermissionsFromPlan(@NotNull String planKey,
@NotNull String username,
@NotNull List<BambooPermission> permissionsToRemove) |
@NotNull Collection<BambooPermission> |
supportedPermissions()
Collection of permissions configurable for plans.
|
@NotNull @NotNull Iterable<String> listUsersWithPermissionsForPlan(@NotNull @NotNull String planKey)
@NotNull @NotNull List<BambooPermission> getUserPermissionsForPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String username)
boolean addUserPermissionsToPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
boolean removeUserPermissionsFromPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
@NotNull @NotNull Iterable<String> listGroupsWithPermissionsForPlan(@NotNull @NotNull String planKey)
@NotNull @NotNull List<BambooPermission> getGroupPermissionsForPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String groupName)
boolean addGroupPermissionsToPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
boolean removeGroupPermissionsFromPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
@NotNull @NotNull List<BambooPermission> getLoggedInPermissionsForPlan(@NotNull @NotNull String planKey)
boolean addLoggedInPermissionsToPlan(@NotNull @NotNull String planKey, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
boolean removeLoggedInPermissionsFromPlan(@NotNull @NotNull String planKey, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
@NotNull @NotNull List<BambooPermission> getAnonymousPermissionsForPlan(@NotNull @NotNull String planKey)
boolean addAnonymousPermissionsToPlan(@NotNull @NotNull String planKey)
boolean removeAnonymousPermissionsFromPlan(@NotNull @NotNull String planKey)
@NotNull @NotNull Collection<BambooPermission> supportedPermissions()
Ordered by permission importance. Least granting permissions come first.
@NotNull @NotNull Collection<BambooPermission> permissionDependencies(@NotNull @NotNull BambooPermission permission)
permission
. A dependent permission is
expected to always be granted whenever the parent permission is granted too.
The result is an effective collection of dependencies, meaning there's no need to recursively traverse the dependency graph.
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.