Package com.atlassian.jira.issue.fields
Class StatusSystemField
java.lang.Object
com.atlassian.jira.issue.fields.AbstractField
com.atlassian.jira.issue.fields.NavigableFieldImpl
com.atlassian.jira.issue.fields.StatusSystemField
- All Implemented Interfaces:
ExportableSystemField,Field,NavigableField,RestAwareField,SearchableField,Comparable
public class StatusSystemField
extends NavigableFieldImpl
implements SearchableField, RestAwareField, ExportableSystemField
Copyright (c) 2002-2004
All rights reserved.
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
applicationProperties, templatingEngineFields inherited from class com.atlassian.jira.issue.fields.AbstractField
authenticationContextFields inherited from interface com.atlassian.jira.issue.fields.NavigableField
ORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATH -
Constructor Summary
ConstructorsConstructorDescriptionStatusSystemField(VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, StatusStatisticsMapper statusStatisticsMapper, ConstantsManager constantsManager, StatusSearchHandlerFactory searchHandlerFactory, JiraBaseUrls jiraBaseUrls, StatusFormatter statusFormatter) -
Method Summary
Modifier and TypeMethodDescriptionReturnSearchHandlerfor the field.getColumnViewHtml(FieldLayoutItem fieldLayoutItem, Map<String, Object> displayParams, Issue issue) getFieldTypeInfo(FieldTypeInfoContext fieldTypeInfoContext) Returns lower level Information about the field.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.Return a description of the shape of this field when represented as JSON.getRepresentationFromIssue(Issue issue) Returns the name translation of the status, for example: In Progress, etc.getSearchApiFeatureFieldSorts(FieldSort.Order sortOrder) will be moved to parent class once all subclasses are migrated to custom sorting implementation https://bulldog.internal.atlassian.com/browse/DCDORA-1572A sorter to be used when sorting columns in a table.prettyPrintChangeHistory(String changeHistory, I18nHelper i18nHelper) Return an internationalized value for the changeHistory item - a status name in this case.Methods inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
getApplicationProperties, getColumnCssClass, getColumnHeadingKey, getDefaultSortOrder, getFieldSorts, getHiddenFieldId, getSortComparatorSource, getSortFields, getVelocityParams, prettyPrintChangeHistory, renderTemplateMethods inherited from class com.atlassian.jira.issue.fields.AbstractField
compareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.atlassian.jira.issue.fields.Field
getId, getName, getNameKeyMethods inherited from interface com.atlassian.jira.issue.fields.NavigableField
getValueLoader, hasSortsDefined, prettyPrintChangeHistory
-
Constructor Details
-
StatusSystemField
public StatusSystemField(VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, StatusStatisticsMapper statusStatisticsMapper, ConstantsManager constantsManager, StatusSearchHandlerFactory searchHandlerFactory, JiraBaseUrls jiraBaseUrls, StatusFormatter statusFormatter)
-
-
Method Details
-
getSorter
Description copied from interface:NavigableFieldA 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.- Specified by:
getSorterin interfaceNavigableField- Returns:
- A sorter that can be used to sort this field, or null depending on the value of
NavigableField.getSortComparatorSource() - See Also:
-
getColumnViewHtml
public String getColumnViewHtml(FieldLayoutItem fieldLayoutItem, Map<String, Object> displayParams, Issue issue) - Specified by:
getColumnViewHtmlin interfaceNavigableField
-
createAssociatedSearchHandler
Description copied from interface:SearchableFieldReturnSearchHandlerfor the field. This object tells JIRA how to search for values within the field.- Specified by:
createAssociatedSearchHandlerin interfaceSearchableField- Returns:
- the SearchHandler associated with the field. Can return
nullwhen no searcher is associated with the field. This will mainly happen when a customfield is configured to have no searcher.
-
prettyPrintChangeHistory
Return an internationalized value for the changeHistory item - a status name in this case.- Specified by:
prettyPrintChangeHistoryin interfaceNavigableField- Overrides:
prettyPrintChangeHistoryin classNavigableFieldImpl- Parameters:
changeHistory- name of statusi18nHelper- used to translate the status name- Returns:
- String
-
getFieldTypeInfo
Description copied from interface:RestAwareFieldReturns lower level Information about the field. This information contains allowed values and/or the autocomplete url- Specified by:
getFieldTypeInfoin interfaceRestAwareField- Parameters:
fieldTypeInfoContext- theFieldTypeInfoContextcontains context information that is relevant to generate theFieldTypeInfo
-
getJsonSchema
Description copied from interface:RestAwareFieldReturn a description of the shape of this field when represented as JSON.- Specified by:
getJsonSchemain interfaceRestAwareField
-
getJsonFromIssue
public FieldJsonRepresentation getJsonFromIssue(Issue issue, boolean renderedVersionRequired, FieldLayoutItem fieldLayoutItem) Description copied from interface:RestAwareFieldReturn 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.- Specified by:
getJsonFromIssuein interfaceRestAwareField- Parameters:
issue- 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.- Returns:
- 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.
-
getRepresentationFromIssue
Returns the name translation of the status, for example: In Progress, etc.- Specified by:
getRepresentationFromIssuein interfaceExportableSystemField- Parameters:
issue- to get the field representation for- Returns:
- exportable representation of the issue's field.
-
getSearchApiFeatureFieldSorts
will be moved to parent class once all subclasses are migrated to custom sorting implementation https://bulldog.internal.atlassian.com/browse/DCDORA-1572- Overrides:
getSearchApiFeatureFieldSortsin classNavigableFieldImpl
-