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

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
      extended by com.atlassian.jira.issue.search.searchers.renderer.AbstractUserSearchRenderer
          extended by com.atlassian.jira.issue.search.searchers.renderer.AssigneeSearchRenderer
All Implemented Interfaces:
SearchRenderer

public class AssigneeSearchRenderer
extends AbstractUserSearchRenderer
implements SearchRenderer

An search renderer for the assignee field.

Since:
v4.0

Field Summary
 
Fields inherited from class com.atlassian.jira.issue.search.searchers.renderer.AbstractUserSearchRenderer
SELECT_LIST_GROUP, SELECT_LIST_NONE, SELECT_LIST_USER
 
Fields inherited from class com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
EDIT_TEMPLATE_SUFFIX, VIEW_TEMPLATE_SUFFIX
 
Constructor Summary
AssigneeSearchRenderer(String nameKey, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, com.atlassian.velocity.VelocityManager velocityManager, UserPickerSearchService searchService, FieldVisibilityManager fieldVisibilityManager)
           
 
Method Summary
protected  String getEmptyValueKey()
           
protected  List<Map<String,String>> getSelectedListOptions(com.atlassian.crowd.embedded.api.User searcher)
           
 boolean isShown(com.atlassian.crowd.embedded.api.User searcher, SearchContext searchContext)
          Returns true or false based on fieldVisibilityManager value.
 
Methods inherited from class com.atlassian.jira.issue.search.searchers.renderer.AbstractUserSearchRenderer
getEditHtml, getTextForuser, getVelocityParams, 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

AssigneeSearchRenderer

public AssigneeSearchRenderer(String nameKey,
                              VelocityRequestContextFactory velocityRequestContextFactory,
                              ApplicationProperties applicationProperties,
                              com.atlassian.velocity.VelocityManager velocityManager,
                              UserPickerSearchService searchService,
                              FieldVisibilityManager fieldVisibilityManager)
Method Detail

getSelectedListOptions

protected List<Map<String,String>> getSelectedListOptions(com.atlassian.crowd.embedded.api.User searcher)
Specified by:
getSelectedListOptions in class AbstractUserSearchRenderer
Parameters:
searcher - performing the action.
Returns:
the select list options that are displayed for this user searcher (e.g. SpecificUser, CurrentUser...)

getEmptyValueKey

protected String getEmptyValueKey()
Specified by:
getEmptyValueKey in class AbstractUserSearchRenderer
Returns:
the i18n key for the text that describes an empty value for this searcher.

isShown

public boolean isShown(com.atlassian.crowd.embedded.api.User searcher,
                       SearchContext searchContext)
Returns true or false based on fieldVisibilityManager value. Returns false if field is hidden in all schemes, true otherwise.

Specified by:
isShown in interface SearchRenderer
Parameters:
searcher - performing this action.
searchContext - search context
Returns:
false if hidden in all schemes, true otherwise


Copyright © 2002-2012 Atlassian. All Rights Reserved.