public abstract class AbstractOrderableNavigableFieldImpl<V> extends AbstractOrderableField<V> implements NavigableField
authenticationContextORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATHMOVE_ISSUE_PARAM_KEY, NO_HEADER_PARAM_KEY, TEMPLATE_DIRECTORY_PATH| Constructor and Description |
|---|
AbstractOrderableNavigableFieldImpl(String id,
String name,
VelocityTemplatingEngine templatingEngine,
ApplicationProperties applicationProperties,
JiraAuthenticationContext authenticationContext,
PermissionManager permissionManager,
SearchHandlerFactory searchHandlerFactory) |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnCssClass() |
String |
getHiddenFieldId()
Returns the id of the field to check for visibility.
|
org.apache.lucene.search.FieldComparatorSource |
getSortComparatorSource()
A default implementation that returns a
MappedSortComparator
from NavigableField.getSorter(). |
List<org.apache.lucene.search.SortField> |
getSortFields(boolean sortOrder)
Return a list of Lucene SortFields to be used for sorting search results.
|
protected Map<String,Object> |
getVelocityParams(I18nHelper isI18nHelper,
Map displayParams,
Issue issue) |
String |
prettyPrintChangeHistory(String changeHistory) |
String |
prettyPrintChangeHistory(String changeHistory,
I18nHelper i18nHelper)
Used for email notification templates - allows changelog to be displayed in language of the recipient.
|
createAssociatedSearchHandler, getApplicationProperties, getBulkEditHtml, getCreateHtml, getEditHtml, getPermissionManager, getRelevantParams, getVelocityParams, getVelocityParams, getViewHtml, hasBulkUpdatePermission, hasParam, hasPermission, isHidden, populateFromParams, rendererTypesEqual, renderTemplate, valuesEqualcompareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetColumnHeadingKey, getColumnViewHtml, getDefaultSortOrder, getSortergetId, getName, getNameKeycompareToavailableForBulkEdit, canRemoveValueFromIssueObject, createValue, getCreateHtml, getDefaultValue, getEditHtml, getValueFromParams, getViewHtml, getViewHtml, hasValue, isShown, needsMove, populateDefaults, populateForMove, populateFromIssue, populateParamsFromString, removeValueFromIssueObject, updateIssue, updateValue, validateParamspublic AbstractOrderableNavigableFieldImpl(String id, String name, VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, SearchHandlerFactory searchHandlerFactory)
protected Map<String,Object> getVelocityParams(I18nHelper isI18nHelper, Map displayParams, Issue issue)
public org.apache.lucene.search.FieldComparatorSource getSortComparatorSource()
MappedSortComparator
from NavigableField.getSorter().getSortComparatorSource in interface NavigableFieldpublic 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 NavigableFieldpublic String getColumnCssClass()
getColumnCssClass in interface NavigableFieldpublic String getHiddenFieldId()
NavigableFieldgetHiddenFieldId in interface NavigableFieldpublic String prettyPrintChangeHistory(String changeHistory)
prettyPrintChangeHistory in interface NavigableFieldpublic String prettyPrintChangeHistory(String changeHistory, I18nHelper i18nHelper)
NavigableFieldprettyPrintChangeHistory in interface NavigableFieldCopyright © 2002-2016 Atlassian. All Rights Reserved.