public interface RssPermissionManager
| Modifier and Type | Method and Description |
|---|---|
void |
disableAllProjectAccess(long repositoryId)
Forbid Bamboo Specs stored in the repository identified by
repositoryId to create
or modify plans in all projects and deployment projects in Bamboo. |
void |
disableAllRepositoriesAccess(long repositoryId)
Forbid Bamboo Specs stored in the repository identified by
repositoryId to use any linked repositories
in Bamboo. |
void |
disableProjectCreation(long repositoryId)
Forbid Bamboo Specs stored in the repository identified by
repositoryId to create new projects. |
List<Long> |
getAccessibleDeploymentProjects(long repositoryId)
List all deployment projects which can be created or modified by the Bamboo Specs from a repository
identified by
repositoryId. |
List<Long> |
getAccessibleProjects(long repositoryId)
List all build projects in which plans can be created or modified by the Bamboo Specs from a repository
identified by
repositoryId. |
List<Long> |
getAccessibleRepositories(long repositoryId)
List all repositories which can be used by the Bamboo Specs from a repository
identified by
repositoryId. |
List<Long> |
getRepositoriesWithAccessToDeploymentProject(long projectId)
List all repositories which are allowed to create or modify plans inside a deployment project identified by
projectId. |
List<Long> |
getRepositoriesWithAccessToProject(long projectId)
List all repositories which are allowed to create or modify plans inside a build project identified by
projectId. |
List<Long> |
getRepositoriesWithAccessToRepository(long targetRepositoryId)
List all repositories which are allowed to use target repository identified by
targetRepositoryId. |
void |
grantDeploymentProjectAccess(long projectId,
long repositoryId)
Allow Bamboo Specs stored in the repository identified by
repositoryId to modify
a deployment project identified by projectId. |
void |
grantProjectAccess(long projectId,
long repositoryId)
Allow Bamboo Specs stored in the repository identified by
repositoryId to modify
plans in a project identified by projectId. |
void |
grantRepositoryAccess(long targetRepositoryId,
long repositoryId)
Allow Bamboo Specs stored in the repository identified by
repositoryId to use
repository identified by targetRepositoryId. |
boolean |
isAllProjectsAccess(long repositoryId)
Whether a Bamboo Specs stored in the repository identified by
repositoryId to modify
all projects. |
boolean |
isAllRepositoriesAccess(long repositoryId)
Whether a Bamboo Specs stored in the repository identified by
repositoryId to use
all repositories. |
boolean |
isProjectCreationAllowed(long repositoryId)
Whether a Bamboo Specs stored in the repository identified by
repositoryId are allowed to create new build and deployment projects. |
void |
revokeDeploymentProjectAccess(long projectId,
long repositoryId)
Forbid Bamboo Specs stored in the repository identified by
repositoryId to modify
a deployment project identified by projectId. |
void |
revokeProjectAccess(long projectId,
long repositoryId)
Forbid Bamboo Specs stored in the repository identified by
repositoryId to modify
plans in a project identified by projectId. |
void |
revokeRepositoryAccess(long targetRepositoryId,
long repositoryId)
Forbid Bamboo Specs stored in the repository identified by
repositoryId to use
a repository identified by targetRepositoryId. |
void |
toggleAllProjectRepositoriesAccess(long repositoryId,
@NotNull String projectKey,
boolean enabled)
Allow or forbid Bamboo Specs stored in the repository identified by
repositoryId to use all
project repositories in plan of project. |
void |
toggleAllProjectsAccess(long repositoryId,
boolean enabled)
Allow or forbid Bamboo Specs stored in the repository identified by
repositoryId to create
or modify plans in all projects and deployment projects in Bamboo. |
void |
toggleAllRepositoriesAccess(long repositoryId,
boolean enable)
Allow or forbid Bamboo Specs stored in the repository identified by
repositoryId to use all
linked repositories in plans or deployment projects in Bamboo. |
void |
toggleProjectCreationPermission(long repositoryId,
boolean enabled)
Allow or forbid Bamboo Specs stored in the repository identified by
repositoryId to create
new build and deployment projects. |
List<Long> getAccessibleProjects(long repositoryId)
repositoryId.repositoryId - ID of the repositoryList<Long> getAccessibleDeploymentProjects(long repositoryId)
repositoryId.repositoryId - ID of the repositoryList<Long> getAccessibleRepositories(long repositoryId)
repositoryId.repositoryId - ID of the repositoryList<Long> getRepositoriesWithAccessToProject(long projectId)
projectId.projectId - ID of the projectList<Long> getRepositoriesWithAccessToDeploymentProject(long projectId)
projectId.projectId - ID of the projectList<Long> getRepositoriesWithAccessToRepository(long targetRepositoryId)
targetRepositoryId.targetRepositoryId - ID of the repositoryvoid grantProjectAccess(long projectId,
long repositoryId)
throws AccessDeniedException
repositoryId to modify
plans in a project identified by projectId.projectId - id of the projectrepositoryId - id of the repositoryAccessDeniedException - if user doesn't have ADMINISTRATION permission to project or
READ permission to repositoryvoid grantDeploymentProjectAccess(long projectId,
long repositoryId)
throws AccessDeniedException
repositoryId to modify
a deployment project identified by projectId.repositoryId - id of the repositoryprojectId - id of the projectAccessDeniedException - if user doesn't have ADMINISTRATION permission to deployment project or
READ permission to repositoryvoid grantRepositoryAccess(long targetRepositoryId,
long repositoryId)
repositoryId to use
repository identified by targetRepositoryId.targetRepositoryId - id of the target repositoryrepositoryId - id of the repositoryAccessDeniedException - if user doesn't have ADMINISTRATION permission to target repository or
READ permission to repositoryvoid revokeProjectAccess(long projectId,
long repositoryId)
throws AccessDeniedException
repositoryId to modify
plans in a project identified by projectId.projectId - id of the projectrepositoryId - id of the repositoryAccessDeniedException - if user doesn't have ADMINISTRATION permission to projectvoid revokeDeploymentProjectAccess(long projectId,
long repositoryId)
throws AccessDeniedException
repositoryId to modify
a deployment project identified by projectId.projectId - id of the projectrepositoryId - id of the repositoryAccessDeniedException - if user doesn't have ADMINISTRATION permission to deployment projectvoid revokeRepositoryAccess(long targetRepositoryId,
long repositoryId)
throws AccessDeniedException
repositoryId to use
a repository identified by targetRepositoryId.targetRepositoryId - id of the target repositoryrepositoryId - id of the repositoryAccessDeniedException - if user doesn't have ADMINISTRATION permission to target repositoryboolean isAllProjectsAccess(long repositoryId)
throws AccessDeniedException
repositoryId to modify
all projects.repositoryId - id of the repositoryAccessDeniedException - if user doesn't have READ permission to repositoryboolean isAllRepositoriesAccess(long repositoryId)
throws AccessDeniedException
repositoryId to use
all repositories.repositoryId - id of the repositoryAccessDeniedException - if user doesn't have READ permission to repositoryboolean isProjectCreationAllowed(long repositoryId)
throws AccessDeniedException
repositoryId are allowed to create new build and deployment projects.repositoryId - id of the repositoryAccessDeniedException - if user doesn't have READ permission to repositoryvoid toggleAllProjectsAccess(long repositoryId,
boolean enabled)
throws AccessDeniedException
repositoryId to create
or modify plans in all projects and deployment projects in Bamboo.
IMPORTANT: this method switches the global toggle, so calling this method does not remove
permissions from single projects is any were granted using the grantProjectAccess(long, long)
or grantDeploymentProjectAccess(long, long).
Therefore, if you want to completely revoke access you shall also:
getAccessibleProjects(long) and call revokeProjectAccess(long, long)getAccessibleDeploymentProjects(long) and call revokeDeploymentProjectAccess(long, long)repositoryId - id of the repositoryAccessDeniedException - if user doesn't have ADMINISTRATION or RESTRICTEDADMINISTRATION global permissionvoid toggleAllRepositoriesAccess(long repositoryId,
boolean enable)
throws AccessDeniedException
repositoryId to use all
linked repositories in plans or deployment projects in Bamboo.
IMPORTANT: this method switches the global toggle, so calling this method does not remove
permissions from single repository is any were granted using the grantProjectAccess(long, long)
or grantDeploymentProjectAccess(long, long).
Therefore, if you want to completely revoke access you shall also:
iterate over getAccessibleRepositories(long) (long)} and call revokeRepositoryAccess(long, long)repositoryId - id of the repositoryAccessDeniedException - if user doesn't have ADMINISTRATION or RESTRICTEDADMINISTRATION global permissionvoid toggleAllProjectRepositoriesAccess(long repositoryId,
@NotNull
@NotNull String projectKey,
boolean enabled)
repositoryId to use all
project repositories in plan of project.
IMPORTANT: this method switches the global toggle, so calling this method does not remove
permissions from single repository is any were granted using the grantProjectAccess(long, long)
or grantDeploymentProjectAccess(long, long).
Therefore, if you want to completely revoke access you shall also:
iterate over getAccessibleRepositories(long) (long)} and call revokeRepositoryAccess(long, long)repositoryId - id of the repositoryprojectKey - key of projectAccessDeniedException - if user doesn't have ADMINISTRATION permission on projectvoid toggleProjectCreationPermission(long repositoryId,
boolean enabled)
repositoryId to create
new build and deployment projects.repositoryId - id of the repositoryAccessDeniedException - if user doesn't have CREATE global permissionvoid disableAllProjectAccess(long repositoryId)
repositoryId to create
or modify plans in all projects and deployment projects in Bamboo.
IMPORTANT: this method switches the global toggle, so calling this method does not remove
permissions from single projects is any were granted using the grantProjectAccess(long, long)
or grantDeploymentProjectAccess(long, long).
Therefore, if you want to completely revoke access you shall also:
getAccessibleProjects(long) and call revokeProjectAccess(long, long)getAccessibleDeploymentProjects(long) and call revokeDeploymentProjectAccess(long, long)repositoryId - id of the repositoryvoid disableAllRepositoriesAccess(long repositoryId)
repositoryId to use any linked repositories
in Bamboo.
IMPORTANT: this method switches the global toggle, so calling this method does not remove
permissions from single repositories is any were granted using the #grantRepositoryAccess(long, Long)
or grantDeploymentProjectAccess(long, long).
Therefore, if you want to completely revoke access you shall also:
getAccessibleRepositories(long) and call revokeRepositoryAccess(long, long)repositoryId - id of the repositoryvoid disableProjectCreation(long repositoryId)
repositoryId to create new projects.
This method does not check permissions.repositoryId - id of the repositoryCopyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.