|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.mock.issue.fields.MockNavigableField
public class MockNavigableField
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.jira.issue.fields.NavigableField |
|---|
ORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATH |
| Constructor Summary | |
|---|---|
MockNavigableField(String id)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
String |
getColumnCssClass()
|
String |
getColumnHeadingKey()
|
String |
getColumnViewHtml(FieldLayoutItem fieldLayoutItem,
Map displayParams,
Issue issue)
|
String |
getDefaultSortOrder()
The order in which to sort the field when it is sorted for the first time. |
String |
getHiddenFieldId()
Returns the id of the field to check for visibility. |
String |
getId()
The unique id of the field |
String |
getName()
Returns i18n'ed name of the field. |
String |
getNameKey()
The i18n key that is used to lookup the field's name when it is displayed |
org.apache.lucene.search.FieldComparatorSource |
getSortComparatorSource()
A sortComparatorSource object to be used for sorting columns in a table. |
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. |
int |
hashCode()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockNavigableField(String id)
| Method Detail |
|---|
public String getId()
Field
getId in interface Fieldpublic String getColumnHeadingKey()
getColumnHeadingKey in interface NavigableFieldpublic String getColumnCssClass()
getColumnCssClass in interface NavigableFieldpublic String getDefaultSortOrder()
NavigableField
getDefaultSortOrder in interface NavigableFieldNavigableField.ORDER_ASCENDING or NavigableField.ORDER_DESCENDINGpublic org.apache.lucene.search.FieldComparatorSource getSortComparatorSource()
NavigableFieldMappedSortComparator using the NavigableField.getSorter()
method. However, fields can provide any sorting mechanism that they wish.
If a field can be sorted directly using terms in the Lucene index then the field should implement NavigableField.getSortFields(boolean sortOrder)
rather than this method.
In large installations custom sorting may incur a maor performance penalty.
getSortComparatorSource in interface NavigableFieldpublic List<org.apache.lucene.search.SortField> getSortFields(boolean sortOrder)
NavigableField
return Collections.singletonList(new SortField(fieldName, sortOrder));
NavigableField.getSortComparatorSource()
If you implement this method there is no need to implement NavigableField.getSortComparatorSource().
getSortFields in interface NavigableFieldpublic LuceneFieldSorter getSorter()
NavigableField
getSorter in interface NavigableFieldNavigableField.getSortComparatorSource()DocumentIssueImpl,
MappedSortComparator
public String getColumnViewHtml(FieldLayoutItem fieldLayoutItem,
Map displayParams,
Issue issue)
getColumnViewHtml in interface NavigableFieldpublic String getHiddenFieldId()
NavigableField
getHiddenFieldId in interface NavigableFieldpublic String prettyPrintChangeHistory(String changeHistory)
prettyPrintChangeHistory in interface NavigableField
public String prettyPrintChangeHistory(String changeHistory,
I18nHelper i18nHelper)
NavigableField
prettyPrintChangeHistory in interface NavigableFieldpublic String getNameKey()
Field
getNameKey in interface Fieldpublic String getName()
Field
getName in interface Fieldpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(Object o)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||