@Experimental
public interface ProjectPermissionsService
@NotNull Iterable<String> listUsersWithPermissionsForProject(@NotNull String projectKey)
@NotNull List<BambooPermission> getUserPermissionsForProject(@NotNull String projectKey, @NotNull String username)
boolean addUserPermissionsToProject(@NotNull String projectKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeUserPermissionsFromProject(@NotNull String projectKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull Iterable<String> listGroupsWithPermissionsForProject(@NotNull String projectKey)
@NotNull List<BambooPermission> getGroupPermissionsForProject(@NotNull String projectKey, @NotNull String group)
boolean addGroupPermissionsToProject(@NotNull String projectKey, @NotNull String group, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeGroupPermissionsFromProject(@NotNull String projectKey, @NotNull String group, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull List<BambooPermission> getLoggedInPermissionsForProject(@NotNull String projectKey)
boolean addLoggedInPermissionsToProject(@NotNull String projectKey, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeLoggedInPermissionsFromProject(@NotNull String projectKey, @NotNull List<BambooPermission> permissionsToRemove)
@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 © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.