Class ProjectResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.resource.ProjectResource
-
public class ProjectResource extends Object
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
enableAllRepositoriesAccess(String projectKey, Long repositoryId, RepositoryResource.RestEnableContainer enableContainer)
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)
-
-
-
Constructor Detail
-
ProjectResource
@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)
-
-
Method Detail
-
getProjects
public RestProjects getProjects(boolean showEmpty, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
getProject
public RestProject getProject(String projectKey, boolean showEmpty, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
-
getPaginatedProjectRepositories
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)
-
addAssignedRepository
public javax.ws.rs.core.Response addAssignedRepository(String projectKey, @Nullable @Nullable RestIdContainer idContainer, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException, WebValidationException
-
searchAvailableRepositories
public RestRepositoryList searchAvailableRepositories(String projectKey, String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException
- Throws:
NotFoundException
-
listAssignedRepositories
public List<RestRepository> listAssignedRepositories(String projectKey) throws NotFoundException
- Throws:
NotFoundException
-
deleteRepositoryMapping
public javax.ws.rs.core.Response deleteRepositoryMapping(String projectKey, Long repositoryId) throws NotFoundException
- Throws:
NotFoundException
-
enableAllRepositoriesAccess
public javax.ws.rs.core.Response enableAllRepositoriesAccess(String projectKey, Long repositoryId, @Nullable RepositoryResource.RestEnableContainer enableContainer) throws WebValidationException
- Throws:
WebValidationException
-
deleteProject
public javax.ws.rs.core.Response deleteProject(String projectKey) throws NotFoundException, NotAuthorizedException
-
createProject
public javax.ws.rs.core.Response createProject(@Nullable RestProject request, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
- Throws:
WebValidationException
-
getProjectVariables
public javax.ws.rs.core.Response getProjectVariables(String projectKey)
-
getProjectVariable
public javax.ws.rs.core.Response getProjectVariable(String projectKey, String variableName)
-
createOrUpdateVariable
public javax.ws.rs.core.Response createOrUpdateVariable(String projectKey, @Nullable @Nullable RestVariable request, @Context javax.ws.rs.core.UriInfo uriInfo)
-
deleteProjectVariable
public javax.ws.rs.core.Response deleteProjectVariable(String projectKey, String variableName)
-
getPaginatedProjectSharedCredentials
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
- Throws:
NotFoundException
-
deleteProjectSharedCredentials
public javax.ws.rs.core.Response deleteProjectSharedCredentials(String projectKey, long sharedCredentialsId)
-
-