public class

BrowseProjectContext

extends Object
implements BrowseContext
java.lang.Object
   ↳ com.atlassian.jira.project.browse.BrowseProjectContext

Class Overview

Context for BrowseProject when viewing a project.

Summary

Fields
protected Project project
protected TerminalClause projectClause
Public Constructors
BrowseProjectContext(User user, Project project)
Public Methods
Map<StringObject> createParameterMap()
Creates a map of the context-specific parameters and their associated domain objects.
Query createQuery()
Creates a new Query that narrows it down to the current search context.
String getContextKey()
Contains a context unique that can be used to identify this context.
Project getProject()
The current projecet being browsed.
String getQueryString()
Gets the URL query string for this context.
User getUser()
The user browsing the project.
Protected Methods
HttpServletRequest getExecutingHttpRequest()
TerminalClause getProjectClause()
ProjectManager getProjectManager()
SearchService getSearchService()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.project.browse.BrowseContext

Fields

protected Project project

protected TerminalClause projectClause

Public Constructors

public BrowseProjectContext (User user, Project project)

Public Methods

public Map<StringObject> createParameterMap ()

Creates a map of the context-specific parameters and their associated domain objects.

Returns
  • a mapping from parameter name to domain object.

public Query createQuery ()

Creates a new Query that narrows it down to the current search context. E.g. Project, Component, Version

Returns
  • A new Query that has a more refined search based on the current context.

public String getContextKey ()

Contains a context unique that can be used to identify this context. This is useful when storing things in the session on per context basis.

Returns
  • a unique key for this context

public Project getProject ()

The current projecet being browsed.

Returns
  • The current project.

public String getQueryString ()

Gets the URL query string for this context. Used to create links to navigator but still in this context.

Returns
  • the URL query string for this context.

public User getUser ()

The user browsing the project.

Returns
  • The user browsing the project.

Protected Methods

protected HttpServletRequest getExecutingHttpRequest ()

protected TerminalClause getProjectClause ()

protected ProjectManager getProjectManager ()

protected SearchService getSearchService ()