@ExperimentalApi
public interface RepositoryPermissionsService
@NotNull Iterable<String> listUsersWithPermissionsForRepository(long repositoryId)
@NotNull List<BambooPermission> getUserPermissionsForRepository(long repositoryId, @NotNull String username)
boolean addUserPermissionsToRepository(long repositoryId, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeUserPermissionsFromRepository(long repositoryId, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull Iterable<String> listGroupsWithPermissionsForRepository(long repositoryId)
@NotNull List<BambooPermission> getGroupPermissionsForRepository(long repositoryId, @NotNull String group)
boolean addGroupPermissionsToRepository(long repositoryId, @NotNull String group, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeGroupPermissionsFromRepository(long repositoryId, @NotNull String group, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull List<BambooPermission> getLoggedInPermissionsForRepository(long repositoryId)
boolean addLoggedInPermissionsToRepository(long repositoryId, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeLoggedInPermissionsFromRepository(long repositoryId, @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.