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 TypeMethodDescriptionjavax.ws.rs.core.ResponseaddAssignedRepository(String projectKey, @Nullable RestIdContainer idContainer, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsecreateOrUpdateVariable(String projectKey, @Nullable RestVariable request, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsecreateProject(@Nullable RestProjectCreate request, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsedeleteProject(String projectKey) javax.ws.rs.core.ResponsedeleteProjectSharedCredentials(String projectKey, long sharedCredentialsId) javax.ws.rs.core.ResponsedeleteProjectVariable(String projectKey, String variableName) javax.ws.rs.core.ResponsedeleteRepositoryMapping(String projectKey, Long repositoryId) javax.ws.rs.core.ResponseenableAllRepositoriesAccess(String projectKey, Long repositoryId, RepositoryResource.RestEnableContainer enableContainer) javax.ws.rs.core.ResponseexportProjectSpecs(String projectKey, String packageNameOpt, @Nullable String formatParam) getPaginatedProjectRepositories(String projectKey, String filter, PageRequest pageRequest, javax.ws.rs.core.UriInfo uriInfo) getPaginatedProjectSharedCredentials(String projectKey, String filter, PageRequest pageRequest, javax.ws.rs.core.UriInfo uriInfo) getProject(String projectKey, boolean showEmpty, javax.ws.rs.core.UriInfo uriInfo) getProjects(boolean showEmpty, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsegetProjectVariable(String projectKey, String variableName) javax.ws.rs.core.ResponsegetProjectVariables(String projectKey) listAssignedRepositories(String projectKey) searchAvailableRepositories(String projectKey, String searchTerm, javax.ws.rs.core.UriInfo uriInfo)
-
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 -
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 -
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
-
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
-
exportProjectSpecs
-