@ExperimentalApi
public interface EnvironmentPermissionsService
@NotNull Iterable<String> listUsersWithPermissionsForEnvironment(long environmentId)
@NotNull List<BambooPermission> getUserPermissionsForEnvironment(long environmentId, @NotNull String username)
boolean addUserPermissionsToEnvironment(long environmentId, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeUserPermissionsFromEnvironment(long environmentId, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull Iterable<String> listGroupsWithPermissionsForEnvironment(long environmentId)
@NotNull List<BambooPermission> getGroupPermissionsForEnvironment(long environmentId, @NotNull String group)
boolean addGroupPermissionsToEnvironment(long environmentId, @NotNull String group, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeGroupPermissionsFromEnvironment(long environmentId, @NotNull String group, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull List<BambooPermission> getLoggedInPermissionsForEnvironment(long environmentId)
boolean addLoggedInPermissionsToEnvironment(long environmentId, @NotNull List<BambooPermission> permissionsToAdd)
boolean removeLoggedInPermissionsFromEnvironment(long environmentId, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull List<BambooPermission> getAnonymousPermissionsForEnvironment(long environmentId)
boolean addAnonymousPermissionsToEnvironment(long environmentId)
boolean removeAnonymousPermissionsFromEnvironment(long environmentId)
@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.