com.atlassian.jira.issue.customfields.impl
Class StringCFType

java.lang.Object
  extended by com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType<T,T>
      extended by com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType
          extended by 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


Nested Class Summary
static interface StringCFType.Visitor<T>
          Deprecated.  
 
Nested 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
 
Constructor Summary
StringCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager)
          Deprecated.  
 
Method Summary
 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
 
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
 
Methods inherited from interface com.atlassian.jira.issue.customfields.CustomFieldType
getSingularObjectFromString, getStringFromSingularObject
 

Constructor Detail

StringCFType

public StringCFType(CustomFieldValuePersister customFieldValuePersister,
                    GenericConfigManager genericConfigManager)
Deprecated. 
Method Detail

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 field
issue - to get field data from
renderedVersionRequested - whether the use requested the return of rendered/pretty data as well as raw data
fieldLayoutItem - 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.