com.atlassian.jira.issue.fields
Class KeySystemField
java.lang.Object
com.atlassian.jira.issue.fields.AbstractField
com.atlassian.jira.issue.fields.NavigableFieldImpl
com.atlassian.jira.issue.fields.KeySystemField
- All Implemented Interfaces:
- Field, NavigableField, Comparable
public class KeySystemField
- extends NavigableFieldImpl
KeySystemField
public KeySystemField(VelocityTemplatingEngine templatingEngine,
ApplicationProperties applicationProperties,
JiraAuthenticationContext authenticationContext)
getSorter
public LuceneFieldSorter getSorter()
- Description copied from interface:
NavigableField
- A sorter to be used when sorting columns in a table. This sort uses the Lucene Document Collection
and is therefore a lot faster than sorting the issues in memory.
- Returns:
- A sorter that can be used to sort this field, or null depending on the value of
NavigableField.getSortComparatorSource()
- See Also:
DocumentIssueImpl
,
MappedSortComparator
getSortFields
public List<org.apache.lucene.search.SortField> getSortFields(boolean sortOrder)
- Description copied from interface:
NavigableField
- Return a list of Lucene SortFields to be used for sorting search results.
Using this method allows the field to specify the most performant way to perform a search. If a field can be
sorted directly using the term in the index then this should just return a singleton list with the sort field.
return Collections.singletonList(new SortField(fieldName, sortOrder));
The default implementation builds this using the FieldComparatorSource returned by NavigableField.getSortComparatorSource()
If you implement this method there is no need to implement NavigableField.getSortComparatorSource()
.
- Specified by:
getSortFields
in interface NavigableField
- Overrides:
getSortFields
in class NavigableFieldImpl
- Returns:
- The name of the indexed term to be used for native Lucene sorting.
getColumnViewHtml
public String getColumnViewHtml(FieldLayoutItem fieldLayoutItem,
Map displayParams,
Issue issue)
Copyright © 2002-2012 Atlassian. All Rights Reserved.