Interface RssPermissions
public interface RssPermissions
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.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 String
Name of the repository which contains the Bamboo Specs.boolean
Whether the Bamboo Specs stored in given repository is allowed to use all repositoriesboolean
Whether the Bamboo Specs stored in given repository is allowed to modify all projects and deployment projectsboolean
Whether the Bamboo Specs stored in given repository is allowed to use all project repositories of its owning projectboolean
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
Whether the Bamboo Specs stored in given repository is allowed to create new build and deployment projects.boolean
isRepositoryAllowed
(long repositoryId) Deprecated.boolean
isRepositoryAllowed
(@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)