Interface CustomFieldParser
- All Known Implementing Classes:
CustomFieldParserImpl
public interface CustomFieldParser
Converts custom field and custom field configuration xml in a JIRA backup to an object representation.
- Since:
- v3.13
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionparseCustomField(Map attributes) Parses the custom field data from the backup XML.parseCustomFieldConfiguration(Map attributes) Parses the custom field configuration context data from the backup XML.parseFieldConfigSchemeIssueType(Map attributes) Parses the custom field issue type configuration context data from the backup XML.
-
Field Details
-
CUSTOM_FIELD_CONFIGURATION_ENTITY_NAME
- See Also:
-
CUSTOM_FIELD_ENTITY_NAME
- See Also:
-
CUSTOM_FIELD_SCHEME_ISSUE_TYPE_ENTITY_NAME
- See Also:
-
-
Method Details
-
parseCustomField
Parses the custom field data from the backup XML. This handles the custom field name, description, id, etc.- Parameters:
attributes- is a map of key value pairs that represent the attributes of an ExternalCustomField. The following attributes are required, otherwise a ParseException will be thrown:
- id (required)
- name (required)
- customfieldtypekey (required)
- Returns:
- an ExternalCustomField if the attributes contain the required fields
- Throws:
ParseException- if the required fields are not found in the attributes map
-
parseCustomFieldConfiguration
BackupOverviewBuilder.ConfigurationContext parseCustomFieldConfiguration(Map attributes) throws ParseException Parses the custom field configuration context data from the backup XML. This provides the project constraints for a custom field and correctly identifies theBackupOverviewBuilder.FieldConfigSchemeIssueTypeconstraints.- Parameters:
attributes- is a map of key value pairs that represent the attributes of an ConfigurationContext. The following attributes are required, otherwise a ParseException will be thrown:
- id (required)
- key (required)
- Returns:
- a ConfigurationContext that identifies a single context for a custom field, null if the ConfigurationContext is not a custom field configuration context.
- Throws:
ParseException- if the attributes map does not contain the required fields or the field data is invalid
-
parseFieldConfigSchemeIssueType
BackupOverviewBuilder.FieldConfigSchemeIssueType parseFieldConfigSchemeIssueType(Map attributes) throws ParseException Parses the custom field issue type configuration context data from the backup XML. This provides the issue type constrains for aBackupOverviewBuilder.ConfigurationContext, if any exist.- Parameters:
attributes- is a map of key value pairs that represent the attributes of an FieldConfigSchemeIssueType. The following attributes are required, otherwise a ParseException will be thrown:
- id (required)
- fieldconfigscheme (required)
- issuetype (required)
- Returns:
- a FieldConfigSchemeIssueType that identifies the issue types a custom field context is constrained by
- Throws:
ParseException- if the attributes do not contain a required field
-