Interface DeploymentProjectPermissionsService

All Known Implementing Classes:
DefaultDeploymentProjectPermissionsService

@ExperimentalApi public interface DeploymentProjectPermissionsService
Service to manage deployment project permissions.
Since:
6.2.0
  • Method Details

    • listUsersWithPermissionsForDeploymentProject

      @NotNull @NotNull Iterable<String> listUsersWithPermissionsForDeploymentProject(long deploymentProjectId)
    • getUserPermissionsForDeploymentProject

      @NotNull @NotNull List<BambooPermission> getUserPermissionsForDeploymentProject(long deploymentProjectId, @NotNull @NotNull String username)
    • canUserApproveReleases

      boolean canUserApproveReleases(long deploymentProjectId, @NotNull @NotNull String username)
      Since:
      9.3
    • addUserPermissionsToDeploymentProject

      boolean addUserPermissionsToDeploymentProject(long deploymentProjectId, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
    • removeUserPermissionsFromDeploymentProject

      boolean removeUserPermissionsFromDeploymentProject(long deploymentProjectId, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
    • listGroupsWithPermissionsForDeploymentProject

      @NotNull @NotNull Iterable<String> listGroupsWithPermissionsForDeploymentProject(long deploymentProjectId)
    • getGroupPermissionsForDeploymentProject

      @NotNull @NotNull List<BambooPermission> getGroupPermissionsForDeploymentProject(long deploymentProjectId, @NotNull @NotNull String groupName)
    • addGroupPermissionsToDeploymentProject

      boolean addGroupPermissionsToDeploymentProject(long deploymentProjectId, @NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
    • removeGroupPermissionsFromDeploymentProject

      boolean removeGroupPermissionsFromDeploymentProject(long deploymentProjectId, @NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
    • getLoggedInPermissionsForDeploymentProject

      @NotNull @NotNull List<BambooPermission> getLoggedInPermissionsForDeploymentProject(long deploymentProjectId)
    • addLoggedInPermissionsToDeploymentProject

      boolean addLoggedInPermissionsToDeploymentProject(long deploymentProjectId, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
    • removeLoggedInPermissionsFromDeploymentProject

      boolean removeLoggedInPermissionsFromDeploymentProject(long deploymentProjectId, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
    • getAnonymousPermissionsForDeploymentProject

      @NotNull @NotNull List<BambooPermission> getAnonymousPermissionsForDeploymentProject(long deploymentProjectId)
    • addAnonymousPermissionsToDeploymentProject

      boolean addAnonymousPermissionsToDeploymentProject(long deploymentProjectId)
    • removeAnonymousPermissionsFromDeploymentProject

      boolean removeAnonymousPermissionsFromDeploymentProject(long deploymentProjectId)
    • supportedPermissions

      @NotNull @NotNull Collection<BambooPermission> supportedPermissions()
      Collection of permissions configurable for deployment projects.

      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.