Class ProjectsRestServiceImpl
java.lang.Object
com.atlassian.bamboo.plugins.rest.service.ProjectsRestServiceImpl
- All Implemented Interfaces:
ProjectsRestService
-
Constructor Summary
ConstructorDescriptionProjectsRestServiceImpl
(BambooCachingPermissionManagerFacadeFactory bambooCachingPermissionManagerFacadeFactory, DeploymentProjectService deploymentProjectService, ProjectManager projectManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
assertBuildProjectExists
(String projectKey) getBuildProjectByKey
(String projectKey) getBuildProjects
(@NotNull javax.ws.rs.core.UriInfo uriInfo) Get a list of build projects.getDeploymentProjects
(@NotNull javax.ws.rs.core.UriInfo uriInfo) Get a list of deployment projects.
-
Constructor Details
-
ProjectsRestServiceImpl
@Inject public ProjectsRestServiceImpl(BambooCachingPermissionManagerFacadeFactory bambooCachingPermissionManagerFacadeFactory, DeploymentProjectService deploymentProjectService, ProjectManager projectManager)
-
-
Method Details
-
assertBuildProjectExists
- Specified by:
assertBuildProjectExists
in interfaceProjectsRestService
- Throws:
NotFoundException
-
getBuildProjectByKey
- Specified by:
getBuildProjectByKey
in interfaceProjectsRestService
-
getBuildProjects
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.
-