Package com.atlassian.bamboo.plan
Interface PlanPermissionsService
-
- All Known Implementing Classes:
DefaultPlanPermissionsService
@ExperimentalApi public interface PlanPermissionsService
Service to manage plan permissions.- Since:
- 6.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addAnonymousPermissionsToPlan(@NotNull String planKey)
boolean
addGroupPermissionsToPlan(@NotNull String planKey, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToAdd)
boolean
addLoggedInPermissionsToPlan(@NotNull String planKey, @NotNull List<BambooPermission> permissionsToAdd)
boolean
addUserPermissionsToPlan(@NotNull String planKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)
@NotNull List<BambooPermission>
getAnonymousPermissionsForPlan(@NotNull String planKey)
@NotNull List<BambooPermission>
getGroupPermissionsForPlan(@NotNull String planKey, @NotNull String groupName)
@NotNull List<BambooPermission>
getLoggedInPermissionsForPlan(@NotNull String planKey)
@NotNull List<BambooPermission>
getUserPermissionsForPlan(@NotNull String planKey, @NotNull String username)
@NotNull Iterable<String>
listGroupsWithPermissionsForPlan(@NotNull String planKey)
@NotNull Iterable<String>
listUsersWithPermissionsForPlan(@NotNull String planKey)
@NotNull Collection<BambooPermission>
permissionDependencies(@NotNull BambooPermission permission)
Obtain a collection of Bamboo permissions dependent on the passedpermission
.boolean
removeAnonymousPermissionsFromPlan(@NotNull String planKey)
boolean
removeGroupPermissionsFromPlan(@NotNull String planKey, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToRemove)
boolean
removeLoggedInPermissionsFromPlan(@NotNull String planKey, @NotNull List<BambooPermission> permissionsToRemove)
boolean
removeUserPermissionsFromPlan(@NotNull String planKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)
@NotNull Collection<BambooPermission>
supportedPermissions()
Collection of permissions configurable for plans.
-
-
-
Method Detail
-
listUsersWithPermissionsForPlan
@NotNull @NotNull Iterable<String> listUsersWithPermissionsForPlan(@NotNull @NotNull String planKey)
-
getUserPermissionsForPlan
@NotNull @NotNull List<BambooPermission> getUserPermissionsForPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String username)
-
addUserPermissionsToPlan
boolean addUserPermissionsToPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
-
removeUserPermissionsFromPlan
boolean removeUserPermissionsFromPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
-
listGroupsWithPermissionsForPlan
@NotNull @NotNull Iterable<String> listGroupsWithPermissionsForPlan(@NotNull @NotNull String planKey)
-
getGroupPermissionsForPlan
@NotNull @NotNull List<BambooPermission> getGroupPermissionsForPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String groupName)
-
addGroupPermissionsToPlan
boolean addGroupPermissionsToPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
-
removeGroupPermissionsFromPlan
boolean removeGroupPermissionsFromPlan(@NotNull @NotNull String planKey, @NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
-
getLoggedInPermissionsForPlan
@NotNull @NotNull List<BambooPermission> getLoggedInPermissionsForPlan(@NotNull @NotNull String planKey)
-
addLoggedInPermissionsToPlan
boolean addLoggedInPermissionsToPlan(@NotNull @NotNull String planKey, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
-
removeLoggedInPermissionsFromPlan
boolean removeLoggedInPermissionsFromPlan(@NotNull @NotNull String planKey, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
-
getAnonymousPermissionsForPlan
@NotNull @NotNull List<BambooPermission> getAnonymousPermissionsForPlan(@NotNull @NotNull String planKey)
-
addAnonymousPermissionsToPlan
boolean addAnonymousPermissionsToPlan(@NotNull @NotNull String planKey)
-
removeAnonymousPermissionsFromPlan
boolean removeAnonymousPermissionsFromPlan(@NotNull @NotNull String planKey)
-
supportedPermissions
@NotNull @NotNull Collection<BambooPermission> supportedPermissions()
Collection of permissions configurable for plans.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.
-
-