Class AbstractSearchRenderer
java.lang.Object
com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
- All Implemented Interfaces:
SearchRenderer
- Direct Known Subclasses:
AbstractDateSearchRenderer,AbstractProjectConstantsRenderer,AbstractUserSearchRenderer,GenericTextSearchRenderer,IssueConstantsSearchRenderer,IssueLinkTypesSearchRenderer,IssueTypeSearchRenderer,LabelsSearchRenderer,ProjectSearchRenderer,TextQuerySearchRenderer,WorkRatioSearchRenderer
Abstract class for SearchRenderers that provides some common methods.
- Since:
- v4.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSearchRenderer(VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, VelocityTemplatingEngine templatingEngine, SimpleFieldSearchConstants searchConstants, String searcherNameKey) AbstractSearchRenderer(VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, VelocityTemplatingEngine templatingEngine, String searcherId, String searcherNameKey) -
Method Summary
Modifier and TypeMethodDescriptionprotected I18nHelpergetI18n(ApplicationUser searcher) getVelocityParams(ApplicationUser searcher, SearchContext searchContext, FieldLayoutItem fieldLayoutItem, FieldValuesHolder fieldValuesHolder, Map<?, ?> displayParameters, webwork.action.Action action) protected booleanisRelevantForQuery(ClauseNames clauseNames, Query query) protected StringrenderEditTemplate(String template, Map<String, Object> velocityParams) protected StringrenderViewTemplate(String template, Map<String, Object> velocityParams) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.issue.search.searchers.renderer.SearchRenderer
getEditHtml, getViewHtml, isRelevantForQuery, isShown
-
Field Details
-
EDIT_TEMPLATE_SUFFIX
- See Also:
-
VIEW_TEMPLATE_SUFFIX
- See Also:
-
-
Constructor Details
-
AbstractSearchRenderer
public AbstractSearchRenderer(VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, VelocityTemplatingEngine templatingEngine, SimpleFieldSearchConstants searchConstants, String searcherNameKey) -
AbstractSearchRenderer
public AbstractSearchRenderer(VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, VelocityTemplatingEngine templatingEngine, String searcherId, String searcherNameKey)
-
-
Method Details
-
getVelocityParams
protected Map<String,Object> getVelocityParams(ApplicationUser searcher, SearchContext searchContext, FieldLayoutItem fieldLayoutItem, FieldValuesHolder fieldValuesHolder, Map<?, ?> displayParameters, webwork.action.Action action) -
renderEditTemplate
-
renderViewTemplate
-
isRelevantForQuery
-
getI18n
-