Package com.atlassian.jira.issue.fields
Class WatchesSystemField
java.lang.Object
com.atlassian.jira.issue.fields.AbstractField
com.atlassian.jira.issue.fields.NavigableFieldImpl
com.atlassian.jira.issue.fields.WatchesSystemField
- All Implemented Interfaces:
ExportableSystemField,Field,NavigableField,RestAwareField,Comparable
public class WatchesSystemField
extends NavigableFieldImpl
implements RestAwareField, ExportableSystemField
- Since:
- 4.4
-
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
ConstructorsConstructorDescriptionWatchesSystemField(VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, JiraBaseUrls jiraBaseUrls) -
Method Summary
Modifier and TypeMethodDescriptiongetColumnViewHtml(FieldLayoutItem fieldLayoutItem, Map displayParams, Issue issue) getFieldSorts(FieldSort.Order sortOrder) Returns a list ofFieldSortobjects that can be used to sort this field.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) This creates a multi-column representation of the watchers, with value in it being one of the watchers.A loader to be used when loading the value of the field from the index.Methods inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
getApplicationProperties, getColumnCssClass, getColumnHeadingKey, getDefaultSortOrder, getHiddenFieldId, getVelocityParams, prettyPrintChangeHistory, 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
hasSortsDefined, prettyPrintChangeHistory
-
Constructor Details
-
WatchesSystemField
public WatchesSystemField(VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, JiraBaseUrls jiraBaseUrls)
-
-
Method Details
-
getFieldSorts
Description copied from interface:NavigableFieldReturns a list ofFieldSortobjects that can be used to sort this field.- Specified by:
getFieldSortsin interfaceNavigableField- Parameters:
sortOrder- the order in which to sort the field- Returns:
- a list of
FieldSortobjects that can be used to sort this field
-
getValueLoader
Description copied from interface:NavigableFieldA loader to be used when loading the value of the field from the index.- Specified by:
getValueLoaderin interfaceNavigableField- Returns:
- A loader that can be used to load the value of the field
- See Also:
-
getColumnViewHtml
- Specified by:
getColumnViewHtmlin interfaceNavigableField
-
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
This creates a multi-column representation of the watchers, with value in it being one of the watchers. This is to be compatible with the JIM importer.- Specified by:
getRepresentationFromIssuein interfaceExportableSystemField- Parameters:
issue- to get field representation for- Returns:
- Exportable representation of the field
-