Interface RepositoryPermissionsService

  • All Known Implementing Classes:
    DefaultRepositoryPermissionsService

    @ExperimentalApi
    public interface RepositoryPermissionsService
    Service to manage repository permissions.
    Since:
    6.2.0
    • Method Detail

      • listUsersWithPermissionsForRepository

        @NotNull
        @NotNull Iterable<String> listUsersWithPermissionsForRepository​(long repositoryId)
      • getUserPermissionsForRepository

        @NotNull
        @NotNull List<BambooPermission> getUserPermissionsForRepository​(long repositoryId,
                                                                        @NotNull
                                                                        @NotNull String username)
      • addUserPermissionsToRepository

        boolean addUserPermissionsToRepository​(long repositoryId,
                                               @NotNull
                                               @NotNull String username,
                                               @NotNull
                                               @NotNull List<BambooPermission> permissionsToAdd)
      • removeUserPermissionsFromRepository

        boolean removeUserPermissionsFromRepository​(long repositoryId,
                                                    @NotNull
                                                    @NotNull String username,
                                                    @NotNull
                                                    @NotNull List<BambooPermission> permissionsToRemove)
      • listGroupsWithPermissionsForRepository

        @NotNull
        @NotNull Iterable<String> listGroupsWithPermissionsForRepository​(long repositoryId)
      • getGroupPermissionsForRepository

        @NotNull
        @NotNull List<BambooPermission> getGroupPermissionsForRepository​(long repositoryId,
                                                                         @NotNull
                                                                         @NotNull String group)
      • addGroupPermissionsToRepository

        boolean addGroupPermissionsToRepository​(long repositoryId,
                                                @NotNull
                                                @NotNull String groupName,
                                                @NotNull
                                                @NotNull List<BambooPermission> permissionsToAdd)
      • removeGroupPermissionsFromRepository

        boolean removeGroupPermissionsFromRepository​(long repositoryId,
                                                     @NotNull
                                                     @NotNull String groupName,
                                                     @NotNull
                                                     @NotNull List<BambooPermission> permissionsToRemove)
      • getLoggedInPermissionsForRepository

        @NotNull
        @NotNull List<BambooPermission> getLoggedInPermissionsForRepository​(long repositoryId)
      • addLoggedInPermissionsToRepository

        boolean addLoggedInPermissionsToRepository​(long repositoryId,
                                                   @NotNull
                                                   @NotNull List<BambooPermission> permissionsToAdd)
      • removeLoggedInPermissionsFromRepository

        boolean removeLoggedInPermissionsFromRepository​(long repositoryId,
                                                        @NotNull
                                                        @NotNull List<BambooPermission> permissionsToRemove)
      • supportedPermissions

        @NotNull
        @NotNull Collection<BambooPermission> supportedPermissions()
        Collection of permissions configurable for linked repositories.

        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 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.