com.atlassian.jira.issue.customfields.impl
Class StringCFType
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
- All Implemented Interfaces:
- CustomFieldType, RestAwareCustomFieldType
- Direct Known Subclasses:
- TextCFType
Deprecated. Use GenericTextCFType
instead. Since v5.0.
@Deprecated
@PublicSpi
public abstract class StringCFType
- extends AbstractSingleFieldType
- implements RestAwareCustomFieldType
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType |
createValue, getChangelogValue, getDatabaseType, getDefaultValue, getJsonDefaultValue, getStringValueFromCustomFieldParams, getValueFromCustomFieldParams, 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 |
StringCFType
public StringCFType(CustomFieldValuePersister customFieldValuePersister,
GenericConfigManager genericConfigManager)
- Deprecated.
getDbValueFromObject
protected Object getDbValueFromObject(Object customFieldObject)
- Deprecated.
- Description copied from class:
AbstractSingleFieldType
- Returns the database representation of the Java object as stored for that CustomField.
(eg. ProjectId if the Value represents a project). Must be compatable with type returned by
AbstractSingleFieldType.getDatabaseType()
- Specified by:
getDbValueFromObject
in class AbstractSingleFieldType
- Parameters:
customFieldObject
- the Transport Object
- Returns:
- String, Double or Date
getObjectFromDbValue
protected Object getObjectFromDbValue(@NotNull
Object databaseValue)
throws FieldValidationException
- Deprecated.
- Description copied from class:
AbstractSingleFieldType
- Returns the Transport Object for the given Custom Field value as represented by the value
stored in the database
- Specified by:
getObjectFromDbValue
in class AbstractSingleFieldType
- Parameters:
databaseValue
- - String, Double or Date objects as returned from AbstractSingleFieldType.getDbValueFromObject(Object)
- Returns:
- Domain object or GenericValue
- Throws:
FieldValidationException
- if field validation fails.
accept
public Object accept(AbstractCustomFieldType.VisitorBase visitor)
- Deprecated.
- Overrides:
accept
in class AbstractSingleFieldType
getFieldTypeInfo
public FieldTypeInfo getFieldTypeInfo(FieldTypeInfoContext fieldTypeInfoContext)
- Deprecated.
- Description copied from interface:
RestAwareCustomFieldType
- Returns lower level Information about the field.
This information contains allowed values and/or the autocomplete url
- Specified by:
getFieldTypeInfo
in interface RestAwareCustomFieldType
- Parameters:
fieldTypeInfoContext
- context information for generating the FieldTypeInfo
.
- Returns:
- Low level information about the field.
getJsonSchema
public JsonType getJsonSchema(CustomField customField)
- Deprecated.
- Description copied from interface:
RestAwareCustomFieldType
- Return a description of the shape of this field when represented as JSON.
- Specified by:
getJsonSchema
in interface RestAwareCustomFieldType
getJsonFromIssue
public FieldJsonRepresentation getJsonFromIssue(CustomField field,
Issue issue,
boolean renderedVersionRequested,
@Nullable
FieldLayoutItem fieldLayoutItem)
- Deprecated.
- Description copied from interface:
RestAwareCustomFieldType
- Return a JsonData representation of the field value
- Specified by:
getJsonFromIssue
in interface RestAwareCustomFieldType
- Parameters:
field
- 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.
- Returns:
- FieldJsonDataPair containing a json representation of the raw data for this field, and if required, a json representation
of the rendered data for easy display.
Copyright © 2002-2013 Atlassian. All Rights Reserved.