public class ProjectResource extends Object
Constructor and Description |
---|
ProjectResource(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) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addAssignedRepository(String projectKey,
@Nullable RestIdContainer idContainer,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
createOrUpdateVariable(String projectKey,
@Nullable RestVariable request,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
createProject(RestProject request,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
deleteProject(String projectKey) |
javax.ws.rs.core.Response |
deleteProjectSharedCredentials(String projectKey,
long sharedCredentialsId) |
javax.ws.rs.core.Response |
deleteProjectVariable(String projectKey,
String variableName) |
javax.ws.rs.core.Response |
deleteRepositoryMapping(String projectKey,
Long repositoryId) |
javax.ws.rs.core.Response |
exportProjectSpecs(String projectKey,
String packageNameOpt,
@Nullable String formatParam) |
RestPageModel<RestProjectRepository> |
getPaginatedProjectRepositories(String projectKey,
String filter,
PageRequest pageRequest,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders httpHeaders) |
RestPageModel<RestSharedCredential> |
getPaginatedProjectSharedCredentials(String projectKey,
String filter,
PageRequest pageRequest,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders httpHeaders) |
RestProject |
getProject(String projectKey,
boolean showEmpty,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
RestProjects |
getProjects(boolean showEmpty,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext) |
javax.ws.rs.core.Response |
getProjectVariable(String projectKey,
String variableName) |
javax.ws.rs.core.Response |
getProjectVariables(String projectKey) |
List<RestRepository> |
listAssignedRepositories(String projectKey) |
RestRepositoryList |
searchAvailableRepositories(String projectKey,
String searchTerm,
javax.ws.rs.core.UriInfo uriInfo) |
@Inject public ProjectResource(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)
public RestProjects getProjects(boolean showEmpty, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
public RestProject getProject(String projectKey, boolean showEmpty, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
public RestPageModel<RestProjectRepository> getPaginatedProjectRepositories(String projectKey, String filter, @Context PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders)
public javax.ws.rs.core.Response addAssignedRepository(String projectKey, @Nullable @Nullable RestIdContainer idContainer, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException, WebValidationException
public RestRepositoryList searchAvailableRepositories(String projectKey, String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException
NotFoundException
public List<RestRepository> listAssignedRepositories(String projectKey) throws NotFoundException
NotFoundException
public javax.ws.rs.core.Response deleteRepositoryMapping(String projectKey, Long repositoryId) throws NotFoundException
NotFoundException
public javax.ws.rs.core.Response deleteProject(String projectKey) throws NotFoundException, NotAuthorizedException
public javax.ws.rs.core.Response createProject(@Nullable RestProject request, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response getProjectVariables(String projectKey)
public javax.ws.rs.core.Response getProjectVariable(String projectKey, String variableName)
public javax.ws.rs.core.Response createOrUpdateVariable(String projectKey, @Nullable @Nullable RestVariable request, @Context javax.ws.rs.core.UriInfo uriInfo)
public javax.ws.rs.core.Response deleteProjectVariable(String projectKey, String variableName)
public RestPageModel<RestSharedCredential> getPaginatedProjectSharedCredentials(String projectKey, String filter, @Context PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.HttpHeaders httpHeaders) throws NotFoundException
NotFoundException
public javax.ws.rs.core.Response deleteProjectSharedCredentials(String projectKey, long sharedCredentialsId)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.