java.lang.Object | |||
↳ | com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType<T, S> | ||
↳ | com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType<T> | ||
↳ | com.atlassian.jira.issue.customfields.impl.SelectCFType |
Select Custom Field Type allows selecting of a single Option
.
Transport Object is Option
dl>
Option
String
of Option IDNested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SelectCFType.Visitor<T> |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a String of representing values to be stored in the change log, an example is the name of a version
field that a version id will resolve to within JIRA.
| |||||||||||
Returns a List of
FieldConfigItemType objects. | |||||||||||
Returns lower level Information about the field.
| |||||||||||
Returns a Set of issue ids (
Long ) that have the given option selected. | |||||||||||
Return a JsonData representation of the field value
| |||||||||||
Return a description of the shape of this field when represented as JSON.
| |||||||||||
Returns all possible Options for this field.
| |||||||||||
Returns the object that will perform the actual project import functions for the custom field type.
| |||||||||||
This method should be implemented in your custom type to return a Query.
| |||||||||||
Returns the RestFieldOperationsHandler for this field.
| |||||||||||
Returns a Singular Object, given the string value as passed by the presentation tier.
| |||||||||||
called when removing a field.
| |||||||||||
This default implementation will remove all values from the custom field for an issue.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Type of database field needed to store this field.
| |||||||||||
Returns the database representation of the Java object as stored for that CustomField.
| |||||||||||
Returns the Transport Object for the given Custom Field value as represented by the value
stored in the database
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Returns a String of representing values to be stored in the change log, an example is the name of a version field that a version id will resolve to within JIRA.
field | CustomField that the value belongs to |
---|---|
value | Transport Object representing the value instance of the CustomField |
Returns a List of FieldConfigItemType
objects. Can not be immutable.
This opens up possibilities for configurable custom fields.
FieldConfigItemType
Returns lower level Information about the field. This information contains allowed values and/or the autocomplete url
fieldTypeInfoContext | context information for generating the FieldTypeInfo . |
---|
Returns a Set of issue ids (Long
) that have the given option selected.
field | the CustomField to search on |
---|---|
option | the Object representing a single value to search on. |
Return a JsonData representation of the field value
field | configuration of the current field |
---|---|
issue | to get field data from |
renderedVersionRequested | whether the use requested the return of rendered/pretty data as well as raw data |
fieldLayoutItem | field layout for this field. |
Return a description of the shape of this field when represented as JSON.
Returns all possible Options for this field.
config | configuration for this field |
---|---|
jiraContextNode | context |
Returns the object that will perform the actual project import functions for the custom field type.
This method should be implemented in your custom type to return a Query. Generally you should return a TermQuery
in the form of fieldName:groupName
. However some custom fields, such as (@Link SelectCFType)
manipulate the field identifiers and values before storing in the index. In cases like this you will have to
implement the method such that it searches the correct fields.
fieldID | the id of the custom field |
---|---|
groupName | the name of the group to filter on |
Returns the RestFieldOperationsHandler for this field.
field | the Custom Field |
---|
Returns a Singular Object, given the string value as passed by the presentation tier. Throws FieldValidationException if the string is an invalid representation of the Object.
string | the String |
---|
FieldValidationException |
---|
called when removing a field. return issue IDs affected.
Subclasses should override this if they have specific cleanup that they need to do (such as removing select list values)
This default implementation will remove all values from the custom field for an issue. Since there can only be one value for each CustomField instance, this implementation can safely ignore the objectValue
field | being edited |
---|---|
issue | to remove stuff from |
option | - ignored |
Type of database field needed to store this field.
PersistenceFieldType
types.
Returns the database representation of the Java object as stored for that CustomField.
(eg. ProjectId if the Value represents a project). Must be compatable with type returned by getDatabaseType()
customFieldObject | the Transport Object |
---|
Returns the Transport Object for the given Custom Field value as represented by the value stored in the database
databaseValue | - String, Double or Date objects as returned from getDbValueFromObject(Object) |
---|
FieldValidationException |
---|