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 java.lang.String AFFECTS_VERSION_TYPE
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String FIX_VERSION_TYPE
           
static java.lang.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(java.util.Map attributes)
          Transforms a set of attributes into a NodeAssociation.
 

Field Detail

NODE_ASSOCIATION_ENTITY_NAME

static final java.lang.String NODE_ASSOCIATION_ENTITY_NAME
See Also:
Constant Field Values

COMPONENT_TYPE

static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

FIX_VERSION_TYPE

static final java.lang.String FIX_VERSION_TYPE
See Also:
Constant Field Values

AFFECTS_VERSION_TYPE

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

parse

ExternalNodeAssociation parse(java.util.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-2011 Atlassian. All Rights Reserved.