Interface DeploymentProjectPermissionsService
-
- All Known Implementing Classes:
DefaultDeploymentProjectPermissionsService
@ExperimentalApi public interface DeploymentProjectPermissionsService
Service to manage deployment project permissions.- Since:
- 6.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addAnonymousPermissionsToDeploymentProject(long deploymentProjectId)
boolean
addGroupPermissionsToDeploymentProject(long deploymentProjectId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToAdd)
boolean
addLoggedInPermissionsToDeploymentProject(long deploymentProjectId, @NotNull List<BambooPermission> permissionsToAdd)
boolean
addUserPermissionsToDeploymentProject(long deploymentProjectId, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
boolean
canUserApproveReleases(long deploymentProjectId, @NotNull String username)
@NotNull List<BambooPermission>
getAnonymousPermissionsForDeploymentProject(long deploymentProjectId)
@NotNull List<BambooPermission>
getGroupPermissionsForDeploymentProject(long deploymentProjectId, @NotNull String groupName)
@NotNull List<BambooPermission>
getLoggedInPermissionsForDeploymentProject(long deploymentProjectId)
@NotNull List<BambooPermission>
getUserPermissionsForDeploymentProject(long deploymentProjectId, @NotNull String username)
@NotNull Iterable<String>
listGroupsWithPermissionsForDeploymentProject(long deploymentProjectId)
@NotNull Iterable<String>
listUsersWithPermissionsForDeploymentProject(long deploymentProjectId)
@NotNull Collection<BambooPermission>
permissionDependencies(@NotNull BambooPermission permission)
Obtain a collection of Bamboo permissions dependent on the passedpermission
.boolean
removeAnonymousPermissionsFromDeploymentProject(long deploymentProjectId)
boolean
removeGroupPermissionsFromDeploymentProject(long deploymentProjectId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToRemove)
boolean
removeLoggedInPermissionsFromDeploymentProject(long deploymentProjectId, @NotNull List<BambooPermission> permissionsToRemove)
boolean
removeUserPermissionsFromDeploymentProject(long deploymentProjectId, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull Collection<BambooPermission>
supportedPermissions()
Collection of permissions configurable for deployment projects.
-
-
-
Method Detail
-
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 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.
-
-