Interface RssPermissions
-
public interface RssPermissions
-
-
Field Summary
Fields Modifier and Type Field Description static RssPermissions
FULL_ACCESS
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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 repositoriesboolean
isAllProjectsAccess()
Whether the Bamboo Specs stored in given repository is allowed to modify all projects and deployment projectsboolean
isAllRepositoriesAccess()
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
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 useisRepositoryAllowed(VcsRepositoryData)
boolean
isRepositoryAllowed(@NotNull VcsRepositoryData repository)
Whether the Bamboo Specs stored in given repository is allowed to use repository specified by the id.
-
-
-
Field Detail
-
FULL_ACCESS
static final RssPermissions FULL_ACCESS
-
-
Method Detail
-
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
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.- Parameters:
projectKey
- key- Returns:
- List<Project>
-
addNewProject
void addNewProject(@NotNull @NotNull String projectKey)
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
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.- Parameters:
projectKey
- key- Returns:
- boolean
-
addNewDeploymentProject
void addNewDeploymentProject(@NotNull @NotNull String projectKey)
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 boolean isRepositoryAllowed(long repositoryId)
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
boolean isRepositoryAllowed(@NotNull @NotNull VcsRepositoryData repository)
Whether the Bamboo Specs stored in given repository is allowed to use repository specified by the id.- Parameters:
repository
- repository- Returns:
- boolean
-
getSpecsRepositoryName
@NotNull @NotNull String getSpecsRepositoryName()
Name of the repository which contains the Bamboo Specs.- Returns:
- String repository name
-
getRssRepositoryId
@NotNull @NotNull Optional<Long> getRssRepositoryId()
Id of the repository which contains the Bamboo Specs.- Since:
- 8.0
-
-