Class ProjectsRestServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.service.ProjectsRestServiceImpl
-
- All Implemented Interfaces:
ProjectsRestService
@Component public class ProjectsRestServiceImpl extends Object implements ProjectsRestService
-
-
Constructor Summary
Constructors Constructor Description ProjectsRestServiceImpl(BambooCachingPermissionManagerFacadeFactory bambooCachingPermissionManagerFacadeFactory, DeploymentProjectService deploymentProjectService, ProjectManager projectManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertBuildProjectExists(String projectKey)
Project
getBuildProjectByKey(String projectKey)
List<Project>
getBuildProjects(@NotNull javax.ws.rs.core.UriInfo uriInfo)
Get a list of build projects.List<DeploymentProject>
getDeploymentProjects(@NotNull javax.ws.rs.core.UriInfo uriInfo)
Get a list of deployment projects.
-
-
-
Constructor Detail
-
ProjectsRestServiceImpl
@Inject public ProjectsRestServiceImpl(BambooCachingPermissionManagerFacadeFactory bambooCachingPermissionManagerFacadeFactory, DeploymentProjectService deploymentProjectService, ProjectManager projectManager)
-
-
Method Detail
-
assertBuildProjectExists
public void assertBuildProjectExists(String projectKey) throws NotFoundException
- Specified by:
assertBuildProjectExists
in interfaceProjectsRestService
- Throws:
NotFoundException
-
getBuildProjectByKey
public Project getBuildProjectByKey(String projectKey)
- Specified by:
getBuildProjectByKey
in interfaceProjectsRestService
-
getBuildProjects
public List<Project> getBuildProjects(@NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo)
Description copied from interface:ProjectsRestService
Get a list of build projects. This method provides filtering using the following query params:searchTerm
- if specified return only projects, which name contains specified term
permission
- if specified return only projects that user has this specific permission for
- Specified by:
getBuildProjects
in interfaceProjectsRestService
- Returns:
- Filtered list of build projects.
-
getDeploymentProjects
public List<DeploymentProject> getDeploymentProjects(@NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo)
Description copied from interface:ProjectsRestService
Get a list of deployment projects. This method provides filtering using the following query params:searchTerm
- if specified return only projects, which name contains specified term
permission
- if specified return only plans that user has this specific permission for
- Specified by:
getDeploymentProjects
in interfaceProjectsRestService
- Returns:
- Filtered list of deployment projects.
-
-