Package com.atlassian.bamboo.repository
Interface RepositoryPermissionsService
- All Known Implementing Classes:
DefaultRepositoryPermissionsService
@ExperimentalApi
public interface RepositoryPermissionsService
Service to manage repository permissions.
- Since:
- 6.2.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addGroupPermissionsToRepository
(long repositoryId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToAdd) boolean
addLoggedInPermissionsToRepository
(long repositoryId, @NotNull List<BambooPermission> permissionsToAdd) boolean
addUserPermissionsToRepository
(long repositoryId, @NotNull String username, @NotNull List<BambooPermission> permissionsToAdd) @NotNull List<BambooPermission>
getGroupPermissionsForRepository
(long repositoryId, @NotNull String group) @NotNull List<BambooPermission>
getLoggedInPermissionsForRepository
(long repositoryId) @NotNull List<BambooPermission>
getUserPermissionsForRepository
(long repositoryId, @NotNull String username) listGroupsWithPermissionsForRepository
(long repositoryId) listUsersWithPermissionsForRepository
(long repositoryId) @NotNull Collection<BambooPermission>
permissionDependencies
(@NotNull BambooPermission permission) Obtain a collection of Bamboo permissions dependent on the passedpermission
.boolean
removeGroupPermissionsFromRepository
(long repositoryId, @NotNull String groupName, @NotNull List<BambooPermission> permissionsToRemove) boolean
removeLoggedInPermissionsFromRepository
(long repositoryId, @NotNull List<BambooPermission> permissionsToRemove) boolean
removeUserPermissionsFromRepository
(long repositoryId, @NotNull String username, @NotNull List<BambooPermission> permissionsToRemove) @NotNull Collection<BambooPermission>
Collection of permissions configurable for linked repositories.
-
Method Details
-
listUsersWithPermissionsForRepository
-
getUserPermissionsForRepository
@NotNull @NotNull List<BambooPermission> getUserPermissionsForRepository(long repositoryId, @NotNull @NotNull String username) -
addUserPermissionsToRepository
boolean addUserPermissionsToRepository(long repositoryId, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToAdd) -
removeUserPermissionsFromRepository
boolean removeUserPermissionsFromRepository(long repositoryId, @NotNull @NotNull String username, @NotNull @NotNull List<BambooPermission> permissionsToRemove) -
listGroupsWithPermissionsForRepository
-
getGroupPermissionsForRepository
@NotNull @NotNull List<BambooPermission> getGroupPermissionsForRepository(long repositoryId, @NotNull @NotNull String group) -
addGroupPermissionsToRepository
boolean addGroupPermissionsToRepository(long repositoryId, @NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToAdd) -
removeGroupPermissionsFromRepository
boolean removeGroupPermissionsFromRepository(long repositoryId, @NotNull @NotNull String groupName, @NotNull @NotNull List<BambooPermission> permissionsToRemove) -
getLoggedInPermissionsForRepository
-
addLoggedInPermissionsToRepository
boolean addLoggedInPermissionsToRepository(long repositoryId, @NotNull @NotNull List<BambooPermission> permissionsToAdd) -
removeLoggedInPermissionsFromRepository
boolean removeLoggedInPermissionsFromRepository(long repositoryId, @NotNull @NotNull List<BambooPermission> permissionsToRemove) -
supportedPermissions
Collection of permissions configurable for linked repositories.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.
-