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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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)
@NotNull Iterable<String>
listGroupsWithPermissionsForRepository(long repositoryId)
@NotNull Iterable<String>
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>
supportedPermissions()
Collection of permissions configurable for linked repositories.
-
-
-
Method Detail
-
listUsersWithPermissionsForRepository
@NotNull @NotNull Iterable<String> listUsersWithPermissionsForRepository(long repositoryId)
-
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
@NotNull @NotNull Iterable<String> listGroupsWithPermissionsForRepository(long repositoryId)
-
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
@NotNull @NotNull List<BambooPermission> getLoggedInPermissionsForRepository(long repositoryId)
-
addLoggedInPermissionsToRepository
boolean addLoggedInPermissionsToRepository(long repositoryId, @NotNull @NotNull List<BambooPermission> permissionsToAdd)
-
removeLoggedInPermissionsFromRepository
boolean removeLoggedInPermissionsFromRepository(long repositoryId, @NotNull @NotNull List<BambooPermission> permissionsToRemove)
-
supportedPermissions
@NotNull @NotNull Collection<BambooPermission> 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.
-
-