com.atlassian.jira.issue.customfields.searchers.renderer
Class DateCustomFieldSearchRenderer

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
      extended by com.atlassian.jira.issue.search.searchers.renderer.AbstractDateSearchRenderer
          extended by com.atlassian.jira.issue.customfields.searchers.renderer.DateCustomFieldSearchRenderer
All Implemented Interfaces:
SearchRenderer

@Internal
public class DateCustomFieldSearchRenderer
extends AbstractDateSearchRenderer
implements SearchRenderer

Since:
v4.0

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.issue.search.searchers.renderer.AbstractDateSearchRenderer
AbstractDateSearchRenderer.TranslationsHelper
 
Field Summary
 
Fields inherited from class com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
EDIT_TEMPLATE_SUFFIX, VIEW_TEMPLATE_SUFFIX
 
Constructor Summary
DateCustomFieldSearchRenderer(boolean isDateTimePicker, CustomField customField, SimpleFieldSearchConstants constants, DateSearcherConfig config, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, VelocityTemplatingEngine templatingEngine, CalendarLanguageUtil calendarUtils, FieldVisibilityManager fieldVisibilityManager)
           
 
Method Summary
protected  Map<String,Object> getVelocityParams(com.atlassian.crowd.embedded.api.User user, SearchContext searchContext, FieldLayoutItem fieldLayoutItem, FieldValuesHolder fieldValuesHolder, Map<?,?> displayParameters, webwork.action.Action action)
           
 boolean isShown(com.atlassian.crowd.embedded.api.User user, SearchContext searchContext)
          Checks if the searcher should be shown in this context on the Issue Navigator.
 
Methods inherited from class com.atlassian.jira.issue.search.searchers.renderer.AbstractDateSearchRenderer
getEditHtml, getViewHtml, isRelevantForQuery
 
Methods inherited from class com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
getI18n, isRelevantForQuery, renderEditTemplate, renderViewTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.search.searchers.renderer.SearchRenderer
getEditHtml, getViewHtml, isRelevantForQuery
 

Constructor Detail

DateCustomFieldSearchRenderer

public DateCustomFieldSearchRenderer(boolean isDateTimePicker,
                                     CustomField customField,
                                     SimpleFieldSearchConstants constants,
                                     DateSearcherConfig config,
                                     VelocityRequestContextFactory velocityRequestContextFactory,
                                     ApplicationProperties applicationProperties,
                                     VelocityTemplatingEngine templatingEngine,
                                     CalendarLanguageUtil calendarUtils,
                                     FieldVisibilityManager fieldVisibilityManager)
Method Detail

getVelocityParams

protected Map<String,Object> getVelocityParams(com.atlassian.crowd.embedded.api.User user,
                                               SearchContext searchContext,
                                               FieldLayoutItem fieldLayoutItem,
                                               FieldValuesHolder fieldValuesHolder,
                                               Map<?,?> displayParameters,
                                               webwork.action.Action action)
Overrides:
getVelocityParams in class AbstractSearchRenderer

isShown

public boolean isShown(com.atlassian.crowd.embedded.api.User user,
                       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
Specified by:
isShown in class AbstractDateSearchRenderer
Parameters:
user - 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-2014 Atlassian. All Rights Reserved.