Package com.atlassian.bamboo.project
Interface ProjectPlanPermissionsService
-
- All Known Implementing Classes:
DefaultProjectPlanPermissionsService
@ExperimentalApi public interface ProjectPlanPermissionsServiceService to manage project plan permissions.- Since:
- 6.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddAnonymousPermissionsToPlan(@NotNull String planKey)booleanaddGroupPermissionsToProjectPlan(@NotNull String projectKey, @NotNull String group, @NotNull List<BambooPermission> permissionsToAdd)booleanaddLoggedInPermissionsToProjectPlan(@NotNull String projectKey, @NotNull List<BambooPermission> permissionsToAdd)booleanaddUserPermissionsToProjectPlan(@NotNull String projectKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd)@NotNull List<BambooPermission>getAnonymousPermissionsForProjectPlan(@NotNull String projectKey)@NotNull List<BambooPermission>getGroupPermissionsForProjectPlan(@NotNull String projectKey, @NotNull String group)@NotNull List<BambooPermission>getLoggedInPermissionsForProjectPlan(@NotNull String projectKey)@NotNull List<BambooPermission>getUserPermissionsForProjectPlan(@NotNull String projectKey, @NotNull String username)@NotNull Iterable<String>listGroupsWithPermissionsForProjectPlan(@NotNull String projectKey)@NotNull Iterable<String>listUsersWithPermissionsForProjectPlan(@NotNull String projectKey)@NotNull Collection<BambooPermission>permissionDependencies(@NotNull BambooPermission permission)Obtain a collection of Bamboo permissions dependent on the passedpermission.booleanremoveAnonymousPermissionsFromPlan(@NotNull String planKey)booleanremoveGroupPermissionsFromProjectPlan(@NotNull String projectKey, @NotNull String group, @NotNull List<BambooPermission> permissionsToRemove)booleanremoveLoggedInPermissionsFromProjectPlan(@NotNull String projectKey, @NotNull List<BambooPermission> permissionsToRemove)booleanremoveUserPermissionsFromProjectPlan(@NotNull String projectKey, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove)@NotNull Collection<BambooPermission>supportedPermissions()Collection of permissions configurable on projects to apply to all contained plans.
-
-
-
Method Detail
-
listUsersWithPermissionsForProjectPlan
@NotNull @NotNull Iterable<String> listUsersWithPermissionsForProjectPlan(@NotNull @NotNull String projectKey)
-
getUserPermissionsForProjectPlan
@NotNull @NotNull List<BambooPermission> getUserPermissionsForProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String username)
-
addUserPermissionsToProjectPlan
boolean addUserPermissionsToProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
-
removeUserPermissionsFromProjectPlan
boolean removeUserPermissionsFromProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
-
listGroupsWithPermissionsForProjectPlan
@NotNull @NotNull Iterable<String> listGroupsWithPermissionsForProjectPlan(@NotNull @NotNull String projectKey)
-
getGroupPermissionsForProjectPlan
@NotNull @NotNull List<BambooPermission> getGroupPermissionsForProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String group)
-
addGroupPermissionsToProjectPlan
boolean addGroupPermissionsToProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String group, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
-
removeGroupPermissionsFromProjectPlan
boolean removeGroupPermissionsFromProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull String group, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
-
getLoggedInPermissionsForProjectPlan
@NotNull @NotNull List<BambooPermission> getLoggedInPermissionsForProjectPlan(@NotNull @NotNull String projectKey)
-
addLoggedInPermissionsToProjectPlan
boolean addLoggedInPermissionsToProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
-
removeLoggedInPermissionsFromProjectPlan
boolean removeLoggedInPermissionsFromProjectPlan(@NotNull @NotNull String projectKey, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
-
getAnonymousPermissionsForProjectPlan
@NotNull @NotNull List<BambooPermission> getAnonymousPermissionsForProjectPlan(@NotNull @NotNull String projectKey)
-
addAnonymousPermissionsToPlan
boolean addAnonymousPermissionsToPlan(@NotNull @NotNull String planKey)
-
removeAnonymousPermissionsFromPlan
boolean removeAnonymousPermissionsFromPlan(@NotNull @NotNull String planKey)
-
supportedPermissions
@NotNull @NotNull Collection<BambooPermission> supportedPermissions()
Collection of permissions configurable on projects to apply to all contained 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.
-
-