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

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.AbstractMultiCustomFieldSearcher
              extended bycom.atlassian.jira.issue.customfields.searchers.VersionSearcher
All Implemented Interfaces:
Comparable, CustomFieldSearcher, Field, IssueSearcher, SortableCustomFieldSearcher

public class VersionSearcher
extends AbstractMultiCustomFieldSearcher
implements SortableCustomFieldSearcher


Field Summary
 
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
VersionSearcher(VersionManager versionManager, FieldVisibilityBean fieldVisibilityBean)
           
 
Method Summary
 String getEditHtml(SearchContext searchContext, FieldValuesHolder fieldValuesHolder, Map displayParameters, webwork.action.Action action)
           
 String getQuerySnippet(CustomField customField, SearchRequest searchRequest)
          Returns a query string that can be interpreted by the IssueNavigator action to execute this as a search request.
 LuceneFieldSorter getSorter(CustomField customField)
           
 void index(org.apache.lucene.document.Document doc, CustomField field, Object value)
          Add index to the given Document object.
 
Methods inherited from class com.atlassian.jira.issue.customfields.searchers.AbstractMultiCustomFieldSearcher
getParamsFromSearchRequest, getSearchDescription, makeSearchParameters
 
Methods inherited from class com.atlassian.jira.issue.customfields.searchers.AbstractCustomFieldSearcher
getI18n, getQuerySnippet, getRelatedIndexers, getViewHtml, isExistsInSeachRequest, isRevelentForSeachRequest, populateFromParams, populateFromParams, populateFromSearchRequest, populateSearchRequest, validateParams, validateParams
 
Methods inherited from class com.atlassian.jira.issue.customfields.searchers.BaseCustomFieldSearcher
compareTo, getDescriptor, getId, getName, getNameKey, getStringValue, getValue, init, init, isShown, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionSearcher

public VersionSearcher(VersionManager versionManager,
                       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 -

getQuerySnippet

public String getQuerySnippet(CustomField customField,
                              SearchRequest searchRequest)
Description copied from class: AbstractCustomFieldSearcher
Returns a query string that can be interpreted by the IssueNavigator action to execute this as a search request. The query string can then be used to partially reconstruct the searchRequest being passed i. The returned query string should be encoded using JiraUrlCodec.encode(java.lang.String) and begin with an &.

Specified by:
getQuerySnippet in class AbstractCustomFieldSearcher
Parameters:
customField - - custom field call this method
searchRequest - - the search request to get the url parameters from
Returns:
String encoded query string

getEditHtml

public String getEditHtml(SearchContext searchContext,
                          FieldValuesHolder fieldValuesHolder,
                          Map displayParameters,
                          webwork.action.Action action)
Specified by:
getEditHtml in interface IssueSearcher
Overrides:
getEditHtml in class AbstractCustomFieldSearcher

getSorter

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


Copyright © 2002-2006 Atlassian. All Rights Reserved.