com.atlassian.jira.imports.project.parser
Interface NodeAssociationParser

All Known Implementing Classes:
NodeAssociationParserImpl

public interface NodeAssociationParser

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

Since:
v3.13

Field Summary
static String AFFECTS_VERSION_TYPE
           
static String COMPONENT_TYPE
           
static String FIX_VERSION_TYPE
           
static String NODE_ASSOCIATION_ENTITY_NAME
           
 
Method Summary
 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.
 

Field Detail

NODE_ASSOCIATION_ENTITY_NAME

static final String NODE_ASSOCIATION_ENTITY_NAME
See Also:
Constant Field Values

COMPONENT_TYPE

static final String COMPONENT_TYPE
See Also:
Constant Field Values

FIX_VERSION_TYPE

static final String FIX_VERSION_TYPE
See Also:
Constant Field Values

AFFECTS_VERSION_TYPE

static final String AFFECTS_VERSION_TYPE
See Also:
Constant Field Values
Method Detail

parse

ExternalNodeAssociation parse(Map attributes)
                              throws ParseException
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.

getEntityRepresentation

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


Copyright © 2002-2009 Atlassian. All Rights Reserved.