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 Summary
ConstructorsConstructorDescriptionProjectResource(com.atlassian.sal.api.ApplicationProperties applicationProperties, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, CachedPlanManager cachedPlanManager, FeatureManager featureManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, LabelManager labelManager, ProjectManager projectManager, PlanRestService planRestService, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, RssPermissionManager rssPermissionManager, ProjectConfigurationService projectConfigurationService, SpecsExporter specsExporter, VariableDefinitionManager variableDefinitionManager, VariableConfigurationService variableConfigurationService, CredentialsManager credentialsManager, PaginatedDataCollector paginatedDataCollector, VcsRepositoryManager vcsRepositoryManager, LinkService linkService, SharedCredentialConversionFunction sharedCredentialConversionFunction, RestAuthenticationContext restAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseaddAssignedRepository(String projectKey, @Nullable RestIdContainer idContainer, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.ResponsecreateOrUpdateVariable(String projectKey, @Nullable RestVariable request, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.ResponsecreateProject(@Nullable RestProjectCreate request, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.ResponsedeleteProject(String projectKey) jakarta.ws.rs.core.ResponsedeleteProjectSharedCredentials(String projectKey, long sharedCredentialsId) jakarta.ws.rs.core.ResponsedeleteProjectVariable(String projectKey, String variableName) jakarta.ws.rs.core.ResponsedeleteRepositoryMapping(String projectKey, Long repositoryId) jakarta.ws.rs.core.ResponseenableAllRepositoriesAccess(String projectKey, Long repositoryId, RepositoryResource.RestEnableContainer enableContainer) jakarta.ws.rs.core.ResponseexportProjectSpecs(String projectKey, String packageNameOpt, @Nullable String formatParam) getPaginatedProjectRepositories(String projectKey, String filter, PageRequest pageRequest, jakarta.ws.rs.core.UriInfo uriInfo) getPaginatedProjectSharedCredentials(String projectKey, String filter, PageRequest pageRequest, jakarta.ws.rs.core.UriInfo uriInfo) getProject(String projectKey, boolean showEmpty, jakarta.ws.rs.core.UriInfo uriInfo) getProjects(boolean showEmpty, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.ResponsegetProjectVariable(String projectKey, String variableName) jakarta.ws.rs.core.ResponsegetProjectVariables(String projectKey) listAssignedRepositories(String projectKey) searchAvailableRepositories(String projectKey, String searchTerm, jakarta.ws.rs.core.UriInfo uriInfo)
-
Constructor Details
-
Method Details
-
getProjects
@GET public RestProjects getProjects(@QueryParam("showEmpty") boolean showEmpty, @Context jakarta.ws.rs.core.UriInfo uriInfo) -
getProject
@GET @Path("{projectKey : ([^-/]+)}") public RestProject getProject(@PathParam("projectKey") String projectKey, @DefaultValue("true") @QueryParam("showEmpty") boolean showEmpty, @Context jakarta.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 jakarta.ws.rs.core.UriInfo uriInfo) -
addAssignedRepository
@POST @Path("{projectKey : ([^-/]+)}/repository") public jakarta.ws.rs.core.Response addAssignedRepository(@PathParam("projectKey") String projectKey, @Nullable @Nullable RestIdContainer idContainer, @Context jakarta.ws.rs.core.UriInfo uriInfo) throws NotFoundException, WebValidationException -
searchAvailableRepositories
@GET @Path("{projectKey : ([^-/]+)}/repository/search") public RestRepositoryList searchAvailableRepositories(@PathParam("projectKey") String projectKey, @QueryParam("searchTerm") String searchTerm, @Context jakarta.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 jakarta.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 jakarta.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 jakarta.ws.rs.core.Response deleteProject(@PathParam("projectKey") String projectKey) throws NotFoundException, NotAuthorizedException -
createProject
@POST public jakarta.ws.rs.core.Response createProject(@Nullable @Nullable RestProjectCreate request, @Context jakarta.ws.rs.core.UriInfo uriInfo) throws WebValidationException - Throws:
WebValidationException
-
getProjectVariables
@GET @Path("{projectKey : ([^-/]+)}/variables") public jakarta.ws.rs.core.Response getProjectVariables(@PathParam("projectKey") String projectKey) -
getProjectVariable
-
createOrUpdateVariable
@POST @Path("{projectKey : ([^-/]+)}/variable") public jakarta.ws.rs.core.Response createOrUpdateVariable(@PathParam("projectKey") String projectKey, @Nullable @Nullable RestVariable request, @Context jakarta.ws.rs.core.UriInfo uriInfo) -
deleteProjectVariable
-
exportProjectSpecs
-