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()
BrowseContextgetProject in interface BrowseContextpublic ApplicationUser getUser()
BrowseContextgetUser in interface BrowseContextpublic Query createQuery()
BrowseContextQuery that narrows it down to the current search context.
E.g. Project, Component, VersioncreateQuery in interface BrowseContextprotected TerminalClause getProjectClause()
protected ProjectManager getProjectManager()
protected SearchService getSearchService()
public String getQueryString()
BrowseContextgetQueryString in interface BrowseContextpublic String getIssueSearchPath()
BrowseContext/issues/?jql=. Used to create links to navigator but still in this context.getIssueSearchPath in interface BrowseContextpublic Map<String,Object> createParameterMap()
BrowseContextcreateParameterMap in interface BrowseContextpublic String getContextKey()
BrowseContextgetContextKey in interface BrowseContextprotected javax.servlet.http.HttpServletRequest getExecutingHttpRequest()
Copyright © 2002-2021 Atlassian. All Rights Reserved.