@ExperimentalApi
public interface ProjectPlanPermissionsService
@NotNull Iterable<String> listUsersWithPermissionsForProjectPlan(@NotNull String projectKey)
@NotNull List<BambooPermission> getUserPermissionsForProjectPlan(@NotNull String projectKey, @NotNull String username)
boolean addUserPermissionsToProjectPlan(@NotNull
String projectKey,
@NotNull
String username,
@NotNull
List<BambooPermission> permissionsToAdd)
boolean removeUserPermissionsFromProjectPlan(@NotNull
String projectKey,
@NotNull
String username,
@NotNull
List<BambooPermission> permissionsToRemove)
@NotNull Iterable<String> listGroupsWithPermissionsForProjectPlan(@NotNull String projectKey)
@NotNull List<BambooPermission> getGroupPermissionsForProjectPlan(@NotNull String projectKey, @NotNull String group)
boolean addGroupPermissionsToProjectPlan(@NotNull
String projectKey,
@NotNull
String group,
@NotNull
List<BambooPermission> permissionsToAdd)
boolean removeGroupPermissionsFromProjectPlan(@NotNull
String projectKey,
@NotNull
String group,
@NotNull
List<BambooPermission> permissionsToRemove)
@NotNull List<BambooPermission> getLoggedInPermissionsForProjectPlan(@NotNull String projectKey)
boolean addLoggedInPermissionsToProjectPlan(@NotNull
String projectKey,
@NotNull
List<BambooPermission> permissionsToAdd)
boolean removeLoggedInPermissionsFromProjectPlan(@NotNull
String projectKey,
@NotNull
List<BambooPermission> permissionsToRemove)
@NotNull List<BambooPermission> getAnonymousPermissionsForProjectPlan(@NotNull String projectKey)
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 © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.