Class RenderableTextCFType
java.lang.Object
com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType<T,T>
com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType<String>
com.atlassian.jira.issue.customfields.impl.GenericTextCFType
com.atlassian.jira.issue.customfields.impl.RenderableTextCFType
- All Implemented Interfaces:
ProjectImportableCustomField
,CustomFieldType<String,
,String> SortableCustomField<String>
,TextCustomFieldType
,ExportableCustomFieldType
,RestAwareCustomFieldType
,RestCustomFieldTypeOperations
- Direct Known Subclasses:
TextAreaCFType
This custom field type returns true for its isRenderable method and is meant to
represent a text custom field type that is renderable.
-
Nested Class Summary
Nested ClassesNested 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, RESOURCE_PREVIEW
-
Constructor Summary
ConstructorsConstructorDescriptionRenderableTextCFType
(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, TextFieldCharacterLengthValidator textFieldCharacterLengthValidator, JiraAuthenticationContext jiraAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptionReturns an instance ofNonNullCustomFieldProvider
that Jira will use to optimize indexing performance.getRepresentationFromIssue
(Issue issue, CustomFieldExportContext context) Get the custom field representation of the issue, this object contains the column headers and values for each of theFieldExportPart
.boolean
This is a mirror of the method from the RenderableField interface and is needed to bridge the gap between CustomFields and CustomFieldTypes.boolean
valuesEqual
(String v1, String v2) Used to compare 2 field values and work out whether a change item should be generatedMethods inherited from class com.atlassian.jira.issue.customfields.impl.GenericTextCFType
compare, getDatabaseType, getDbValueFromObject, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, getObjectFromDbValue, getProjectImporter, getRestFieldOperation, getSingularObjectFromString, getStringFromSingularObject, getValueFromCustomFieldParams
Methods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType
createValue, getChangelogValue, getDefaultValue, getJsonDefaultValue, getStringValueFromCustomFieldParams, getValueFromIssue, 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
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
areAllRequiredParametersPresent, getCloneOptionConfiguration, getCloneValue, isUserInputRequiredForMove
Methods inherited from interface com.atlassian.jira.issue.fields.rest.RestCustomFieldTypeOperations
getJsonDefaultValue
-
Constructor Details
-
RenderableTextCFType
public RenderableTextCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, TextFieldCharacterLengthValidator textFieldCharacterLengthValidator, JiraAuthenticationContext jiraAuthenticationContext)
-
-
Method Details
-
getNonNullCustomFieldProvider
Description copied from interface:CustomFieldType
Returns an instance ofNonNullCustomFieldProvider
that Jira will use to optimize indexing performance.- Specified by:
getNonNullCustomFieldProvider
in interfaceCustomFieldType<String,
String>
-
isRenderable
public boolean isRenderable()Description copied from interface:CustomFieldType
This is a mirror of the method from the RenderableField interface and is needed to bridge the gap between CustomFields and CustomFieldTypes.- Specified by:
isRenderable
in interfaceCustomFieldType<String,
String> - Overrides:
isRenderable
in classAbstractCustomFieldType<String,
String> - Returns:
- true if the field is configurable for use with the renderers, a text based field, false otherwise.
-
valuesEqual
Description copied from interface:CustomFieldType
Used to compare 2 field values and work out whether a change item should be generated- Specified by:
valuesEqual
in interfaceCustomFieldType<String,
String> - Overrides:
valuesEqual
in classAbstractCustomFieldType<String,
String> - Parameters:
v1
- current valuev2
- new value- Returns:
- true if the change item should be generated, false otherwise
-
accept
- Overrides:
accept
in classGenericTextCFType
-
getRepresentationFromIssue
Description copied from interface:ExportableCustomFieldType
Get the custom field representation of the issue, this object contains the column headers and values for each of theFieldExportPart
.- Specified by:
getRepresentationFromIssue
in interfaceExportableCustomFieldType
- Parameters:
issue
- to get the representation forcontext
- which contains information such as the i18nHelper and field- Returns:
- the exportable parts of this issue
-