GenericTextCFType
instead. Since v5.0.@Deprecated @PublicApi @PublicSpi public class TextCFType extends StringCFType implements SortableCustomField<String>, ProjectImportableCustomField
Modifier and Type | Class and Description |
---|---|
static interface |
TextCFType.Visitor<T>
Deprecated.
|
AbstractCustomFieldType.VisitorBase<X>
customFieldValuePersister, FIELD_TYPE_DATE, FIELD_TYPE_NUMBER, FIELD_TYPE_STRING, FIELD_TYPE_TEXT, genericConfigManager, log
DEFAULT_VALUE_TYPE, RESOURCE_PREVIEW
Constructor and Description |
---|
TextCFType(CustomFieldValuePersister customFieldValuePersister,
GenericConfigManager genericConfigManager)
Deprecated.
|
TextCFType(CustomFieldValuePersister customFieldValuePersister,
GenericConfigManager genericConfigManager,
TextFieldCharacterLengthValidator textFieldCharacterLengthValidator,
JiraAuthenticationContext jiraAuthenticationContext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
accept(AbstractCustomFieldType.VisitorBase visitor)
Deprecated.
|
int |
compare(String customFieldObjectValue1,
String customFieldObjectValue2,
FieldConfig fieldConfig)
Deprecated.
Compares the two custom field objects.
|
protected PersistenceFieldType |
getDatabaseType()
Deprecated.
Type of database field needed to store this field.
|
ProjectCustomFieldImporter |
getProjectImporter()
Deprecated.
This method will return a
TextLengthValidatingCustomFieldImporter , 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. |
Object |
getSingularObjectFromString(String string)
Deprecated.
Returns a Singular Object, given the string value as passed by the presentation tier.
|
String |
getStringFromSingularObject(Object value)
Deprecated.
Returns the
String representation of a single value within the CustomFieldType. |
getDbValueFromObject, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, getObjectFromDbValue, getValueFromCustomFieldParams
createValue, getChangelogValue, getDefaultValue, getJsonDefaultValue, getStringValueFromCustomFieldParams, getValueFromIssue, getValueFromIssue, remove, setDefaultValue, updateValue, validateFromParams
assertObjectImplementsType, availableForBulkEdit, getChangelogString, getConfigurationItemTypes, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, getVelocityParameters, init, isRenderable, valuesEqual
public TextCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, TextFieldCharacterLengthValidator textFieldCharacterLengthValidator, JiraAuthenticationContext jiraAuthenticationContext)
@Deprecated public TextCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager)
TextCFType(com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister, com.atlassian.jira.issue.customfields.manager.GenericConfigManager, com.atlassian.jira.issue.fields.TextFieldCharacterLengthValidator, com.atlassian.jira.security.JiraAuthenticationContext)
instead. Since v6.4.1public String getStringFromSingularObject(Object value)
CustomFieldType
String
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 the Collection
or Map
getStringFromSingularObject
in interface CustomFieldType
value
- the objectpublic Object getSingularObjectFromString(String string) throws FieldValidationException
CustomFieldType
getSingularObjectFromString
in interface CustomFieldType
string
- the StringFieldValidationException
- if the string is an invalid representation of the Object.public int compare(@Nonnull String customFieldObjectValue1, @Nonnull String customFieldObjectValue2, FieldConfig fieldConfig)
SortableCustomField
compare
in interface SortableCustomField<String>
customFieldObjectValue1
- Never nullcustomFieldObjectValue2
- Never null@Nonnull protected PersistenceFieldType getDatabaseType()
AbstractSingleFieldType
getDatabaseType
in class AbstractSingleFieldType
PersistenceFieldType
types.public ProjectCustomFieldImporter getProjectImporter()
TextLengthValidatingCustomFieldImporter
, 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.getProjectImporter
in interface ProjectImportableCustomField
TextLengthValidatingCustomFieldImporter
ProjectImportableCustomField.getProjectImporter()
public Object accept(AbstractCustomFieldType.VisitorBase visitor)
accept
in class StringCFType
Copyright © 2002-2015 Atlassian. All Rights Reserved.