Interface RssPermissions
public interface RssPermissions
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewDeploymentProject(@NotNull String projectKey) Add new deployment project to the list of whitelisted projects.voidaddNewProject(@NotNull String projectKey) Add new build project to the list of whitelisted projects.Id of the repository which contains the Bamboo Specs.Id of the project the repository belongs to or empty if a global repository or not RSS.@NotNull StringName of the repository which contains the Bamboo Specs.booleanWhether the Bamboo Specs stored in given repository is allowed to use all repositoriesbooleanWhether the Bamboo Specs stored in given repository is allowed to modify all projects and deployment projectsbooleanWhether the Bamboo Specs stored in given repository is allowed to use all project repositories of its owning projectbooleanisDeploymentProjectAllowed(String projectKey) Whether the Bamboo Specs stored in given repository is allowed to create or modify a deployment project specified by the key.booleanisProjectAllowed(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.booleanWhether the Bamboo Specs stored in given repository is allowed to create new build and deployment projects.booleanisRepositoryAllowed(long repositoryId) Deprecated.booleanisRepositoryAllowed(@NotNull VcsRepositoryData repository) Whether the Bamboo Specs stored in given repository is allowed to use repository specified by the id.
-
Field Details
-
FULL_ACCESS
-
-
Method Details
-
isAllProjectsAccess
boolean isAllProjectsAccess()Whether the Bamboo Specs stored in given repository is allowed to modify all projects and deployment projects- Returns:
- boolean
-
isAllProjectRepositoriesAccess
boolean isAllProjectRepositoriesAccess()Whether the Bamboo Specs stored in given repository is allowed to use all repositories- Returns:
- boolean
- Since:
- 8.0
-
isAllRepositoriesAccess
boolean isAllRepositoriesAccess()Whether the Bamboo Specs stored in given repository is allowed to use all project repositories of its owning project- Returns:
- boolean
-
isProjectCreationAllowed
boolean isProjectCreationAllowed()Whether the Bamboo Specs stored in given repository is allowed to create new build and deployment projects.- Since:
- 8.0
-
isProjectAllowed
Whether the Bamboo Specs stored in given repository is allowed to create or modify plans in a build project specified by the key.- Parameters:
projectKey- key- Returns:
- List<Project>
-
addNewProject
Add new build project to the list of whitelisted projects.- Throws:
IllegalStateException- if this permission object doesn't allow creation of new projects.- Since:
- 8.0
-
isDeploymentProjectAllowed
Whether the Bamboo Specs stored in given repository is allowed to create or modify a deployment project specified by the key.- Parameters:
projectKey- key- Returns:
- boolean
-
addNewDeploymentProject
Add new deployment project to the list of whitelisted projects.- Throws:
IllegalStateException- if this permission object doesn't allow creation of new projects.- Since:
- 8.0
-
isRepositoryAllowed
Deprecated.since 8.0 as it doesn't check project repository access useisRepositoryAllowed(VcsRepositoryData)Whether the Bamboo Specs stored in given repository is allowed to use repository specified by the id.- Parameters:
repositoryId- id- Returns:
- boolean
-
isRepositoryAllowed
Whether the Bamboo Specs stored in given repository is allowed to use repository specified by the id.- Parameters:
repository- repository- Returns:
- boolean
-
getSpecsRepositoryName
Name of the repository which contains the Bamboo Specs.- Returns:
- String repository name
-
getRssRepositoryId
Id of the repository which contains the Bamboo Specs.- Since:
- 8.0
-
getRssRepositoryProjectId
Id of the project the repository belongs to or empty if a global repository or not RSS.- Since:
- 8.0
-
isRepositoryAllowed(VcsRepositoryData)