Interface GlobalPermissionsService

All Known Implementing Classes:
DefaultGlobalPermissionsService

@ExperimentalApi public interface GlobalPermissionsService
Service to manage global permissions.
Since:
6.2.0
  • Method Details

    • listUsersWithGlobalPermissions

      @NotNull @NotNull Iterable<String> 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

      @NotNull @NotNull Iterable<String> 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

      @NotNull @NotNull List<BambooPermission> getLoggedInGlobalPermissions()
    • addLoggedInGlobalPermissions

      boolean addLoggedInGlobalPermissions(@NotNull @NotNull List<BambooPermission> permissionsToAdd)
    • removeLoggedInGlobalPermissions

      boolean removeLoggedInGlobalPermissions(@NotNull @NotNull List<BambooPermission> permissionsToRemove)
    • getAnonymousGlobalPermissions

      @NotNull @NotNull List<BambooPermission> getAnonymousGlobalPermissions()
    • addAnonymousGlobalPermissions

      boolean addAnonymousGlobalPermissions()
    • removeAnonymousGlobalPermissions

      boolean removeAnonymousGlobalPermissions()
    • supportedPermissions

      @NotNull @NotNull Collection<BambooPermission> supportedPermissions()
      Collection of permissions configurable on application level.

      Ordered by permission importance. Least granting permissions come first.

    • editablePermissions

      @NotNull @NotNull Collection<BambooPermission> editablePermissions()
      Collection of global permissions which are editable by current user. For example, a restricted administrator shouldn't be allowed to grant or revoke BambooPermission.ADMINISTRATION.
    • permissionDependencies

      @NotNull @NotNull Collection<BambooPermission> permissionDependencies(@NotNull @NotNull BambooPermission permission)
      Obtain a collection of Bamboo permissions dependent on the passed 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.