public interface RssPermissions
Modifier and Type | Field and Description |
---|---|
static RssPermissions |
FULL_ACCESS |
Modifier and Type | Method and Description |
---|---|
void |
addNewDeploymentProject(@NotNull String projectKey)
Add new deployment project to the list of whitelisted projects.
|
void |
addNewProject(@NotNull String projectKey)
Add new build project to the list of whitelisted projects.
|
@NotNull Optional<Long> |
getRssRepositoryId()
Id of the repository which contains the Bamboo Specs.
|
@NotNull Optional<Long> |
getRssRepositoryProjectId()
Id of the project the repository belongs to or empty if a global repository or not RSS.
|
@NotNull String |
getSpecsRepositoryName()
Name of the repository which contains the Bamboo Specs.
|
boolean |
isAllProjectRepositoriesAccess()
Whether the Bamboo Specs stored in given repository is allowed to use all repositories
|
boolean |
isAllProjectsAccess()
Whether the Bamboo Specs stored in given repository is allowed to modify all projects and deployment projects
|
boolean |
isAllRepositoriesAccess()
Whether the Bamboo Specs stored in given repository is allowed to use all project repositories of its owning project
|
boolean |
isDeploymentProjectAllowed(String projectKey)
Whether the Bamboo Specs stored in given repository is allowed to create or modify a deployment project
specified by the key.
|
boolean |
isProjectAllowed(String projectKey)
Whether the Bamboo Specs stored in given repository is allowed to create or modify plans in a build project
specified by the key.
|
boolean |
isProjectCreationAllowed()
Whether the Bamboo Specs stored in given repository is allowed to create new build and deployment projects.
|
boolean |
isRepositoryAllowed(long repositoryId)
Deprecated.
since 8.0 as it doesn't check project repository access use
isRepositoryAllowed(VcsRepositoryData) |
boolean |
isRepositoryAllowed(@NotNull VcsRepositoryData repository)
Whether the Bamboo Specs stored in given repository is allowed to use repository
specified by the id.
|
static final RssPermissions FULL_ACCESS
boolean isAllProjectsAccess()
boolean isAllProjectRepositoriesAccess()
boolean isAllRepositoriesAccess()
boolean isProjectCreationAllowed()
boolean isProjectAllowed(String projectKey)
projectKey
- keyvoid addNewProject(@NotNull @NotNull String projectKey)
IllegalStateException
- if this permission object doesn't allow creation of new projects.boolean isDeploymentProjectAllowed(String projectKey)
projectKey
- keyvoid addNewDeploymentProject(@NotNull @NotNull String projectKey)
IllegalStateException
- if this permission object doesn't allow creation of new projects.@Deprecated boolean isRepositoryAllowed(long repositoryId)
isRepositoryAllowed(VcsRepositoryData)
repositoryId
- idboolean isRepositoryAllowed(@NotNull @NotNull VcsRepositoryData repository)
repository
- repository@NotNull @NotNull String getSpecsRepositoryName()
@NotNull @NotNull Optional<Long> getRssRepositoryId()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.