public class ReadOnlyCFType extends GenericTextCFType implements ExportableCustomFieldType
Modifier and Type | Class and Description |
---|---|
static interface |
ReadOnlyCFType.Visitor<T> |
AbstractCustomFieldType.VisitorBase<X>
customFieldValuePersister, FIELD_TYPE_DATE, FIELD_TYPE_NUMBER, FIELD_TYPE_STRING, FIELD_TYPE_TEXT, genericConfigManager, log
DEFAULT_VALUE_TYPE, RESOURCE_PREVIEW
Constructor and Description |
---|
ReadOnlyCFType(CustomFieldValuePersister customFieldValuePersister,
GenericConfigManager genericConfigManager,
TextFieldCharacterLengthValidator textFieldCharacterLengthValidator,
JiraAuthenticationContext jiraAuthenticationContext) |
Modifier and Type | Method and Description |
---|---|
Object |
accept(AbstractCustomFieldType.VisitorBase visitor) |
String |
availableForBulkEdit(BulkEditBean bulkEditBean)
Allow the custom field type perform a specific check as to its availability for bulk editing.
|
String |
getChangelogValue(CustomField field,
String value)
Returns a values to be stored in the change log, example is the id of the changed item.
|
FieldExportParts |
getRepresentationFromIssue(Issue issue,
CustomFieldExportContext context)
Get the custom field representation of the issue, this object contains the column headers and values for each
of the
FieldExportPart . |
boolean |
isRenderable()
This is a mirror of the method from the RenderableField interface and is needed to bridge the gap between
CustomFields and CustomFieldTypes.
|
void |
updateValue(CustomField customField,
Issue issue,
String value)
the value does exist, and the new value is different than the
existing one.
|
compare, getDatabaseType, getDbValueFromObject, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, getObjectFromDbValue, getProjectImporter, getRestFieldOperation, getSingularObjectFromString, getStringFromSingularObject, getValueFromCustomFieldParams
createValue, getDefaultValue, getJsonDefaultValue, getStringValueFromCustomFieldParams, getValueFromIssue, getValueFromIssue, remove, setDefaultValue, validateFromParams
assertObjectImplementsType, getChangelogString, getConfigurationItemTypes, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, getVelocityParameters, init, valuesEqual
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJsonDefaultValue
getCloneOptionConfiguration, getCloneValue, isUserInputRequiredForMove
public ReadOnlyCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, TextFieldCharacterLengthValidator textFieldCharacterLengthValidator, JiraAuthenticationContext jiraAuthenticationContext)
public void updateValue(CustomField customField, Issue issue, String value)
AbstractSingleFieldType
updateValue
in interface CustomFieldType<String,String>
updateValue
in class AbstractSingleFieldType<String>
customField
- CustomField
for which the value is being storedissue
- The Issue
to be stored against.value
- Transport Object representing the value instance of the CustomField.public String getChangelogValue(CustomField field, String value)
CustomFieldType
getChangelogValue
in interface CustomFieldType<String,String>
getChangelogValue
in class AbstractSingleFieldType<String>
field
- CustomField that the value belongs tovalue
- Transport Object representing the value instance of the CustomFieldpublic String availableForBulkEdit(BulkEditBean bulkEditBean)
CustomFieldType
availableForBulkEdit
in interface CustomFieldType<String,String>
availableForBulkEdit
in class AbstractCustomFieldType<String,String>
bulkEditBean
- BulkEditBeanpublic Object accept(AbstractCustomFieldType.VisitorBase visitor)
accept
in class GenericTextCFType
public boolean isRenderable()
CustomFieldType
isRenderable
in interface CustomFieldType<String,String>
isRenderable
in class AbstractCustomFieldType<String,String>
public FieldExportParts getRepresentationFromIssue(Issue issue, CustomFieldExportContext context)
ExportableCustomFieldType
FieldExportPart
.getRepresentationFromIssue
in interface ExportableCustomFieldType
issue
- to get the representation forcontext
- which contains information such as the i18nHelper and fieldCopyright © 2002-2017 Atlassian. All Rights Reserved.