GenericTextCFType instead. Since v5.0.@Deprecated @PublicSpi public abstract class StringCFType extends AbstractSingleFieldType implements RestAwareCustomFieldType, TextCustomFieldType
| Modifier and Type | Class and Description |
|---|---|
static interface |
StringCFType.Visitor<T>
Deprecated.
|
AbstractCustomFieldType.VisitorBase<X>customFieldValuePersister, FIELD_TYPE_DATE, FIELD_TYPE_NUMBER, FIELD_TYPE_STRING, FIELD_TYPE_TEXT, genericConfigManager, logDEFAULT_VALUE_TYPE, RESOURCE_PREVIEW| Constructor and Description |
|---|
StringCFType(CustomFieldValuePersister customFieldValuePersister,
GenericConfigManager genericConfigManager)
Deprecated.
|
StringCFType(CustomFieldValuePersister customFieldValuePersister,
GenericConfigManager genericConfigManager,
TextFieldCharacterLengthValidator textFieldCharacterLengthValidator,
JiraAuthenticationContext jiraAuthenticationContext)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(AbstractCustomFieldType.VisitorBase visitor)
Deprecated.
|
protected Object |
getDbValueFromObject(Object customFieldObject)
Deprecated.
Returns the database representation of the Java object as stored for that CustomField.
|
FieldTypeInfo |
getFieldTypeInfo(FieldTypeInfoContext fieldTypeInfoContext)
Deprecated.
Returns lower level Information about the field.
|
FieldJsonRepresentation |
getJsonFromIssue(CustomField field,
Issue issue,
boolean renderedVersionRequested,
FieldLayoutItem fieldLayoutItem)
Deprecated.
Return a JsonData representation of the field value
|
JsonType |
getJsonSchema(CustomField customField)
Deprecated.
Return a description of the shape of this field when represented as JSON.
|
protected Object |
getObjectFromDbValue(Object databaseValue)
Deprecated.
Returns the Transport Object for the given Custom Field value as represented by the value
stored in the database
|
String |
getValueFromCustomFieldParams(CustomFieldParams relevantParams)
Deprecated.
Retrieves the Transport Object representing the CustomField value instance from the CustomFieldParams of Strings.
|
createValue, getChangelogValue, getDatabaseType, getDefaultValue, getJsonDefaultValue, getStringValueFromCustomFieldParams, getValueFromIssue, getValueFromIssue, remove, setDefaultValue, updateValue, validateFromParamsassertObjectImplementsType, availableForBulkEdit, getChangelogString, getConfigurationItemTypes, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, getVelocityParameters, init, isRenderable, valuesEqualclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCloneOptionConfiguration, getCloneValue, getSingularObjectFromString, getStringFromSingularObject, isUserInputRequiredForMove@Deprecated public StringCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager)
StringCFType(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 StringCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, TextFieldCharacterLengthValidator textFieldCharacterLengthValidator, JiraAuthenticationContext jiraAuthenticationContext)
protected Object getDbValueFromObject(Object customFieldObject)
AbstractSingleFieldTypeAbstractSingleFieldType.getDatabaseType()getDbValueFromObject in class AbstractSingleFieldTypecustomFieldObject - the Transport Objectprotected Object getObjectFromDbValue(@Nonnull Object databaseValue) throws FieldValidationException
AbstractSingleFieldTypegetObjectFromDbValue in class AbstractSingleFieldTypedatabaseValue - - String, Double or Date objects as returned from AbstractSingleFieldType.getDbValueFromObject(Object)FieldValidationException - if field validation fails.public String getValueFromCustomFieldParams(CustomFieldParams relevantParams) throws FieldValidationException
CustomFieldTypegetValueFromCustomFieldParams in interface CustomFieldTypegetValueFromCustomFieldParams in class AbstractSingleFieldTyperelevantParams - CustomFieldParams of String objects. Will contain one value for Singular field types.CustomFieldType.createValue(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.Issue, T), CustomFieldType.updateValue(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.Issue, T)FieldValidationException - if the String value fails to convert into ObjectsCustomFieldType.createValue(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.Issue, Object),
CustomFieldType.updateValue(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.Issue, Object),
CustomFieldType.getValueFromIssue(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.Issue)public Object accept(AbstractCustomFieldType.VisitorBase visitor)
accept in class AbstractSingleFieldTypepublic FieldTypeInfo getFieldTypeInfo(FieldTypeInfoContext fieldTypeInfoContext)
RestAwareCustomFieldTypegetFieldTypeInfo in interface RestAwareCustomFieldTypefieldTypeInfoContext - context information for generating the FieldTypeInfo.public JsonType getJsonSchema(CustomField customField)
RestAwareCustomFieldTypegetJsonSchema in interface RestAwareCustomFieldTypepublic FieldJsonRepresentation getJsonFromIssue(CustomField field, Issue issue, boolean renderedVersionRequested, @Nullable FieldLayoutItem fieldLayoutItem)
RestAwareCustomFieldTypegetJsonFromIssue in interface RestAwareCustomFieldTypefield - configuration of the current fieldissue - to get field data fromrenderedVersionRequested - whether the use requested the return of rendered/pretty data as well as raw datafieldLayoutItem - field layout for this field.Copyright © 2002-2021 Atlassian. All Rights Reserved.