Class ImportIdLinkCFType
java.lang.Object
com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType<T,T>
com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType<Double>
com.atlassian.jira.issue.customfields.impl.NumberCFType
com.atlassian.jira.issue.customfields.impl.ImportIdLinkCFType
- All Implemented Interfaces:
ProjectImportableCustomField
,CustomFieldType<Double,
,Double> SortableCustomField<Double>
,ExportableCustomFieldType
,RestAwareCustomFieldType
,RestCustomFieldTypeOperations
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
AbstractCustomFieldType.VisitorBase<X>
-
Field Summary
FieldsFields inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType
customFieldValuePersister, FIELD_TYPE_DATE, FIELD_TYPE_NUMBER, FIELD_TYPE_STRING, FIELD_TYPE_TEXT, genericConfigManager, log
Fields inherited from interface com.atlassian.jira.issue.customfields.CustomFieldType
DEFAULT_VALUE_TYPE, RESOURCE_PREVIEW
-
Constructor Summary
ConstructorsConstructorDescriptionImportIdLinkCFType
(CustomFieldValuePersister customFieldValuePersister, DoubleConverter doubleConverter, ApplicationProperties applicationProperties, GenericConfigManager genericConfigManager) -
Method Summary
Modifier and TypeMethodDescriptionavailableForBulkEdit
(BulkEditBean bulkEditBean) Allow the custom field type perform a specific check as to its availability for bulk editing.getChangelogValue
(CustomField field, Double value) Returns a values to be stored in the change log, example is the id of the changed item.Returns an instance ofNonNullCustomFieldProvider
that Jira will use to optimize indexing performance.getVelocityParameters
(Issue issue, CustomField field, FieldLayoutItem fieldLayoutItem) The custom field may wish to pass parameters to the velocity context beyond the getValueFromIssue methods (eg managers).void
updateValue
(CustomField customField, Issue issue, Double value) the value does exist, and the new value is different than the existing one.Methods inherited from class com.atlassian.jira.issue.customfields.impl.NumberCFType
compare, getDatabaseType, getDbValueFromObject, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, getObjectFromDbValue, getProjectImporter, getRepresentationFromIssue, getRestFieldOperation, getSingularObjectFromString, getStringFromSingularObject
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType
createValue, getDefaultValue, getJsonDefaultValue, getStringValueFromCustomFieldParams, getValueFromCustomFieldParams, getValueFromIssue, getValueFromIssue, remove, setDefaultValue, validateFromParams
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
assertObjectImplementsType, getChangelogString, getConfigurationItemTypes, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, init, isRenderable, valuesEqual
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.issue.customfields.CustomFieldType
areAllRequiredParametersPresent, getCloneOptionConfiguration, getCloneValue, isUserInputRequiredForMove
Methods inherited from interface com.atlassian.jira.issue.fields.rest.RestCustomFieldTypeOperations
getJsonDefaultValue
Methods inherited from interface com.atlassian.jira.issue.customfields.SortableCustomField
compare
-
Field Details
-
BUGZILLA_ID_TYPE
- See Also:
-
BUGZILLA_ID_SEARCHER
- See Also:
-
BUGZILLA_ID_CF_NAME
- See Also:
-
-
Constructor Details
-
ImportIdLinkCFType
public ImportIdLinkCFType(CustomFieldValuePersister customFieldValuePersister, DoubleConverter doubleConverter, ApplicationProperties applicationProperties, GenericConfigManager genericConfigManager)
-
-
Method Details
-
getNonNullCustomFieldProvider
Description copied from interface:CustomFieldType
Returns an instance ofNonNullCustomFieldProvider
that Jira will use to optimize indexing performance.- Specified by:
getNonNullCustomFieldProvider
in interfaceCustomFieldType<Double,
Double> - Overrides:
getNonNullCustomFieldProvider
in classNumberCFType
-
updateValue
Description copied from class:AbstractSingleFieldType
the value does exist, and the new value is different than the existing one.- Specified by:
updateValue
in interfaceCustomFieldType<Double,
Double> - Overrides:
updateValue
in classAbstractSingleFieldType<Double>
- Parameters:
customField
-CustomField
for which the value is being storedissue
- TheIssue
to be stored against.value
- Transport Object representing the value instance of the CustomField.
-
getVelocityParameters
@Nonnull public Map<String,Object> getVelocityParameters(Issue issue, CustomField field, FieldLayoutItem fieldLayoutItem) Description copied from interface:CustomFieldType
The custom field may wish to pass parameters to the velocity context beyond the getValueFromIssue methods (eg managers).The values are added to the context for all velocity views (edit, search, view, xml)
- Specified by:
getVelocityParameters
in interfaceCustomFieldType<Double,
Double> - Overrides:
getVelocityParameters
in classNumberCFType
- Parameters:
issue
- The issue currently in context (Note: this will be null in cases like 'default value')field
- CustomFieldfieldLayoutItem
- FieldLayoutItem- Returns:
- A
Map
of parameters to add to the velocity context, or an empty Map otherwise (never null)
-
availableForBulkEdit
Description copied from interface:CustomFieldType
Allow the custom field type perform a specific check as to its availability for bulk editing.- Specified by:
availableForBulkEdit
in interfaceCustomFieldType<Double,
Double> - Overrides:
availableForBulkEdit
in classAbstractCustomFieldType<Double,
Double> - Parameters:
bulkEditBean
- BulkEditBean- Returns:
- null if available for bulk edit or appropriate unavailable message
-
getChangelogValue
Description copied from interface:CustomFieldType
Returns a values to be stored in the change log, example is the id of the changed item.- Specified by:
getChangelogValue
in interfaceCustomFieldType<Double,
Double> - Overrides:
getChangelogValue
in classNumberCFType
- Parameters:
field
- CustomField that the value belongs tovalue
- Transport Object representing the value instance of the CustomField- Returns:
- Change log value.
-
accept
- Overrides:
accept
in classNumberCFType
-