public class PermissionsControl extends BackdoorControl<PermissionsControl>
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
Constructor and Description |
---|
PermissionsControl(@NotNull BambooEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
void |
checkPlanPermissions(PlanKey planKey,
BambooRole role,
List<BambooPermission> has,
List<BambooPermission> hasNot) |
void |
grantDeploymentProjectPermission(long deploymentProjectId,
@NotNull BambooTestPermission permission)
Deprecated.
prefer using
setDeploymentProjectPermissions(java.lang.String, com.atlassian.bamboo.specs.api.builders.permission.Permissions) which is backed by Specs |
void |
grantEnvironmentPermission(long environmentId,
@NotNull BambooTestPermission permission)
Deprecated.
prefer using
setEnvironmentPermissions(java.lang.String, java.lang.String, com.atlassian.bamboo.specs.api.builders.permission.Permissions) which is backed by Specs |
void |
grantLinkedRepositoryPermission(long repositoryId,
@NotNull BambooTestPermission permission)
Grant permission to a linked repository.
|
void |
grantPlanPermission(@NotNull PlanKey planKey,
@NotNull BambooTestPermission permission)
Deprecated.
|
void |
grantProjectPermission(@NotNull String projectKey,
@NotNull BambooTestPermission permission)
Grant project permission
|
void |
grantProjectPlanPermission(@NotNull String projectKey,
@NotNull BambooTestPermission permission)
Grant project plan permission
|
boolean |
hasDeploymentProjectPermission(long deploymentProjectId,
@NotNull BambooTestPermission permission) |
boolean |
hasLinkedRepositoryPermission(long repositoryId,
@NotNull BambooTestPermission permission)
Check whether a permission is granted on a linked repository.
|
boolean |
hasPlanPermission(@NotNull PlanKey planKey,
@NotNull BambooTestPermission permission) |
void |
revokeDeploymentProjectPermission(long deploymentProjectId,
@NotNull BambooTestPermission permission)
Deprecated.
prefer using
setDeploymentProjectPermissions(java.lang.String, com.atlassian.bamboo.specs.api.builders.permission.Permissions) which is backed by Specs |
void |
revokeEnvironmentPermission(long environmentId,
@NotNull BambooTestPermission permission)
Deprecated.
prefer using
setEnvironmentPermissions(java.lang.String, java.lang.String, com.atlassian.bamboo.specs.api.builders.permission.Permissions) which is backed by Specs |
void |
revokeLinkedRepositoryPermission(long repositoryId,
@NotNull BambooTestPermission permission)
Revoke permission to a linked repository.
|
void |
revokePlanPermission(@NotNull PlanKey planKey,
@NotNull BambooTestPermission permission)
Deprecated.
|
void |
revokeProjectPermission(@NotNull String projectKey,
@NotNull BambooTestPermission permission)
Revoke project permission
|
void |
setDeploymentProjectPermissions(@NotNull String deploymentProjectName,
@NotNull com.atlassian.bamboo.specs.api.builders.permission.Permissions permissions)
Sets deployment project permissions
|
void |
setEnvironmentPermissions(@NotNull String deploymentProjectName,
@NotNull String environmentName,
@NotNull com.atlassian.bamboo.specs.api.builders.permission.Permissions permissions)
Sets deployment environment permissions
|
void |
setPlanPermissions(@NotNull PlanKey planKey,
@NotNull com.atlassian.bamboo.specs.api.builders.permission.Permissions permissions)
Set complete plan permissions
|
void |
setPlanPermissions(@NotNull com.atlassian.bamboo.specs.api.builders.permission.PlanPermissions permissions)
Set complete plan permissions
|
client, createResource, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot, tearDown
public PermissionsControl(@NotNull @NotNull BambooEnvironmentData environmentData)
public void grantProjectPermission(@NotNull @NotNull String projectKey, @NotNull @NotNull BambooTestPermission permission)
projectKey
- key of a Projectpermission
- permission to grantpublic void revokeProjectPermission(@NotNull @NotNull String projectKey, @NotNull @NotNull BambooTestPermission permission)
projectKey
- key of a Projectpermission
- permission to revokepublic void grantProjectPlanPermission(@NotNull @NotNull String projectKey, @NotNull @NotNull BambooTestPermission permission)
projectKey
- key of a Projectpermission
- permission to grant@Deprecated public void grantPlanPermission(@NotNull @NotNull PlanKey planKey, @NotNull @NotNull BambooTestPermission permission)
setPlanPermissions(PlanPermissions)
or setPlanPermissions(PlanKey, Permissions)
planKey
- key of a Planpermission
- permission to grant@Deprecated public void revokePlanPermission(@NotNull @NotNull PlanKey planKey, @NotNull @NotNull BambooTestPermission permission)
setPlanPermissions(PlanPermissions)
or setPlanPermissions(PlanKey, Permissions)
planKey
- key of a Planpermission
- permission to revokepublic void setPlanPermissions(@NotNull @NotNull com.atlassian.bamboo.specs.api.builders.permission.PlanPermissions permissions)
permissions
- new plan permission schemepublic void setPlanPermissions(@NotNull @NotNull PlanKey planKey, @NotNull @NotNull com.atlassian.bamboo.specs.api.builders.permission.Permissions permissions)
planKey
- key of a Planpermissions
- new plan permission schemepublic boolean hasPlanPermission(@NotNull @NotNull PlanKey planKey, @NotNull @NotNull BambooTestPermission permission)
public void checkPlanPermissions(PlanKey planKey, BambooRole role, List<BambooPermission> has, List<BambooPermission> hasNot)
public boolean hasDeploymentProjectPermission(long deploymentProjectId, @NotNull @NotNull BambooTestPermission permission)
public void grantLinkedRepositoryPermission(long repositoryId, @NotNull @NotNull BambooTestPermission permission)
repositoryId
- id of repositorypermission
- permission to grantpublic void revokeLinkedRepositoryPermission(long repositoryId, @NotNull @NotNull BambooTestPermission permission)
repositoryId
- id of repositorypermission
- permission to revokepublic boolean hasLinkedRepositoryPermission(long repositoryId, @NotNull @NotNull BambooTestPermission permission)
repositoryId
- id of repositorypermission
- permission to check@Deprecated public void grantDeploymentProjectPermission(long deploymentProjectId, @NotNull @NotNull BambooTestPermission permission)
setDeploymentProjectPermissions(java.lang.String, com.atlassian.bamboo.specs.api.builders.permission.Permissions)
which is backed by SpecsdeploymentProjectId
- id of deployment projectpermission
- permission to setpublic void setDeploymentProjectPermissions(@NotNull @NotNull String deploymentProjectName, @NotNull @NotNull com.atlassian.bamboo.specs.api.builders.permission.Permissions permissions)
deploymentProjectName
- deployment project namepermissions
- new permission set@Deprecated public void revokeDeploymentProjectPermission(long deploymentProjectId, @NotNull @NotNull BambooTestPermission permission)
setDeploymentProjectPermissions(java.lang.String, com.atlassian.bamboo.specs.api.builders.permission.Permissions)
which is backed by SpecsdeploymentProjectId
- id of deployment projectpermission
- permission to revoke@Deprecated public void grantEnvironmentPermission(long environmentId, @NotNull @NotNull BambooTestPermission permission)
setEnvironmentPermissions(java.lang.String, java.lang.String, com.atlassian.bamboo.specs.api.builders.permission.Permissions)
which is backed by SpecsenvironmentId
- id of deployment environmentpermission
- permission to setpublic void setEnvironmentPermissions(@NotNull @NotNull String deploymentProjectName, @NotNull @NotNull String environmentName, @NotNull @NotNull com.atlassian.bamboo.specs.api.builders.permission.Permissions permissions)
deploymentProjectName
- deployment project nameenvironmentName
- environment namepermissions
- new permission set@Deprecated public void revokeEnvironmentPermission(long environmentId, @NotNull @NotNull BambooTestPermission permission)
setEnvironmentPermissions(java.lang.String, java.lang.String, com.atlassian.bamboo.specs.api.builders.permission.Permissions)
which is backed by SpecsenvironmentId
- id of deployment environmentpermission
- permission to revokeCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.