public class StatusSystemField extends NavigableFieldImpl implements SearchableField, RestAwareField, ExportableSystemField
applicationProperties, templatingEngineauthenticationContextORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATH| Constructor and Description |
|---|
StatusSystemField(VelocityTemplatingEngine templatingEngine,
ApplicationProperties applicationProperties,
JiraAuthenticationContext authenticationContext,
StatusStatisticsMapper statusStatisticsMapper,
ConstantsManager constantsManager,
StatusSearchHandlerFactory searchHandlerFactory,
JiraBaseUrls jiraBaseUrls,
StatusFormatter statusFormatter) |
| Modifier and Type | Method and Description |
|---|---|
SearchHandler |
createAssociatedSearchHandler()
Return
SearchHandler for the field. |
String |
getColumnViewHtml(FieldLayoutItem fieldLayoutItem,
Map<String,Object> displayParams,
Issue issue) |
FieldTypeInfo |
getFieldTypeInfo(FieldTypeInfoContext fieldTypeInfoContext)
Returns lower level Information about the field.
|
FieldJsonRepresentation |
getJsonFromIssue(Issue issue,
boolean renderedVersionRequired,
FieldLayoutItem fieldLayoutItem)
Return a FieldJsonDataPair containing a json representation of the raw data for this field, and if required, a json representation
of the rendered data for easy display.
|
JsonType |
getJsonSchema()
Return a description of the shape of this field when represented as JSON.
|
FieldExportParts |
getRepresentationFromIssue(Issue issue)
Returns the name translation of the status, for example: In Progress, etc.
|
LuceneFieldSorter |
getSorter()
A sorter to be used when sorting columns in a table.
|
String |
prettyPrintChangeHistory(String changeHistory,
I18nHelper i18nHelper)
Return an internationalized value for the changeHistory item - a status name in this case.
|
getApplicationProperties, getColumnCssClass, getColumnHeadingKey, getDefaultSortOrder, getHiddenFieldId, getSortComparatorSource, getSortFields, getVelocityParams, prettyPrintChangeHistory, renderTemplatecompareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetId, getName, getNameKeycompareTopublic StatusSystemField(VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, StatusStatisticsMapper statusStatisticsMapper, ConstantsManager constantsManager, StatusSearchHandlerFactory searchHandlerFactory, JiraBaseUrls jiraBaseUrls, StatusFormatter statusFormatter)
public LuceneFieldSorter getSorter()
NavigableFieldgetSorter in interface NavigableFieldNavigableField.getSortComparatorSource()DocumentIssueImpl,
MappedSortComparatorpublic String getColumnViewHtml(FieldLayoutItem fieldLayoutItem, Map<String,Object> displayParams, Issue issue)
getColumnViewHtml in interface NavigableFieldpublic SearchHandler createAssociatedSearchHandler()
SearchableFieldSearchHandler for the field. This object tells JIRA how to search for values within the field.createAssociatedSearchHandler in interface SearchableFieldnull when no searcher
is associated with the field. This will mainly happen when a customfield is configured to have no
searcher.public String prettyPrintChangeHistory(String changeHistory, I18nHelper i18nHelper)
prettyPrintChangeHistory in interface NavigableFieldprettyPrintChangeHistory in class NavigableFieldImplchangeHistory - name of statusi18nHelper - used to translate the status namepublic FieldTypeInfo getFieldTypeInfo(FieldTypeInfoContext fieldTypeInfoContext)
RestAwareFieldgetFieldTypeInfo in interface RestAwareFieldfieldTypeInfoContext - the FieldTypeInfoContext contains context information that is relevant to generate the FieldTypeInfopublic JsonType getJsonSchema()
RestAwareFieldgetJsonSchema in interface RestAwareFieldpublic FieldJsonRepresentation getJsonFromIssue(Issue issue, boolean renderedVersionRequired, FieldLayoutItem fieldLayoutItem)
RestAwareFieldgetJsonFromIssue in interface RestAwareFieldissue - to get field data fromrenderedVersionRequired - whether the use requested the return of rendered/pretty data as well as raw datafieldLayoutItem - field layout for this field. Will only be supplied if the field is also an ordereable field.public FieldExportParts getRepresentationFromIssue(Issue issue)
getRepresentationFromIssue in interface ExportableSystemFieldissue - to get the field representation forCopyright © 2002-2018 Atlassian. All Rights Reserved.