public class

BrowseProjectsResource

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.v1.projectcategories.BrowseProjectsResource

Class Overview

REST endpoint for setting the active Project Category and active Project Type on the browse projects page.

Summary

Nested Classes
class BrowseProjectsResource.ActiveCategory  
Public Constructors
BrowseProjectsResource(JiraAuthenticationContext jiraAuthenticationContext, VelocityRequestContextFactory contextFactory, ProjectManager projectManager, PermissionManager permissionManager)
Public Methods
Response getCurrent()
Returns the active Project Category.
Response setCurrent(BrowseProjectsResource.ActiveCategory activeCategory)
Sets the active project category.
Response setSelectedProjectTypeKey(String currentProjectType)
Sets the current project type.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BrowseProjectsResource (JiraAuthenticationContext jiraAuthenticationContext, VelocityRequestContextFactory contextFactory, ProjectManager projectManager, PermissionManager permissionManager)

Public Methods

public Response getCurrent ()

Returns the active Project Category.

Returns
  • the active Project Category

public Response setCurrent (BrowseProjectsResource.ActiveCategory activeCategory)

Sets the active project category.

Parameters
activeCategory the active project category
Returns
  • a 200 response.

public Response setSelectedProjectTypeKey (String currentProjectType)

Sets the current project type.

Parameters
currentProjectType the current project type
Returns
  • a 200 response.