java.lang.Object | |
↳ | com.atlassian.jira.action.issue.customfields.MockCustomFieldType |
Mocks a CustomFieldType
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Allow the custom field type perform a specific check as to its availability for bulk editing.
| |||||||||||
Returns a List of
FieldConfigItemType objects. | |||||||||||
Retrieves the Object representing the default CustomField value for the Custom Field.
| |||||||||||
Returns the full key of the CustomFieldType.
| |||||||||||
Returns a list of indexers that will be used for the field.
| |||||||||||
Returns a Singular Object, given the string value as passed by the presentation tier.
| |||||||||||
Return the String value object from the CustomFieldParams.
| |||||||||||
Retrieves the Transport Object representing the CustomField value instance from the CustomFieldParams of Strings.
| |||||||||||
Retrieves the Transport Object representing the current CustomField value for the given issue.
| |||||||||||
The custom field may wish to pass parameters to the velocity context beyond the getValueFromIssue methods
(eg managers).
| |||||||||||
Initialises the CustomFieldType with the given descriptor.
| |||||||||||
This is a mirror of the method from the RenderableField interface and is needed to bridge the gap between
CustomFields and CustomFieldTypes.
| |||||||||||
Performs additional tasks when an entire CustomField of this type is being removed
remove() . | |||||||||||
Ensures that the
CustomFieldParams of Strings is a valid representation of the Custom Field values. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Allow the custom field type perform a specific check as to its availability for bulk editing.
bulkEditBean | BulkEditBean |
---|
Returns a List of FieldConfigItemType
objects. Can not be immutable.
This opens up possibilities for configurable custom fields.
FieldConfigItemType
Retrieves the Object representing the default CustomField value for the Custom Field.
fieldConfig | CustomField for default value |
---|
Returns the full key of the CustomFieldType. Typically, this will be prefixed with "com.atlassian.jira.plugin.system.customfieldtypes:"
Returns a list of indexers that will be used for the field.
customField | the custom field to get the related indexers of. |
---|
FieldIndexer
objects. Null if no related indexers.
Returns a Singular Object, given the string value as passed by the presentation tier. Throws FieldValidationException if the string is an invalid representation of the Object.
string | the String |
---|
FieldValidationException |
---|
Return the String value object from the CustomFieldParams. The object may be a single String (e.g. TextCFType, List of Strings (e.g. MultiSelectCFType) or CustomFieldParams of Strings (e.g. CascadingSelectCFType). Among other things these values are passed to Velocity for rendering edit screens.
parameters | - CustomFieldParams containing String values |
---|
Retrieves the Transport Object representing the CustomField value instance from the CustomFieldParams of Strings.
parameters | CustomFieldParams of String objects. Will contain one value for Singular field types. |
---|
createValue(CustomField, Issue, T)
, updateValue(CustomField, Issue, T)
FieldValidationException |
---|
Retrieves the Transport Object representing the current CustomField value for the given issue.
field | Custom field for which to retrieve the value |
---|---|
issue | Issue from which to retrieve the value |
createValue(CustomField, Issue, T)
, updateValue(CustomField, Issue, T)
The custom field may wish to pass parameters to the velocity context beyond the getValueFromIssue methods (eg managers).
The values are added to the context for all velocity views (edit, search, view, xml)
issue | The issue currently in context (Note: this will be null in cases like 'default value') |
---|---|
field | CustomField |
fieldLayoutItem | FieldLayoutItem |
Map
of parameters to add to the velocity context, or an empty Map otherwise (never null)
Initialises the CustomFieldType with the given descriptor.
customFieldTypeModuleDescriptor | CustomFieldTypeModuleDescriptor |
---|
This is a mirror of the method from the RenderableField interface and is needed to bridge the gap between CustomFields and CustomFieldTypes.
Performs additional tasks when an entire CustomField of this type is being removed remove()
.
This includes removal of values & options.
field | The custom field that is being removed, so any data stored for any issues for that field can be deleted. |
---|
Ensures that the CustomFieldParams
of Strings is a valid representation of the Custom Field values.
Any errors should be added to the ErrorCollection
under the appropriate key as required.
relevantParams | parameter object of Strings |
---|---|
errorCollectionToAddTo | errorCollection to which any errors should be added (never null) |
config | FieldConfig |