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) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addAssignedRepository(String projectKey,
RestIdContainer idContainer,
javax.ws.rs.core.UriInfo uriInfo)
Grant permission to create/edit plan in given project by Bamboo Specs from given repository.
|
javax.ws.rs.core.Response |
deleteProject(String projectKey)
Marks project for deletion.
|
javax.ws.rs.core.Response |
deleteRepositoryMapping(String projectKey,
Long repositoryId)
Remove approval to create plans in given project by given repository
|
RestProject |
getProject(String projectKey,
boolean showEmpty,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Method used to retrieve information for project specified as project key.
|
RestProjects |
getProjects(boolean showEmpty,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Method used to list all projects defined in Bamboo.
|
List<RestRepository> |
listAssignedRepositories(String projectKey)
Fetch list of repositories which granted to create plan in given project by Repository stored Bamboo Specs.
|
RestRepositoryList |
searchAvailableRepositories(String projectKey,
String searchTerm,
javax.ws.rs.core.UriInfo uriInfo)
Search for linked repositories which can be granted to create plans by Repository stored Bamboo Specs in given
project
|
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)
public RestProjects getProjects(boolean showEmpty, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Possible expand parameters:
showEmpty
- flag to display projects without planspublic RestProject getProject(String projectKey, boolean showEmpty, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Possible expand parameters:
projectKey
- project keyshowEmpty
- flag to return project without planspublic javax.ws.rs.core.Response addAssignedRepository(String projectKey, @Nullable RestIdContainer idContainer, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException, WebValidationException
projectKey
- project keyidContainer
- repository idNotFoundException
- if project or repository not foundWebValidationException
- if idContainer is empty or nullAccessDeniedException
- when user has not administration permission to projectpublic RestRepositoryList searchAvailableRepositories(String projectKey, String searchTerm, @Context javax.ws.rs.core.UriInfo uriInfo) throws NotFoundException
projectKey
- project keysearchTerm
- part of repository name. Used to filter output.NotFoundException
- if project not foundAccessDeniedException
- when user has not administration permission to projectpublic List<RestRepository> listAssignedRepositories(String projectKey) throws NotFoundException
projectKey
- project keyNotFoundException
- if project not foundAccessDeniedException
- when user has not administration permission to projectpublic javax.ws.rs.core.Response deleteRepositoryMapping(String projectKey, Long repositoryId) throws NotFoundException
projectKey
- project keyrepositoryId
- linked repository root idNotFoundException
- if can't find project or repositoryAccessDeniedException
- when user has not administration permission to projectpublic javax.ws.rs.core.Response deleteProject(String projectKey) throws NotFoundException, NotAuthorizedException
projectKey
- project keyNotFoundException
- if project not foundAccessDeniedException
- when user has not administration permission to projectNotAuthorizedException
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.