com.atlassian.jira.issue.customfields.searchers
Class GroupPickerSearcher

java.lang.Object
  extended bycom.atlassian.jira.issue.customfields.searchers.BaseCustomFieldSearcher
      extended bycom.atlassian.jira.issue.customfields.searchers.AbstractCustomFieldSearcher
          extended bycom.atlassian.jira.issue.customfields.searchers.AbstractSingleValueSearcher
              extended bycom.atlassian.jira.issue.customfields.searchers.GroupPickerSearcher
All Implemented Interfaces:
Comparable, CustomFieldSearcher, CustomFieldStattable, Field, IssueSearcher, SortableCustomFieldSearcher

public class GroupPickerSearcher
extends AbstractSingleValueSearcher
implements CustomFieldStattable, SortableCustomFieldSearcher


Field Summary
protected  MultiGroupConverter groupConverter
           
 
Fields inherited from class com.atlassian.jira.issue.customfields.searchers.BaseCustomFieldSearcher
authenticationContext, customField, descriptor
 
Fields inherited from interface com.atlassian.jira.issue.search.searchers.IssueSearcher
I18N_BUNDLE
 
Constructor Summary
GroupPickerSearcher(MultiGroupConverter groupConverter, FieldVisibilityBean fieldVisibilityBean)
           
 
Method Summary
 LuceneFieldSorter getSorter(CustomField customField)
           
 StatisticsMapper getStatisticsMapper(CustomField customField)
           
 Object getStringValue(CustomField customField, FieldValuesHolder fieldValuesHolder)
           
protected  Collection getValueFromSearchRequest(SearchParameter searchParameter)
           
 void index(org.apache.lucene.document.Document doc, CustomField field, Object value)
          Add index to the given Document object.
protected  SearchParameter makeSearchParameter(CustomField field, String paramValue, String paramPrefix)
           
 void validateParams(SearchContext searchContext, FieldValuesHolder fieldValuesHolder, I18nHelper i18nHelper, ErrorCollection errors)
          Adds error meessages to the errors object if values in the fieldValuesHolder fails validation.
 
Methods inherited from class com.atlassian.jira.issue.customfields.searchers.AbstractSingleValueSearcher
getParamsFromSearchRequest, getQuerySnippet, getViewObject, makeSearchParameters
 
Methods inherited from class com.atlassian.jira.issue.customfields.searchers.AbstractCustomFieldSearcher
getEditHtml, getI18n, getQuerySnippet, getRelatedIndexers, getViewHtml, isExistsInSeachRequest, isRevelentForSeachRequest, populateFromParams, populateFromParams, populateFromSearchRequest, populateSearchRequest, validateParams
 
Methods inherited from class com.atlassian.jira.issue.customfields.searchers.BaseCustomFieldSearcher
compareTo, getDescriptor, getId, getName, getNameKey, getValue, init, init, isShown, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupConverter

protected final MultiGroupConverter groupConverter
Constructor Detail

GroupPickerSearcher

public GroupPickerSearcher(MultiGroupConverter groupConverter,
                           FieldVisibilityBean fieldVisibilityBean)
Method Detail

index

public void index(org.apache.lucene.document.Document doc,
                  CustomField field,
                  Object value)
Description copied from class: AbstractCustomFieldSearcher
Add index to the given Document object. The "value" is/are the value object (s) returned from the CustomFieldType.

Specified by:
index in class AbstractCustomFieldSearcher
Parameters:
doc -
field -
value -

getValueFromSearchRequest

protected Collection getValueFromSearchRequest(SearchParameter searchParameter)
Specified by:
getValueFromSearchRequest in class AbstractSingleValueSearcher

getStringValue

public Object getStringValue(CustomField customField,
                             FieldValuesHolder fieldValuesHolder)
Specified by:
getStringValue in interface CustomFieldSearcher
Overrides:
getStringValue in class BaseCustomFieldSearcher

makeSearchParameter

protected SearchParameter makeSearchParameter(CustomField field,
                                              String paramValue,
                                              String paramPrefix)
                                       throws FieldValidationException
Specified by:
makeSearchParameter in class AbstractSingleValueSearcher
Throws:
FieldValidationException

getStatisticsMapper

public StatisticsMapper getStatisticsMapper(CustomField customField)
Specified by:
getStatisticsMapper in interface CustomFieldStattable

getSorter

public LuceneFieldSorter getSorter(CustomField customField)
Specified by:
getSorter in interface SortableCustomFieldSearcher

validateParams

public void validateParams(SearchContext searchContext,
                           FieldValuesHolder fieldValuesHolder,
                           I18nHelper i18nHelper,
                           ErrorCollection errors)
Description copied from interface: IssueSearcher
Adds error meessages to the errors object if values in the fieldValuesHolder fails validation.

Specified by:
validateParams in interface IssueSearcher
Overrides:
validateParams in class AbstractCustomFieldSearcher


Copyright © 2002-2006 Atlassian. All Rights Reserved.