Class ReadOnlyCFType
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.ReadOnlyCFType
- All Implemented Interfaces:
ProjectImportableCustomField,CustomFieldType<String,,String> SortableCustomField<String>,TextCustomFieldType,ExportableCustomFieldType,RestAwareCustomFieldType,RestCustomFieldTypeOperations
-
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, logFields inherited from interface com.atlassian.jira.issue.customfields.CustomFieldType
DEFAULT_VALUE_TYPE, RESOURCE_PREVIEW -
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, TextFieldCharacterLengthValidator textFieldCharacterLengthValidator, JiraAuthenticationContext jiraAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptionavailableForBulkEdit(BulkEditBean bulkEditBean) Allow the custom field type perform a specific check as to its availability for bulk editing.getChangelogValue(CustomField field, String value) Returns a values to be stored in the change log, example is the id of the changed item.Returns an instance ofNonNullCustomFieldProviderthat 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.booleanThis is a mirror of the method from the RenderableField interface and is needed to bridge the gap between CustomFields and CustomFieldTypes.voidupdateValue(CustomField customField, Issue issue, String value) the value does exist, and the new value is different than the existing one.Methods inherited from class com.atlassian.jira.issue.customfields.impl.GenericTextCFType
compare, getDatabaseType, getDbValueFromObject, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, getObjectFromDbValue, getProjectImporter, getRestFieldOperation, getSingularObjectFromString, getStringFromSingularObject, getValueFromCustomFieldParamsMethods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType
createValue, getDefaultValue, getJsonDefaultValue, getStringValueFromCustomFieldParams, getValueFromIssue, getValueFromIssue, remove, setDefaultValue, validateFromParamsMethods inherited from class com.atlassian.jira.issue.customfields.impl.AbstractCustomFieldType
assertObjectImplementsType, getChangelogString, getConfigurationItemTypes, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, getVelocityParameters, init, valuesEqualMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.issue.customfields.CustomFieldType
areAllRequiredParametersPresent, getCloneOptionConfiguration, getCloneValue, isUserInputRequiredForMove, requiresAdditionalParamsMethods inherited from interface com.atlassian.jira.issue.fields.rest.RestCustomFieldTypeOperations
getJsonDefaultValue
-
Constructor Details
-
ReadOnlyCFType
public ReadOnlyCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, TextFieldCharacterLengthValidator textFieldCharacterLengthValidator, JiraAuthenticationContext jiraAuthenticationContext)
-
-
Method Details
-
getNonNullCustomFieldProvider
Description copied from interface:CustomFieldTypeReturns an instance ofNonNullCustomFieldProviderthat Jira will use to optimize indexing performance.- Specified by:
getNonNullCustomFieldProviderin interfaceCustomFieldType<String,String>
-
updateValue
Description copied from class:AbstractSingleFieldTypethe value does exist, and the new value is different than the existing one.- Specified by:
updateValuein interfaceCustomFieldType<String,String> - Overrides:
updateValuein classAbstractSingleFieldType<String>- Parameters:
customField-CustomFieldfor which the value is being storedissue- TheIssueto be stored against.value- Transport Object representing the value instance of the CustomField.
-
getChangelogValue
Description copied from interface:CustomFieldTypeReturns a values to be stored in the change log, example is the id of the changed item.- Specified by:
getChangelogValuein interfaceCustomFieldType<String,String> - Overrides:
getChangelogValuein classAbstractSingleFieldType<String>- Parameters:
field- CustomField that the value belongs tovalue- Transport Object representing the value instance of the CustomField- Returns:
- Change log value.
-
availableForBulkEdit
Description copied from interface:CustomFieldTypeAllow the custom field type perform a specific check as to its availability for bulk editing.- Specified by:
availableForBulkEditin interfaceCustomFieldType<String,String> - Overrides:
availableForBulkEditin classAbstractCustomFieldType<String,String> - Parameters:
bulkEditBean- BulkEditBean- Returns:
- null if available for bulk edit or appropriate unavailable message
-
accept
- Overrides:
acceptin classGenericTextCFType
-
isRenderable
public boolean isRenderable()Description copied from interface:CustomFieldTypeThis is a mirror of the method from the RenderableField interface and is needed to bridge the gap between CustomFields and CustomFieldTypes.- Specified by:
isRenderablein interfaceCustomFieldType<String,String> - Overrides:
isRenderablein classAbstractCustomFieldType<String,String> - Returns:
- true if the field is configurable for use with the renderers, a text based field, false otherwise.
-
getRepresentationFromIssue
Description copied from interface:ExportableCustomFieldTypeGet the custom field representation of the issue, this object contains the column headers and values for each of theFieldExportPart.- Specified by:
getRepresentationFromIssuein interfaceExportableCustomFieldType- Parameters:
issue- to get the representation forcontext- which contains information such as the i18nHelper and field- Returns:
- the exportable parts of this issue
-