Class DeploymentPermissionsResource
java.lang.Object
com.atlassian.bamboo.plugins.testutils.rest.resource.deployment.DeploymentPermissionsResource
@Path("deployment/permissions")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class DeploymentPermissionsResource
extends Object
-
Constructor Summary
ConstructorDescriptionDeploymentPermissionsResource
(DeploymentProjectService deploymentProjectService, EnvironmentService environmentService, PermissionsTestService permissionsTestService, RestAuthenticationContext restAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
grantDeploymentProjectPermission
(long deploymentProjectId, String permissionName, String sidType, String sidName, javax.ws.rs.core.UriInfo uriInfo, RestAuthenticationContext restAuthenticationContext) javax.ws.rs.core.Response
grantEnvironmentPermission
(long environmentId, String permissionName, String sidType, String sidName, javax.ws.rs.core.UriInfo uriInfo, RestAuthenticationContext restAuthenticationContext) javax.ws.rs.core.Response
hasDeploymentProjectPermission
(long deploymentProjectId, String permissionName, String sidType, String sidName, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Response
revokeDeploymentProjectPermission
(long deploymentProjectId, String permissionName, String sidType, String sidName, javax.ws.rs.core.UriInfo uriInfo, RestAuthenticationContext restAuthenticationContext) javax.ws.rs.core.Response
revokeEnvironmentPermission
(long environmentId, String permissionName, String sidType, String sidName, javax.ws.rs.core.UriInfo uriInfo, RestAuthenticationContext restAuthenticationContext)
-
Constructor Details
-
DeploymentPermissionsResource
@Inject public DeploymentPermissionsResource(DeploymentProjectService deploymentProjectService, EnvironmentService environmentService, PermissionsTestService permissionsTestService, RestAuthenticationContext restAuthenticationContext)
-
-
Method Details
-
hasDeploymentProjectPermission
@GET @Path("project/{deploymentProjectId}/{permissionName}/{sidType}/{sidName}") public javax.ws.rs.core.Response hasDeploymentProjectPermission(@PathParam("deploymentProjectId") long deploymentProjectId, @PathParam("permissionName") String permissionName, @PathParam("sidType") String sidType, @PathParam("sidName") String sidName, @Context javax.ws.rs.core.UriInfo uriInfo) -
grantDeploymentProjectPermission
@PUT @Path("project/{deploymentProjectId}/{permissionName}/{sidType}/{sidName}") public javax.ws.rs.core.Response grantDeploymentProjectPermission(@PathParam("deploymentProjectId") long deploymentProjectId, @PathParam("permissionName") String permissionName, @PathParam("sidType") String sidType, @PathParam("sidName") String sidName, @Context javax.ws.rs.core.UriInfo uriInfo, @Context RestAuthenticationContext restAuthenticationContext) -
revokeDeploymentProjectPermission
@DELETE @Path("project/{deploymentProjectId}/{permissionName}/{sidType}/{sidName}") public javax.ws.rs.core.Response revokeDeploymentProjectPermission(@PathParam("deploymentProjectId") long deploymentProjectId, @PathParam("permissionName") String permissionName, @PathParam("sidType") String sidType, @PathParam("sidName") String sidName, @Context javax.ws.rs.core.UriInfo uriInfo, @Context RestAuthenticationContext restAuthenticationContext) -
grantEnvironmentPermission
@PUT @Path("environment/{environmentId}/{permissionName}/{sidType}/{sidName}") public javax.ws.rs.core.Response grantEnvironmentPermission(@PathParam("environmentId") long environmentId, @PathParam("permissionName") String permissionName, @PathParam("sidType") String sidType, @PathParam("sidName") String sidName, @Context javax.ws.rs.core.UriInfo uriInfo, @Context RestAuthenticationContext restAuthenticationContext) -
revokeEnvironmentPermission
@DELETE @Path("environment/{environmentId}/{permissionName}/{sidType}/{sidName}") public javax.ws.rs.core.Response revokeEnvironmentPermission(@PathParam("environmentId") long environmentId, @PathParam("permissionName") String permissionName, @PathParam("sidType") String sidType, @PathParam("sidName") String sidName, @Context javax.ws.rs.core.UriInfo uriInfo, @Context RestAuthenticationContext restAuthenticationContext)
-