public class URLCFType extends GenericTextCFType implements ExportableCustomFieldType
| Modifier and Type | Class and Description |
|---|---|
static interface |
URLCFType.Visitor<T> |
AbstractCustomFieldType.VisitorBase<X>customFieldValuePersister, FIELD_TYPE_DATE, FIELD_TYPE_NUMBER, FIELD_TYPE_STRING, FIELD_TYPE_TEXT, genericConfigManager, logDEFAULT_VALUE_TYPE, RESOURCE_PREVIEW| Constructor and Description |
|---|
URLCFType(CustomFieldValuePersister customFieldValuePersister,
GenericConfigManager genericConfigManager,
TextFieldCharacterLengthValidator textFieldCharacterLengthValidator,
JiraAuthenticationContext jiraAuthenticationContext,
ExternalLinkInNewWindow externalLinkInNewWindow) |
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(AbstractCustomFieldType.VisitorBase visitor) |
NonNullCustomFieldProvider |
getNonNullCustomFieldProvider()
Returns an instance of
NonNullCustomFieldProvider that Jira will use to optimize indexing performance. |
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. |
String |
getSingularObjectFromString(String string)
Returns a Singular Object, given the string value as passed by the presentation tier.
|
Map<String,Object> |
getVelocityParameters(Issue issue,
CustomField field,
FieldLayoutItem fieldLayoutItem)
The custom field may wish to pass parameters to the velocity context beyond the getValueFromIssue methods
(eg managers).
|
compare, getDatabaseType, getDbValueFromObject, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, getObjectFromDbValue, getProjectImporter, getRestFieldOperation, getStringFromSingularObject, getValueFromCustomFieldParamscreateValue, getChangelogValue, getDefaultValue, getJsonDefaultValue, getStringValueFromCustomFieldParams, getValueFromIssue, getValueFromIssue, remove, setDefaultValue, updateValue, validateFromParamsassertObjectImplementsType, availableForBulkEdit, getChangelogString, getConfigurationItemTypes, getDescription, getDescriptor, getI18nBean, getKey, getName, getRelatedIndexers, getVelocityParameters, init, isRenderable, valuesEqualclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJsonDefaultValueareAllRequiredParametersPresent, getCloneOptionConfiguration, getCloneValue, getNonnullCustomFieldProvider, isUserInputRequiredForMovepublic URLCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager, TextFieldCharacterLengthValidator textFieldCharacterLengthValidator, JiraAuthenticationContext jiraAuthenticationContext, ExternalLinkInNewWindow externalLinkInNewWindow)
public NonNullCustomFieldProvider getNonNullCustomFieldProvider()
CustomFieldTypeNonNullCustomFieldProvider that Jira will use to optimize indexing performance.getNonNullCustomFieldProvider in interface CustomFieldType<String,String>public String getSingularObjectFromString(String string) throws FieldValidationException
CustomFieldTypegetSingularObjectFromString in interface CustomFieldType<String,String>getSingularObjectFromString in class GenericTextCFTypestring - the StringFieldValidationException - if the string is an invalid representation of the Object.public Object accept(AbstractCustomFieldType.VisitorBase visitor)
accept in class GenericTextCFTypepublic FieldExportParts getRepresentationFromIssue(Issue issue, CustomFieldExportContext context)
ExportableCustomFieldTypeFieldExportPart.getRepresentationFromIssue in interface ExportableCustomFieldTypeissue - to get the representation forcontext - which contains information such as the i18nHelper and field@Nonnull public Map<String,Object> getVelocityParameters(Issue issue, CustomField field, FieldLayoutItem fieldLayoutItem)
CustomFieldTypeThe values are added to the context for all velocity views (edit, search, view, xml)
getVelocityParameters in interface CustomFieldType<String,String>getVelocityParameters in class AbstractCustomFieldType<String,String>issue - The issue currently in context (Note: this will be null in cases like 'default value')field - CustomFieldfieldLayoutItem - FieldLayoutItemMap of parameters to add to the velocity context, or an empty Map otherwise (never null)Copyright © 2002-2023 Atlassian. All Rights Reserved.