Class BrowseVersionContextImpl
java.lang.Object
com.atlassian.jira.project.browse.BrowseProjectContext
com.atlassian.jira.projects.legacy.versionpanel.BrowseVersionContextImpl
- All Implemented Interfaces:
BrowseVersionContext,BrowseContext
A narrowing of context from
BrowseProjectContext that also includes a Version.- Since:
- v4.0
-
Field Summary
Fields inherited from class com.atlassian.jira.project.browse.BrowseProjectContext
project, projectClause -
Constructor Summary
ConstructorsConstructorDescriptionBrowseVersionContextImpl(Version version, ApplicationUser user) Constructs an instance for this class. -
Method Summary
Modifier and TypeMethodDescriptionCreates a map of the context-specific parameters and their associated domain objects.Creates a newQuerythat narrows it down to the current search context.Contains a context unique that can be used to identify this context.Returns a query string parameter to append to the IssueNavigator URL for field id equal toIssueFieldConstants.FIX_FOR_VERSIONS.Returns versionMethods inherited from class com.atlassian.jira.project.browse.BrowseProjectContext
getExecutingHttpRequest, getIssueSearchPath, getProject, getProjectClause, getProjectManager, getSearchService, getUserMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.project.browse.BrowseContext
getIssueSearchPath, getProject, getUser
-
Constructor Details
-
BrowseVersionContextImpl
Constructs an instance for this class.- Parameters:
version- The version at the center of this contextuser- The user browsing the version- See Also:
-
-
Method Details
-
getQueryString
Returns a query string parameter to append to the IssueNavigator URL for field id equal toIssueFieldConstants.FIX_FOR_VERSIONS. Also includes the project parameter.- Specified by:
getQueryStringin interfaceBrowseContext- Overrides:
getQueryStringin classBrowseProjectContext- Returns:
- a query string parameter to append to the IssueNavigator URL
-
createParameterMap
Description copied from interface:BrowseContextCreates a map of the context-specific parameters and their associated domain objects.- Specified by:
createParameterMapin interfaceBrowseContext- Overrides:
createParameterMapin classBrowseProjectContext- Returns:
- a mapping from parameter name to domain object.
-
getVersion
Description copied from interface:BrowseVersionContextReturns version- Specified by:
getVersionin interfaceBrowseVersionContext- Returns:
- version
-
createQuery
Description copied from interface:BrowseContextCreates a newQuerythat narrows it down to the current search context. E.g. Project, Component, Version- Specified by:
createQueryin interfaceBrowseContext- Overrides:
createQueryin classBrowseProjectContext- Returns:
- A new Query that has a more refined search based on the current context.
-
getContextKey
Description copied from interface:BrowseContextContains a context unique that can be used to identify this context. This is useful when storing things in the session on per context basis.- Specified by:
getContextKeyin interfaceBrowseContext- Overrides:
getContextKeyin classBrowseProjectContext- Returns:
- a unique key for this context
-