Class NodeAssociationParserImpl
java.lang.Object
com.atlassian.jira.imports.project.parser.NodeAssociationParserImpl
- All Implemented Interfaces:
NodeAssociationParser
- Since:
- v3.13
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from interface com.atlassian.jira.imports.project.parser.NodeAssociationParser
AFFECTS_VERSION_TYPE, COMPONENT_TYPE, FIX_VERSION_TYPE, NODE_ASSOCIATION_ENTITY_NAME, PROJECT_SCHEME_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEntityRepresentation
(ExternalNodeAssociation nodeAssociation) Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided node association.Transforms a set of attributes into a NodeAssociation.
-
Field Details
-
SOURCE_NODE_ID
- See Also:
-
SOURCE_NODE_ENTITY
- See Also:
-
SINK_NODE_ID
- See Also:
-
SINK_NODE_ENTITY
- See Also:
-
ASSOCIATION_TYPE
- See Also:
-
-
Constructor Details
-
NodeAssociationParserImpl
public NodeAssociationParserImpl()
-
-
Method Details
-
parse
Description copied from interface:NodeAssociationParser
Transforms a set of attributes into a NodeAssociation.- Specified by:
parse
in interfaceNodeAssociationParser
- 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
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 interfaceNodeAssociationParser
- Parameters:
nodeAssociation
- contains the populated fields that will end up in the EntityRepresentations map- Returns:
- an EntityRepresentation that can be persisted using OfBiz
-