public class KeySystemField extends NavigableFieldImpl implements ExportableSystemField
applicationProperties, templatingEngineauthenticationContextORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATH| Constructor and Description |
|---|
KeySystemField(VelocityTemplatingEngine templatingEngine,
ApplicationProperties applicationProperties,
JiraAuthenticationContext authenticationContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnViewHtml(FieldLayoutItem fieldLayoutItem,
Map<String,Object> displayParams,
Issue issue) |
FieldExportParts |
getRepresentationFromIssue(Issue issue)
Returns a Multi Item representation of the field.
|
LuceneFieldSorter |
getSorter()
A sorter to be used when sorting columns in a table.
|
List<org.apache.lucene.search.SortField> |
getSortFields(boolean sortOrder)
Return a list of Lucene SortFields to be used for sorting search results.
|
getApplicationProperties, getColumnCssClass, getColumnHeadingKey, getDefaultSortOrder, getHiddenFieldId, getSortComparatorSource, getVelocityParams, prettyPrintChangeHistory, prettyPrintChangeHistory, renderTemplatecompareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitprettyPrintChangeHistorygetId, getName, getNameKeycompareTopublic KeySystemField(VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext)
public LuceneFieldSorter getSorter()
NavigableFieldgetSorter in interface NavigableFieldNavigableField.getSortComparatorSource()DocumentIssueImpl,
MappedSortComparatorpublic List<org.apache.lucene.search.SortField> getSortFields(boolean sortOrder)
NavigableFieldUsing 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().
getSortFields in interface NavigableFieldgetSortFields in class NavigableFieldImplpublic String getColumnViewHtml(FieldLayoutItem fieldLayoutItem, Map<String,Object> displayParams, Issue issue)
getColumnViewHtml in interface NavigableFieldpublic FieldExportParts getRepresentationFromIssue(Issue issue)
getRepresentationFromIssue in interface ExportableSystemFieldissue - to get export for the fieldCopyright © 2002-2023 Atlassian. All Rights Reserved.