public class ProjectResource extends Object
Constructor and Description |
---|
ProjectResource(BambooPermissionManager bambooPermissionsManager,
BambooUserManager bambooUserManager,
CachedPlanManager cachedPlanManager,
LabelManager labelManager,
ProjectManager projectManager,
PlanRestService planRestService) |
Modifier and Type | Method and Description |
---|---|
RestProjects |
getAllProjects(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.
|
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.
|
public ProjectResource(BambooPermissionManager bambooPermissionsManager, BambooUserManager bambooUserManager, CachedPlanManager cachedPlanManager, LabelManager labelManager, ProjectManager projectManager, PlanRestService planRestService)
public RestProjects getAllProjects(boolean showEmpty, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
showEmpty
- flag to display projects without plans. As Bamboo doesn't have project level permissions
only user with global BambooPermission.ADMINISTRATION
permission can see empty projects.uriInfo
- authenticationContext
- public RestProject getProject(String projectKey, boolean showEmpty, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
projectKey
- project keyshowEmpty
- flag to return project without plans. As Bamboo doesn't have project level permissions
only user with global BambooPermission.ADMINISTRATION
permission can see empty projects.uriInfo
- authenticationContext
- Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.