Class WatchesSystemField

All Implemented Interfaces:
ExportableSystemField, Field, NavigableField, RestAwareField, Comparable

public class WatchesSystemField extends NavigableFieldImpl implements RestAwareField, ExportableSystemField
Since:
4.4
  • Constructor Details

  • Method Details

    • getFieldSorts

      public List<FieldSort> getFieldSorts(FieldSort.Order sortOrder)
      Description copied from interface: NavigableField
      Returns a list of FieldSort objects that can be used to sort this field.
      Specified by:
      getFieldSorts in interface NavigableField
      Parameters:
      sortOrder - the order in which to sort the field
      Returns:
      a list of FieldSort objects that can be used to sort this field
    • getValueLoader

      public FieldValueLoader<?> getValueLoader()
      Description copied from interface: NavigableField
      A loader to be used when loading the value of the field from the index.
      Specified by:
      getValueLoader in interface NavigableField
      Returns:
      A loader that can be used to load the value of the field
      See Also:
    • getColumnViewHtml

      public String getColumnViewHtml(FieldLayoutItem fieldLayoutItem, Map displayParams, Issue issue)
      Specified by:
      getColumnViewHtml in interface NavigableField
    • getFieldTypeInfo

      public FieldTypeInfo getFieldTypeInfo(FieldTypeInfoContext fieldTypeInfoContext)
      Description copied from interface: RestAwareField
      Returns lower level Information about the field. This information contains allowed values and/or the autocomplete url
      Specified by:
      getFieldTypeInfo in interface RestAwareField
      Parameters:
      fieldTypeInfoContext - the FieldTypeInfoContext contains context information that is relevant to generate the FieldTypeInfo
    • getJsonSchema

      public JsonType getJsonSchema()
      Description copied from interface: RestAwareField
      Return a description of the shape of this field when represented as JSON.
      Specified by:
      getJsonSchema in interface RestAwareField
    • getJsonFromIssue

      public FieldJsonRepresentation getJsonFromIssue(Issue issue, boolean renderedVersionRequired, FieldLayoutItem fieldLayoutItem)
      Description copied from interface: RestAwareField
      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.
      Specified by:
      getJsonFromIssue in interface RestAwareField
      Parameters:
      issue - to get field data from
      renderedVersionRequired - whether the use requested the return of rendered/pretty data as well as raw data
      fieldLayoutItem - 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

      public FieldExportParts getRepresentationFromIssue(Issue issue)
      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:
      getRepresentationFromIssue in interface ExportableSystemField
      Parameters:
      issue - to get field representation for
      Returns:
      Exportable representation of the field