Interface RssPermissions


public interface RssPermissions
  • Field Details

  • 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

      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 use isRepositoryAllowed(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
    • getRssRepositoryProjectId

      @NotNull @NotNull Optional<Long> getRssRepositoryProjectId()
      Id of the project the repository belongs to or empty if a global repository or not RSS.
      Since:
      8.0