public class BrowseProjectContext extends Object implements BrowseContext
Modifier and Type | Field and Description |
---|---|
protected Project |
project |
protected TerminalClause |
projectClause |
Constructor and Description |
---|
BrowseProjectContext(ApplicationUser user,
Project project) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
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.
|
protected javax.servlet.http.HttpServletRequest |
getExecutingHttpRequest() |
String |
getIssueSearchPath()
Gets the URL for this context, which includes
/issues/?jql= . |
Project |
getProject()
The current projecet being browsed.
|
protected TerminalClause |
getProjectClause() |
protected ProjectManager |
getProjectManager() |
String |
getQueryString()
Gets the URL query string for this context.
|
protected SearchService |
getSearchService() |
ApplicationUser |
getUser()
The user browsing the project.
|
protected Project project
protected TerminalClause projectClause
public BrowseProjectContext(ApplicationUser user, Project project)
public Project getProject()
BrowseContext
getProject
in interface BrowseContext
public ApplicationUser getUser()
BrowseContext
getUser
in interface BrowseContext
public Query createQuery()
BrowseContext
Query
that narrows it down to the current search context.
E.g. Project, Component, VersioncreateQuery
in interface BrowseContext
protected TerminalClause getProjectClause()
protected ProjectManager getProjectManager()
protected SearchService getSearchService()
public String getQueryString()
BrowseContext
getQueryString
in interface BrowseContext
public String getIssueSearchPath()
BrowseContext
/issues/?jql=
. Used to create links to navigator but still in this context.getIssueSearchPath
in interface BrowseContext
public Map<String,Object> createParameterMap()
BrowseContext
createParameterMap
in interface BrowseContext
public String getContextKey()
BrowseContext
getContextKey
in interface BrowseContext
protected javax.servlet.http.HttpServletRequest getExecutingHttpRequest()
Copyright © 2002-2021 Atlassian. All Rights Reserved.