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, LabelsSearchRenderer, ProjectSearchRenderer, QuerySearchRenderer, WorkRatioSearchRenderer

public abstract class AbstractSearchRenderer
extends java.lang.Object

Abstract class for SearchRenderers that provides some common methods.

Since:
v4.0

Field Summary
protected static java.lang.String EDIT_TEMPLATE_SUFFIX
           
protected static java.lang.String VIEW_TEMPLATE_SUFFIX
           
 
Constructor Summary
AbstractSearchRenderer(VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, com.atlassian.velocity.VelocityManager velocityManager, SimpleFieldSearchConstants searchConstants, java.lang.String searcherNameKey)
           
AbstractSearchRenderer(VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, com.atlassian.velocity.VelocityManager velocityManager, java.lang.String searcherId, java.lang.String searcherNameKey)
           
 
Method Summary
protected  I18nHelper getI18n(com.opensymphony.user.User searcher)
           
protected  java.util.Map<java.lang.String,java.lang.Object> getVelocityParams(com.opensymphony.user.User searcher, SearchContext searchContext, FieldLayoutItem fieldLayoutItem, FieldValuesHolder fieldValuesHolder, java.util.Map<?,?> displayParameters, webwork.action.Action action)
           
protected  boolean isRelevantForQuery(ClauseNames clauseNames, Query query)
           
protected  java.lang.String renderEditTemplate(java.lang.String template, java.util.Map velocityParams)
           
protected  java.lang.String renderViewTemplate(java.lang.String template, java.util.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 java.lang.String EDIT_TEMPLATE_SUFFIX
See Also:
Constant Field Values

VIEW_TEMPLATE_SUFFIX

protected static final java.lang.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,
                              java.lang.String searcherNameKey)

AbstractSearchRenderer

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

getVelocityParams

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

renderEditTemplate

protected java.lang.String renderEditTemplate(java.lang.String template,
                                              java.util.Map velocityParams)

renderViewTemplate

protected java.lang.String renderViewTemplate(java.lang.String template,
                                              java.util.Map velocityParams)

isRelevantForQuery

protected boolean isRelevantForQuery(ClauseNames clauseNames,
                                     Query query)

getI18n

protected I18nHelper getI18n(com.opensymphony.user.User searcher)


Copyright © 2002-2010 Atlassian. All Rights Reserved.