@Experimental
public interface ProjectPermissionsService
Modifier and Type | Method and Description |
---|---|
boolean |
addAnonymousPermission(@NotNull String projectKey)
Grants READ permission for anonymous user to project.
|
boolean |
addGroupPermissionsToProject(@NotNull String projectKey,
@NotNull String group,
@NotNull List<BambooPermission> permissionsToAdd) |
boolean |
addLoggedInPermissionsToProject(@NotNull String projectKey,
@NotNull List<BambooPermission> permissionsToAdd) |
boolean |
addUserPermissionsToProject(@NotNull String projectKey,
@NotNull String username,
@NotNull List<BambooPermission> permissionsToAdd) |
List<BambooPermission> |
getAnonymousPermissions(@NotNull String projectKey) |
@NotNull List<BambooPermission> |
getGroupPermissionsForProject(@NotNull String projectKey,
@NotNull String group) |
@NotNull List<BambooPermission> |
getLoggedInPermissionsForProject(@NotNull String projectKey) |
@NotNull List<BambooPermission> |
getUserPermissionsForProject(@NotNull String projectKey,
@NotNull String username) |
@NotNull Iterable<String> |
listGroupsWithPermissionsForProject(@NotNull String projectKey) |
@NotNull Iterable<String> |
listUsersWithPermissionsForProject(@NotNull String projectKey) |
@NotNull Collection<BambooPermission> |
permissionDependencies(@NotNull BambooPermission permission)
Obtain a collection of Bamboo permissions dependent on the passed
permission . |
boolean |
removeAnonymousPermission(@NotNull String projectKey)
Revoke READ permission from project for anonymous user.
|
boolean |
removeGroupPermissionsFromProject(@NotNull String projectKey,
@NotNull String group,
@NotNull List<BambooPermission> permissionsToRemove) |
boolean |
removeLoggedInPermissionsFromProject(@NotNull String projectKey,
@NotNull List<BambooPermission> permissionsToRemove) |
boolean |
removeUserPermissionsFromProject(@NotNull String projectKey,
@NotNull String username,
@NotNull List<BambooPermission> permissionsToRemove) |
@NotNull Collection<BambooPermission> |
supportedPermissions()
Collection of permissions configurable for projects.
|
@NotNull @NotNull Iterable<String> listUsersWithPermissionsForProject(@NotNull @NotNull String projectKey)
@NotNull @NotNull List<BambooPermission> getUserPermissionsForProject(@NotNull @NotNull String projectKey, @NotNull @NotNull String username)
boolean addUserPermissionsToProject(@NotNull @NotNull String projectKey, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
boolean removeUserPermissionsFromProject(@NotNull @NotNull String projectKey, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
@NotNull @NotNull Iterable<String> listGroupsWithPermissionsForProject(@NotNull @NotNull String projectKey)
@NotNull @NotNull List<BambooPermission> getGroupPermissionsForProject(@NotNull @NotNull String projectKey, @NotNull @NotNull String group)
boolean addGroupPermissionsToProject(@NotNull @NotNull String projectKey, @NotNull @NotNull String group, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
boolean removeGroupPermissionsFromProject(@NotNull @NotNull String projectKey, @NotNull @NotNull String group, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
@NotNull @NotNull List<BambooPermission> getLoggedInPermissionsForProject(@NotNull @NotNull String projectKey)
boolean addLoggedInPermissionsToProject(@NotNull @NotNull String projectKey, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
boolean removeLoggedInPermissionsFromProject(@NotNull @NotNull String projectKey, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
@NotNull @NotNull Collection<BambooPermission> supportedPermissions()
Ordered by permission importance. Least granting permissions come first.
@NotNull @NotNull Collection<BambooPermission> permissionDependencies(@NotNull @NotNull BambooPermission permission)
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.
List<BambooPermission> getAnonymousPermissions(@NotNull @NotNull String projectKey)
boolean addAnonymousPermission(@NotNull @NotNull String projectKey)
boolean removeAnonymousPermission(@NotNull @NotNull String projectKey)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.