com.atlassian.jira.issue.search.searchers.renderer
Class AbstractProjectConstantsRenderer
java.lang.Object
com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
com.atlassian.jira.issue.search.searchers.renderer.AbstractProjectConstantsRenderer
- All Implemented Interfaces:
- SearchRenderer
- Direct Known Subclasses:
- AffectedVersionRenderer, ComponentSearchRenderer, FixForVersionRenderer
public abstract class AbstractProjectConstantsRenderer
- extends AbstractSearchRenderer
- implements SearchRenderer
An abstract renderer for the project constants (versions and components).
- Since:
- v4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractProjectConstantsRenderer
public AbstractProjectConstantsRenderer(VelocityRequestContextFactory velocityRequestContextFactory,
ApplicationProperties applicationProperties,
com.atlassian.velocity.VelocityManager velocityManager,
FieldVisibilityManager fieldVisibilityManager,
SimpleFieldSearchConstantsWithEmpty searchConstants,
String searcherNameKey)
isRelevantForQuery
public boolean isRelevantForQuery(User searcher,
Query query)
- Description copied from interface:
SearchRenderer
- Checks if the searchRequest object has a search representation that was created by the searcher and is
used to determine if the
SearchRenderer.getViewHtml(User, com.atlassian.jira.issue.search.SearchContext, com.atlassian.jira.issue.transport.FieldValuesHolder, java.util.Map, webwork.action.Action)
method should be called when rendering the search summary.
- Specified by:
isRelevantForQuery
in interface SearchRenderer
- Parameters:
searcher
- performing this action.query
- contains the search criteria used to determine if this query is relevevant to the searcher.
- Returns:
- true if the query has relevant clauses to the searchers, false otherwise.
isShown
public boolean isShown(User searcher,
SearchContext searchContext)
- Description copied from interface:
SearchRenderer
- Checks if the searcher should be shown in this context on the Issue Navigator.
- Specified by:
isShown
in interface SearchRenderer
- Parameters:
searcher
- performing this action.searchContext
- the context of the search (i.e. projects and issue types selected).
- Returns:
- true if the searcher will appear in the issue navigator, false otherwise.
Copyright © 2002-2011 Atlassian. All Rights Reserved.