com.atlassian.jira.issue.search.searchers.renderer
Class AbstractSearchRenderer

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
Direct Known Subclasses:
AbstractDateSearchRenderer, AbstractProjectConstantsRenderer, AbstractUserSearchRenderer, IssueConstantsSearchRenderer, IssueTypeSearchRenderer, ProjectSearchRenderer, QuerySearchRenderer, WorkRatioSearchRenderer

public abstract class AbstractSearchRenderer
extends Object

Abstract class for SearchRenderers that provides some common methods.

Since:
v4.0

Field Summary
protected static String EDIT_TEMPLATE_SUFFIX
           
protected static String VIEW_TEMPLATE_SUFFIX
           
 
Constructor Summary
AbstractSearchRenderer(VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, com.atlassian.velocity.VelocityManager velocityManager, SimpleFieldSearchConstants searchConstants, String searcherNameKey)
           
AbstractSearchRenderer(VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, com.atlassian.velocity.VelocityManager velocityManager, String searcherId, String searcherNameKey)
           
 
Method Summary
protected  I18nHelper getI18n(User searcher)
           
protected  Map<String,Object> getVelocityParams(User searcher, SearchContext searchContext, FieldLayoutItem fieldLayoutItem, FieldValuesHolder fieldValuesHolder, Map<?,?> displayParameters, webwork.action.Action action)
           
protected  boolean isRelevantForQuery(ClauseNames clauseNames, Query query)
           
protected  String renderEditTemplate(String template, Map velocityParams)
           
protected  String renderViewTemplate(String template, Map velocityParams)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDIT_TEMPLATE_SUFFIX

protected static final String EDIT_TEMPLATE_SUFFIX
See Also:
Constant Field Values

VIEW_TEMPLATE_SUFFIX

protected static final String VIEW_TEMPLATE_SUFFIX
See Also:
Constant Field Values
Constructor Detail

AbstractSearchRenderer

public AbstractSearchRenderer(VelocityRequestContextFactory velocityRequestContextFactory,
                              ApplicationProperties applicationProperties,
                              com.atlassian.velocity.VelocityManager velocityManager,
                              SimpleFieldSearchConstants searchConstants,
                              String searcherNameKey)

AbstractSearchRenderer

public AbstractSearchRenderer(VelocityRequestContextFactory velocityRequestContextFactory,
                              ApplicationProperties applicationProperties,
                              com.atlassian.velocity.VelocityManager velocityManager,
                              String searcherId,
                              String searcherNameKey)
Method Detail

getVelocityParams

protected Map<String,Object> getVelocityParams(User searcher,
                                               SearchContext searchContext,
                                               FieldLayoutItem fieldLayoutItem,
                                               FieldValuesHolder fieldValuesHolder,
                                               Map<?,?> displayParameters,
                                               webwork.action.Action action)

renderEditTemplate

protected String renderEditTemplate(String template,
                                    Map velocityParams)

renderViewTemplate

protected String renderViewTemplate(String template,
                                    Map velocityParams)

isRelevantForQuery

protected boolean isRelevantForQuery(ClauseNames clauseNames,
                                     Query query)

getI18n

protected I18nHelper getI18n(User searcher)


Copyright © 2002-2010 Atlassian. All Rights Reserved.