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

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.customfields.searchers.renderer.UserPickerGroupCustomFieldRenderer
All Implemented Interfaces:
SearchRenderer

public class UserPickerGroupCustomFieldRenderer
extends AbstractUserSearchRenderer
implements SearchRenderer

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
UserPickerGroupCustomFieldRenderer(CustomField field, UserFieldSearchConstants searchConstants, 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(User searcher)
          Returns a list of select box options
 boolean isShown(User searcher, 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.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

UserPickerGroupCustomFieldRenderer

public UserPickerGroupCustomFieldRenderer(CustomField field,
                                          UserFieldSearchConstants searchConstants,
                                          String nameKey,
                                          VelocityRequestContextFactory velocityRequestContextFactory,
                                          ApplicationProperties applicationProperties,
                                          com.atlassian.velocity.VelocityManager velocityManager,
                                          UserPickerSearchService searchService,
                                          FieldVisibilityManager fieldVisibilityManager)
Method Detail

isShown

public boolean isShown(User searcher,
                       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
Parameters:
searcher - 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.

getSelectedListOptions

protected List<Map<String,String>> getSelectedListOptions(User searcher)
Returns a list of select box options

Specified by:
getSelectedListOptions in class AbstractUserSearchRenderer
Parameters:
searcher - performing this action.
Returns:
a list of select box options

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.


Copyright © 2002-2009 Atlassian. All Rights Reserved.