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, logFields 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.intcompare(String customFieldObjectValue1, String customFieldObjectValue2, FieldConfig fieldConfig) Deprecated.Compares the two custom field objects.protected PersistenceFieldTypeDeprecated.Type of database field needed to store this field.Deprecated.Returns an instance ofNonNullCustomFieldProviderthat 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 theStringrepresentation of a single value within the CustomFieldType.Methods inherited from class com.atlassian.jira.issue.customfields.impl.StringCFType
getDbValueFromObject, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, getObjectFromDbValue, getValueFromCustomFieldParamsMethods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType
createValue, getChangelogValue, getDefaultValue, getJsonDefaultValue, getStringValueFromCustomFieldParams, getValueFromIssue, getValueFromIssue, remove, setDefaultValue, updateValue, validateFromParamsMethods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
assertObjectImplementsType, availableForBulkEdit, getChangelogString, getConfigurationItemTypes, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, getVelocityParameters, init, isRenderable, valuesEqualMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.issue.customfields.CustomFieldType
areAllRequiredParametersPresent, getCloneOptionConfiguration, getCloneValue, getIndexers, 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:CustomFieldTypeReturns an instance ofNonNullCustomFieldProviderthat Jira will use to optimize indexing performance.- Specified by:
getNonNullCustomFieldProviderin interfaceCustomFieldType
-
getStringFromSingularObject
Deprecated.Description copied from interface:CustomFieldTypeReturns theStringrepresentation 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 theCollectionorMap- Specified by:
getStringFromSingularObjectin interfaceCustomFieldType- Parameters:
value- the object- Returns:
- String representation of the Object
-
getSingularObjectFromString
Deprecated.Description copied from interface:CustomFieldTypeReturns 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:
getSingularObjectFromStringin 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:SortableCustomFieldCompares the two custom field objects.- Specified by:
comparein interfaceSortableCustomField<String>- Parameters:
customFieldObjectValue1- Never nullcustomFieldObjectValue2- Never null- Returns:
- 0, 1 or -1
-
getDatabaseType
Deprecated.Description copied from class:AbstractSingleFieldTypeType of database field needed to store this field.- Specified by:
getDatabaseTypein classAbstractSingleFieldType- Returns:
- One of the predefined
PersistenceFieldTypetypes.
-
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:
getProjectImporterin interfaceProjectImportableCustomField- Returns:
- a
TextLengthValidatingCustomFieldImporter - See Also:
-
accept
Deprecated.- Overrides:
acceptin classStringCFType
-
GenericTextCFTypeinstead. Since v5.0.