| java.lang.Object | ||
| ↳ | com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType<T, S> | |
| ↳ | com.atlassian.jira.issue.customfields.impl.AbstractMultiCFType<S> | |
Known Direct Subclasses
|
@PublicSpi
Clients of @PublicSpi can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicSpi as per each product's API policy (clients should refer to each product's API policy for
the exact guarantee -- usually binary compatibility is guaranteed at least across minor versions).
@PublicSpi interfaces and classes are specifically designed to be implemented/extended by clients.
Hence, the guarantee of binary compatibility is different to that of @PublicApi elements (if an element
is both @PublicApi and @PublicSpi, both guarantees apply).
Abstract class for Multi-select Custom field types.
Note that there is also another multi-select Custom Field for arbitrary Options - (MultiSelectCFType which lives in jira-core).
The Transport Object for this Custom Field type is a Collection of S, where S is defined by the subclass
Data is stored in the database a representations of a single S. E.g. A Custom Field that stores multiple Users,
will have each user saved seperately as an Object defined by convertTypeToDbValue(S)
See the javadoc of updateValue(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.Issue, Object),
createValue(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.Issue, Object), and
setDefaultValue(com.atlassian.jira.issue.fields.config.FieldConfig, Object) for instance.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AbstractMultiCFType.Visitor<X> | |||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.issue.customfields.CustomFieldType
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| customFieldValuePersister | |||||||||||
| genericConfigManager | |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a multi-select value for an issue.
| |||||||||||
Returns a string representation of the value if not null.
| |||||||||||
called when removing a field.
| |||||||||||
Sets the default value for a Custom Field.
| |||||||||||
Update a multi-select value for an issue.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Converts a collection of objects representing the underlying type to a collection of underlying types.
| |||||||||||
Converts a given db value to Single form of Transport Object
| |||||||||||
Converts a given underlying type to its db storage value.
| |||||||||||
Converts a collection of underlying types to a collection of db representations of underlying type.
| |||||||||||
Type of database field needed to store this field.
| |||||||||||
Returns a comparator for underlying type of this custom field.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.issue.customfields.CustomFieldType
| |||||||||||
Create a multi-select value for an issue.
| customField | CustomField for which the value is being stored |
|---|---|
| issue | The Issue. |
| value | Transport Object representing the value instance of the CustomField. |
Returns a string representation of the value if not null.
| field | not used |
|---|---|
| values | value to create a change log for |
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)
Sets the default value for a Custom Field.
| fieldConfig | CustomField for which the default is being stored |
|---|---|
| value | Transport Object representing the value instance of the CustomField. |
Update a multi-select value for an issue.
| customField | CustomField for which the value is being stored |
|---|---|
| issue | The Issue. |
| value | Transport Object representing the value instance of the CustomField. |
Converts a collection of objects representing the underlying type to a collection of underlying types. Returns empty list when given strings collection is null.
| dbObjects | collection of db representations of types. |
|---|
Converts a given db value to Single form of Transport Object
| dbValue | db representation as returned by convertTypeToDbValue(Object) |
|---|
Converts a given underlying type to its db storage value. Must be compatable with PersistenceFieldType returned by getDatabaseType()
| value | Single form of Transport Object |
|---|
Converts a collection of underlying types to a collection of db representations of underlying type.
If a Collection of String is passed, then a new Collection is still created, containing the original String values.
| typedList | a collection of underlying types |
|---|
Type of database field needed to store this field.
PersistenceFieldType types.
Returns a comparator for underlying type of this custom field. Used e.g. for sorting values retrieved from the Database