@ExperimentalApi
public interface PlanPermissionsService
@NotNull Iterable<String> listUsersWithPermissionsForPlan(@NotNull String planKey)
@NotNull List<BambooPermission> getUserPermissionsForPlan(@NotNull String planKey, @NotNull String username)
boolean addUserPermissionsToPlan(@NotNull String planKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeUserPermissionsFromPlan(@NotNull String planKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull Iterable<String> listGroupsWithPermissionsForPlan(@NotNull String planKey)
@NotNull List<BambooPermission> getGroupPermissionsForPlan(@NotNull String planKey, @NotNull String groupName)
boolean addGroupPermissionsToPlan(@NotNull String planKey, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeGroupPermissionsFromPlan(@NotNull String planKey, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull List<BambooPermission> getLoggedInPermissionsForPlan(@NotNull String planKey)
boolean addLoggedInPermissionsToPlan(@NotNull String planKey, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeLoggedInPermissionsFromPlan(@NotNull String planKey, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull List<BambooPermission> getAnonymousPermissionsForPlan(@NotNull String planKey)
boolean addAnonymousPermissionsToPlan(@NotNull String planKey)
boolean removeAnonymousPermissionsFromPlan(@NotNull String planKey)
@NotNull Collection<BambooPermission> supportedPermissions()
Ordered by permission importance. Least granting permissions come first.
@NotNull Collection<BambooPermission> permissionDependencies(@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 © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.