Interface EnvironmentPermissionsService
- All Known Implementing Classes:
DefaultEnvironmentPermissionsService
@ExperimentalApi
public interface EnvironmentPermissionsService
Service to manage environment permissions.
- Since:
- 6.2.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAnonymousPermissionsToEnvironment
(long environmentId) boolean
addGroupPermissionsToEnvironment
(long environmentId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToAdd) boolean
addLoggedInPermissionsToEnvironment
(long environmentId, @NotNull List<BambooPermission> permissionsToAdd) boolean
addUserPermissionsToEnvironment
(long environmentId, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd) @NotNull List<BambooPermission>
getAnonymousPermissionsForEnvironment
(long environmentId) @NotNull List<BambooPermission>
getGroupPermissionsForEnvironment
(long environmentId, @NotNull String groupName) @NotNull List<BambooPermission>
getLoggedInPermissionsForEnvironment
(long environmentId) @NotNull List<BambooPermission>
getUserPermissionsForEnvironment
(long environmentId, @NotNull String username) listGroupsWithPermissionsForEnvironment
(long environmentId) listUsersWithPermissionsForEnvironment
(long environmentId) @NotNull Collection<BambooPermission>
permissionDependencies
(@NotNull BambooPermission permission) Obtain a collection of Bamboo permissions dependent on the passedpermission
.boolean
removeAnonymousPermissionsFromEnvironment
(long environmentId) boolean
removeGroupPermissionsFromEnvironment
(long environmentId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToRemove) boolean
removeLoggedInPermissionsFromEnvironment
(long environmentId, @NotNull List<BambooPermission> permissionsToRemove) boolean
removeUserPermissionsFromEnvironment
(long environmentId, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove) @NotNull Collection<BambooPermission>
Collection of permissions configurable for environments.
-
Method Details
-
listUsersWithPermissionsForEnvironment
-
getUserPermissionsForEnvironment
@NotNull @NotNull List<BambooPermission> getUserPermissionsForEnvironment(long environmentId, @NotNull @NotNull String username) -
addUserPermissionsToEnvironment
boolean addUserPermissionsToEnvironment(long environmentId, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToAdd) -
removeUserPermissionsFromEnvironment
boolean removeUserPermissionsFromEnvironment(long environmentId, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToRemove) -
listGroupsWithPermissionsForEnvironment
-
getGroupPermissionsForEnvironment
@NotNull @NotNull List<BambooPermission> getGroupPermissionsForEnvironment(long environmentId, @NotNull @NotNull String groupName) -
addGroupPermissionsToEnvironment
boolean addGroupPermissionsToEnvironment(long environmentId, @NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToAdd) -
removeGroupPermissionsFromEnvironment
boolean removeGroupPermissionsFromEnvironment(long environmentId, @NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToRemove) -
getLoggedInPermissionsForEnvironment
-
addLoggedInPermissionsToEnvironment
boolean addLoggedInPermissionsToEnvironment(long environmentId, @NotNull @NotNull List<BambooPermission> permissionsToAdd) -
removeLoggedInPermissionsFromEnvironment
boolean removeLoggedInPermissionsFromEnvironment(long environmentId, @NotNull @NotNull List<BambooPermission> permissionsToRemove) -
getAnonymousPermissionsForEnvironment
-
addAnonymousPermissionsToEnvironment
boolean addAnonymousPermissionsToEnvironment(long environmentId) -
removeAnonymousPermissionsFromEnvironment
boolean removeAnonymousPermissionsFromEnvironment(long environmentId) -
supportedPermissions
Collection of permissions configurable for environments.Ordered by permission importance. Least granting permissions come first.
-
permissionDependencies
@NotNull @NotNull Collection<BambooPermission> permissionDependencies(@NotNull @NotNull BambooPermission permission) Obtain a collection of Bamboo permissions dependent on the passedpermission
. 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.
-