Package com.atlassian.bamboo.security
Interface GlobalPermissionsService
- All Known Implementing Classes:
DefaultGlobalPermissionsService
@ExperimentalApi
public interface GlobalPermissionsService
Service to manage global permissions.
- Since:
- 6.2.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addGroupGlobalPermissions
(@NotNull String groupName, @NotNull List<BambooPermission> permissionsToAdd) boolean
addLoggedInGlobalPermissions
(@NotNull List<BambooPermission> permissionsToAdd) boolean
addUserGlobalPermissions
(@NotNull String username, @NotNull List<BambooPermission> permissionsToAdd) @NotNull Collection<BambooPermission>
Collection of global permissions which are editable by current user.@NotNull List<BambooPermission>
@NotNull List<BambooPermission>
getGroupGlobalPermissions
(@NotNull String groupName) @NotNull List<BambooPermission>
@NotNull List<BambooPermission>
getUserGlobalPermissions
(@NotNull String username) @NotNull Collection<BambooPermission>
permissionDependencies
(@NotNull BambooPermission permission) Obtain a collection of Bamboo permissions dependent on the passedpermission
.boolean
boolean
removeGroupGlobalPermissions
(@NotNull String groupName, @NotNull List<BambooPermission> permissionsToRemove) boolean
removeLoggedInGlobalPermissions
(@NotNull List<BambooPermission> permissionsToRemove) boolean
removeUserGlobalPermissions
(@NotNull String username, @NotNull List<BambooPermission> permissionsToRemove) @NotNull Collection<BambooPermission>
Collection of permissions configurable on application level.
-
Method Details
-
listUsersWithGlobalPermissions
-
getUserGlobalPermissions
@NotNull @NotNull List<BambooPermission> getUserGlobalPermissions(@NotNull @NotNull String username) -
addUserGlobalPermissions
boolean addUserGlobalPermissions(@NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToAdd) -
removeUserGlobalPermissions
boolean removeUserGlobalPermissions(@NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToRemove) -
listGroupsWithGlobalPermissions
-
getGroupGlobalPermissions
@NotNull @NotNull List<BambooPermission> getGroupGlobalPermissions(@NotNull @NotNull String groupName) -
addGroupGlobalPermissions
boolean addGroupGlobalPermissions(@NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToAdd) -
removeGroupGlobalPermissions
boolean removeGroupGlobalPermissions(@NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToRemove) -
getLoggedInGlobalPermissions
-
addLoggedInGlobalPermissions
-
removeLoggedInGlobalPermissions
boolean removeLoggedInGlobalPermissions(@NotNull @NotNull List<BambooPermission> permissionsToRemove) -
getAnonymousGlobalPermissions
-
addAnonymousGlobalPermissions
boolean addAnonymousGlobalPermissions() -
removeAnonymousGlobalPermissions
boolean removeAnonymousGlobalPermissions() -
supportedPermissions
Collection of permissions configurable on application level.Ordered by permission importance. Least granting permissions come first.
-
editablePermissions
Collection of global permissions which are editable by current user. For example, a restricted administrator shouldn't be allowed to grant or revokeBambooPermission.ADMINISTRATION
. -
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.
-