|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
GenericTextCFType
instead. Since v5.0.
@Deprecated @PublicApi @PublicSpi public class TextCFType
Nested Class Summary | |
---|---|
static interface |
TextCFType.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 | |
---|---|
TextCFType(CustomFieldValuePersister customFieldValuePersister,
GenericConfigManager genericConfigManager)
Deprecated. |
|
TextCFType(CustomFieldValuePersister customFieldValuePersister,
StringConverter stringConverter,
GenericConfigManager genericConfigManager)
Deprecated. - We no longer require an instance of StringConverter. Use TextCFType(CustomFieldValuePersister, GenericConfigManager). Since v4.0. |
Method Summary | |
---|---|
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 NoTransformationCustomFieldImporter , 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. |
Methods inherited from class com.atlassian.jira.issue.customfields.impl.StringCFType |
---|
getDbValueFromObject, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, getObjectFromDbValue |
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType |
---|
createValue, getChangelogValue, 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 |
Constructor Detail |
---|
public TextCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager)
public TextCFType(CustomFieldValuePersister customFieldValuePersister, StringConverter stringConverter, GenericConfigManager genericConfigManager)
customFieldValuePersister
- CustomFieldValuePersisterstringConverter
- StringConvertergenericConfigManager
- GenericConfigManagerTextCFType(CustomFieldValuePersister, GenericConfigManager)
Method Detail |
---|
public 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 object
public Object getSingularObjectFromString(String string) throws FieldValidationException
CustomFieldType
getSingularObjectFromString
in interface CustomFieldType
string
- the String
FieldValidationException
- if the string is an invalid representation of the Object.public int compare(@NotNull String customFieldObjectValue1, @NotNull String customFieldObjectValue2, FieldConfig fieldConfig)
SortableCustomField
compare
in interface SortableCustomField<String>
customFieldObjectValue1
- Never nullcustomFieldObjectValue2
- Never null
@NotNull protected PersistenceFieldType getDatabaseType()
AbstractSingleFieldType
getDatabaseType
in class AbstractSingleFieldType
PersistenceFieldType
types.public ProjectCustomFieldImporter getProjectImporter()
NoTransformationCustomFieldImporter
, 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
NoTransformationCustomFieldImporter
ProjectImportableCustomField.getProjectImporter()
public Object accept(AbstractCustomFieldType.VisitorBase visitor)
accept
in class StringCFType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |