com.atlassian.jira.issue.index.indexers.impl
Class UserFieldIndexer

java.lang.Object
  extended by com.atlassian.jira.issue.index.indexers.impl.BaseFieldIndexer
      extended by com.atlassian.jira.issue.index.indexers.impl.UserFieldIndexer
All Implemented Interfaces:
FieldIndexer
Direct Known Subclasses:
AssigneeIndexer, CreatorIndexer, ReporterIndexer, VoterIndexer, WatcherIndexer

public abstract class UserFieldIndexer
extends BaseFieldIndexer

Abstract FieldIndexer that has helper methods to index usernames in a case-insensitive manner consistent with what Crowd Embedded does.

Since:
v5.0

Field Summary
 
Fields inherited from interface com.atlassian.jira.issue.index.indexers.FieldIndexer
LABELS_NO_VALUE_INDEX_VALUE, NO_VALUE_INDEX_VALUE
 
Constructor Summary
protected UserFieldIndexer(FieldVisibilityManager fieldVisibilityManager)
           
 
Method Summary
protected  void indexUserKey(org.apache.lucene.document.Document doc, String indexField, String userkey, Issue issue)
           
protected  void indexUserkeyWithDefault(org.apache.lucene.document.Document doc, String indexField, String userkey, String defaultValue, Issue issue)
          Index a single userkey field (case intact), with a default if the field is not set
 
Methods inherited from class com.atlassian.jira.issue.index.indexers.impl.BaseFieldIndexer
compareTo, equals, hashCode, indexDateField, indexDependentEntities, indexFoldedKeyword, indexKeyword, indexKeywordWithDefault, indexKeywordWithDefault, indexLocalDateField, indexLongAsKeyword, indexLongAsPaddedKeywordWithDefault, indexLongAsPaddedKeywordWithDefault, indexText, indexTextForSorting, isFieldVisibleAndInScope
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.index.indexers.FieldIndexer
addIndex, getDocumentFieldId, getId
 

Constructor Detail

UserFieldIndexer

protected UserFieldIndexer(FieldVisibilityManager fieldVisibilityManager)
Method Detail

indexUserKey

protected void indexUserKey(org.apache.lucene.document.Document doc,
                            String indexField,
                            String userkey,
                            Issue issue)

indexUserkeyWithDefault

protected void indexUserkeyWithDefault(org.apache.lucene.document.Document doc,
                                       String indexField,
                                       String userkey,
                                       String defaultValue,
                                       Issue issue)
Index a single userkey field (case intact), with a default if the field is not set



Copyright © 2002-2014 Atlassian. All Rights Reserved.