Class NodeAssociationParserImpl

java.lang.Object
com.atlassian.jira.imports.project.parser.NodeAssociationParserImpl
All Implemented Interfaces:
NodeAssociationParser

public class NodeAssociationParserImpl extends Object implements NodeAssociationParser
Since:
v3.13
  • Field Details

  • Constructor Details

    • NodeAssociationParserImpl

      public NodeAssociationParserImpl()
  • Method Details

    • parse

      public ExternalNodeAssociation parse(Map attributes) throws ParseException
      Description copied from interface: NodeAssociationParser
      Transforms a set of attributes into a NodeAssociation.
      Specified by:
      parse in interface NodeAssociationParser
      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

      public EntityRepresentation getEntityRepresentation(ExternalNodeAssociation nodeAssociation)
      Description copied from interface: NodeAssociationParser
      Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided node association.
      Specified by:
      getEntityRepresentation in interface NodeAssociationParser
      Parameters:
      nodeAssociation - contains the populated fields that will end up in the EntityRepresentations map
      Returns:
      an EntityRepresentation that can be persisted using OfBiz