public class

NodeAssociationParserImpl

extends Object
implements NodeAssociationParser
java.lang.Object
   ↳ com.atlassian.jira.imports.project.parser.NodeAssociationParserImpl

Summary

Constants
String ASSOCIATION_TYPE
String SINK_NODE_ENTITY
String SINK_NODE_ID
String SOURCE_NODE_ENTITY
String SOURCE_NODE_ID
[Expand]
Inherited Constants
From interface com.atlassian.jira.imports.project.parser.NodeAssociationParser
Public Constructors
NodeAssociationParserImpl()
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.imports.project.parser.NodeAssociationParser

Constants

public static final String ASSOCIATION_TYPE

Constant Value: "associationType"

public static final String SINK_NODE_ENTITY

Constant Value: "sinkNodeEntity"

public static final String SINK_NODE_ID

Constant Value: "sinkNodeId"

public static final String SOURCE_NODE_ENTITY

Constant Value: "sourceNodeEntity"

public static final String SOURCE_NODE_ID

Constant Value: "sourceNodeId"

Public Constructors

public NodeAssociationParserImpl ()

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.