public interface

NodeAssociationParser

com.atlassian.jira.imports.project.parser.NodeAssociationParser
Known Indirect Subclasses

Class Overview

Converts issue version and component information from the backup XML to an object representation.

Summary

Constants
String AFFECTS_VERSION_TYPE
String COMPONENT_TYPE
String FIX_VERSION_TYPE
String NODE_ASSOCIATION_ENTITY_NAME
String PROJECT_SCHEME_TYPE
Public Methods
EntityRepresentation getEntityRepresentation(ExternalNodeAssociation nodeAssociation)
Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided node association.
ExternalNodeAssociation parse(Map attributes)
Transforms a set of attributes into a NodeAssociation.

Constants

public static final String AFFECTS_VERSION_TYPE

Constant Value: "IssueVersion"

public static final String COMPONENT_TYPE

Constant Value: "IssueComponent"

public static final String FIX_VERSION_TYPE

Constant Value: "IssueFixVersion"

public static final String NODE_ASSOCIATION_ENTITY_NAME

Constant Value: "NodeAssociation"

public static final String PROJECT_SCHEME_TYPE

Constant Value: "ProjectScheme"

Public Methods

public EntityRepresentation getEntityRepresentation (ExternalNodeAssociation nodeAssociation)

Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided node association.

Parameters
nodeAssociation contains the populated fields that will end up in the EntityRepresentations map
Returns
  • an EntityRepresentation that can be persisted using OfBiz

public ExternalNodeAssociation parse (Map attributes)

Transforms a set of attributes into a NodeAssociation.

Parameters
attributes is a map of key value pairs that represent the attributes of a NodeAssocation. The following attributes are required, otherwise a ParseException will be thrown:
  • sourceNodeId (required)
  • sourceNodeEntity (required)
  • sinkNodeId (required)
  • sinkNodeEntity (required)
  • associationType (required)
Returns
  • a ExternalNodeAssociation if the attributes contain the required attributes.
Throws
ParseException If the attributes are invalid.