Class ProjectResource

java.lang.Object
com.atlassian.bamboo.plugins.rest.resource.ProjectResource

@Path("project") @Consumes({"application/xml","application/json"}) @Produces({"application/xml","application/json"}) public class ProjectResource extends Object
  • Constructor Details

  • Method Details

    • getProjects

      @GET public RestProjects getProjects(@QueryParam("showEmpty") boolean showEmpty, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getProject

      @GET @Path("{projectKey : ([^-/]+)}") public RestProject getProject(@PathParam("projectKey") String projectKey, @DefaultValue("true") @QueryParam("showEmpty") boolean showEmpty, @Context javax.ws.rs.core.UriInfo uriInfo)
    • getPaginatedProjectRepositories

      @GET @Path("/{projectKey : ([^-/]+)}/repositories") public RestPageModel<RestProjectRepository> getPaginatedProjectRepositories(@PathParam("projectKey") String projectKey, @QueryParam("filter") @DefaultValue("") String filter, @BeanParam PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo)
    • addAssignedRepository

      @POST @Path("{projectKey : ([^-/]+)}/repository") public javax.ws.rs.core.Response addAssignedRepository(@PathParam("projectKey") String projectKey, @Nullable @Nullable RestIdContainer idContainer, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException, WebValidationException
      Throws:
      NotFoundException
      WebValidationException
    • searchAvailableRepositories

      @GET @Path("{projectKey : ([^-/]+)}/repository/search") public RestRepositoryList searchAvailableRepositories(@PathParam("projectKey") String projectKey, @QueryParam("searchTerm") String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException
      Throws:
      NotFoundException
    • listAssignedRepositories

      @GET @Consumes("application/json") @Produces("application/json") @Path("{projectKey : ([^-/]+)}/repository") public List<RestRepository> listAssignedRepositories(@PathParam("projectKey") String projectKey) throws NotFoundException
      Throws:
      NotFoundException
    • deleteRepositoryMapping

      @DELETE @Path("{projectKey : ([^-/]+)}/repository/{repositoryId}") public javax.ws.rs.core.Response deleteRepositoryMapping(@PathParam("projectKey") String projectKey, @PathParam("repositoryId") Long repositoryId) throws NotFoundException
      Throws:
      NotFoundException
    • enableAllRepositoriesAccess

      @PUT @Path("{projectKey : ([^-/]+)}/repository/{repositoryId}/enableAllRepositoriesAccess") public javax.ws.rs.core.Response enableAllRepositoriesAccess(@PathParam("projectKey") String projectKey, @PathParam("repositoryId") Long repositoryId, @Nullable RepositoryResource.RestEnableContainer enableContainer) throws WebValidationException
      Throws:
      WebValidationException
    • deleteProject

      @DELETE @Path("{projectKey : ([^-/]+)}") public javax.ws.rs.core.Response deleteProject(@PathParam("projectKey") String projectKey) throws NotFoundException, NotAuthorizedException
      Throws:
      NotFoundException
      NotAuthorizedException
    • createProject

      @POST public javax.ws.rs.core.Response createProject(@Nullable @Nullable RestProjectCreate request, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
      Throws:
      WebValidationException
    • getProjectVariables

      @GET @Path("{projectKey : ([^-/]+)}/variables") public javax.ws.rs.core.Response getProjectVariables(@PathParam("projectKey") String projectKey)
    • getProjectVariable

      @GET @Path("{projectKey : ([^-/]+)}/variable/{variableName}") public javax.ws.rs.core.Response getProjectVariable(@PathParam("projectKey") String projectKey, @PathParam("variableName") String variableName)
    • createOrUpdateVariable

      @POST @Path("{projectKey : ([^-/]+)}/variable") public javax.ws.rs.core.Response createOrUpdateVariable(@PathParam("projectKey") String projectKey, @Nullable @Nullable RestVariable request, @Context javax.ws.rs.core.UriInfo uriInfo)
    • deleteProjectVariable

      @DELETE @Path("{projectKey : ([^-/]+)}/variable/{variableName}") public javax.ws.rs.core.Response deleteProjectVariable(@PathParam("projectKey") String projectKey, @PathParam("variableName") String variableName)
    • getPaginatedProjectSharedCredentials

      @GET @Path("/{projectKey : ([^-/]+)}/sharedCredentials") public RestPageModel<RestSharedCredential> getPaginatedProjectSharedCredentials(@PathParam("projectKey") String projectKey, @QueryParam("filter") @DefaultValue("") String filter, @BeanParam PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException
      Throws:
      NotFoundException
    • deleteProjectSharedCredentials

      @DELETE @Path("/{projectKey : ([^-/]+)}/sharedCredentials/{sharedCredentialId}") public javax.ws.rs.core.Response deleteProjectSharedCredentials(@PathParam("projectKey") String projectKey, @PathParam("sharedCredentialId") long sharedCredentialsId)
    • exportProjectSpecs

      @GET @Path("{projectKey : ([^-/]+)}/specs") public javax.ws.rs.core.Response exportProjectSpecs(@PathParam("projectKey") String projectKey, @QueryParam("package") String packageNameOpt, @Nullable @QueryParam("format") @Nullable String formatParam)