Class TextCFType
java.lang.Object
com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType<T,T>
com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType
com.atlassian.jira.issue.customfields.impl.StringCFType
com.atlassian.jira.issue.customfields.impl.TextCFType
- All Implemented Interfaces:
ProjectImportableCustomField
,CustomFieldType
,SortableCustomField<String>
,TextCustomFieldType
,RestAwareCustomFieldType
@Deprecated
@PublicApi
@PublicSpi
public class TextCFType
extends StringCFType
implements SortableCustomField<String>, ProjectImportableCustomField
Deprecated.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
AbstractCustomFieldType.VisitorBase<X>
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionTextCFType
(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager) TextCFType
(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, TextFieldCharacterLengthValidator textFieldCharacterLengthValidator, JiraAuthenticationContext jiraAuthenticationContext) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.int
compare
(String customFieldObjectValue1, String customFieldObjectValue2, FieldConfig fieldConfig) Deprecated.Compares the two custom field objects.protected PersistenceFieldType
Deprecated.Type of database field needed to store this field.Deprecated.Returns an instance ofNonNullCustomFieldProvider
that Jira will use to optimize indexing performance.Deprecated.This method will return aTextLengthValidatingCustomFieldImporter
, be mindful that if you are extending this class you need to have a good hard think about whether this is the right field importer for your custom field values.getSingularObjectFromString
(String string) Deprecated.Returns a Singular Object, given the string value as passed by the presentation tier.Deprecated.Returns theString
representation of a single value within the CustomFieldType.Methods inherited from class com.atlassian.jira.issue.customfields.impl.StringCFType
getDbValueFromObject, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, getObjectFromDbValue, getValueFromCustomFieldParams
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType
createValue, getChangelogValue, getDefaultValue, getJsonDefaultValue, getStringValueFromCustomFieldParams, getValueFromIssue, getValueFromIssue, remove, setDefaultValue, updateValue, validateFromParams
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
assertObjectImplementsType, availableForBulkEdit, getChangelogString, getConfigurationItemTypes, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, 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, requiresAdditionalParams
-
Constructor Details
-
TextCFType
public TextCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, TextFieldCharacterLengthValidator textFieldCharacterLengthValidator, JiraAuthenticationContext jiraAuthenticationContext) Deprecated. -
TextCFType
@Deprecated public TextCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager) Deprecated.Constructor.
-
-
Method Details
-
getNonNullCustomFieldProvider
Deprecated.Description copied from interface:CustomFieldType
Returns an instance ofNonNullCustomFieldProvider
that Jira will use to optimize indexing performance.- Specified by:
getNonNullCustomFieldProvider
in interfaceCustomFieldType
-
getStringFromSingularObject
Deprecated.Description copied from interface:CustomFieldType
Returns theString
representation of a single value within the CustomFieldType. This is the value that is passed to the presentation tier for editing. For single CustomFieldTypes the Singular Object is the same as a Transport Object. However, for multi-dimensional CustomFieldTypes, the Singular Object is the Object contained within theCollection
orMap
- Specified by:
getStringFromSingularObject
in interfaceCustomFieldType
- Parameters:
value
- the object- Returns:
- String representation of the Object
-
getSingularObjectFromString
Deprecated.Description copied from interface:CustomFieldType
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.- Specified by:
getSingularObjectFromString
in interfaceCustomFieldType
- Parameters:
string
- the String- Returns:
- singularObject instance
- Throws:
FieldValidationException
- if the string is an invalid representation of the Object.
-
compare
public int compare(@Nonnull String customFieldObjectValue1, @Nonnull String customFieldObjectValue2, FieldConfig fieldConfig) Deprecated.Description copied from interface:SortableCustomField
Compares the two custom field objects.- Specified by:
compare
in interfaceSortableCustomField<String>
- Parameters:
customFieldObjectValue1
- Never nullcustomFieldObjectValue2
- Never null- Returns:
- 0, 1 or -1
-
getDatabaseType
Deprecated.Description copied from class:AbstractSingleFieldType
Type of database field needed to store this field.- Specified by:
getDatabaseType
in classAbstractSingleFieldType
- Returns:
- One of the predefined
PersistenceFieldType
types.
-
getProjectImporter
Deprecated.This method will return aTextLengthValidatingCustomFieldImporter
, be mindful that if you are extending this class you need to have a good hard think about whether this is the right field importer for your custom field values.- Specified by:
getProjectImporter
in interfaceProjectImportableCustomField
- Returns:
- a
TextLengthValidatingCustomFieldImporter
- See Also:
-
accept
Deprecated.- Overrides:
accept
in classStringCFType
-
GenericTextCFType
instead. Since v5.0.