Class BrowseProjectsResource
java.lang.Object
com.atlassian.jira.rest.v1.projectcategories.BrowseProjectsResource
@Path("/browse-project")
@Consumes("application/json")
@Produces("application/json")
public class BrowseProjectsResource
extends Object
REST endpoint for setting the active Project Category and active Project Type on the browse projects page.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBrowseProjectsResource
(JiraAuthenticationContext jiraAuthenticationContext, VelocityRequestContextFactory contextFactory, ProjectManager projectManager, PermissionManager permissionManager) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
Returns the active Project Category.javax.ws.rs.core.Response
setCurrent
(BrowseProjectsResource.ActiveCategory activeCategory) Sets the active project category.javax.ws.rs.core.Response
setSelectedProjectTypeKey
(String currentProjectType) Sets the current project type.
-
Constructor Details
-
BrowseProjectsResource
@Inject public BrowseProjectsResource(JiraAuthenticationContext jiraAuthenticationContext, VelocityRequestContextFactory contextFactory, ProjectManager projectManager, PermissionManager permissionManager)
-
-
Method Details
-
getCurrent
@GET @Path("/category/active") public javax.ws.rs.core.Response getCurrent()Returns the active Project Category.- Returns:
- the active Project Category
-
setCurrent
@POST @Path("/category/active") public javax.ws.rs.core.Response setCurrent(BrowseProjectsResource.ActiveCategory activeCategory) Sets the active project category.- Parameters:
activeCategory
- the active project category- Returns:
- a 200 response.
-
setSelectedProjectTypeKey
@POST @Path("/project-type/active") public javax.ws.rs.core.Response setSelectedProjectTypeKey(String currentProjectType) Sets the current project type.- Parameters:
currentProjectType
- the current project type- Returns:
- a 200 response.
-