com.atlassian.jira.imports.project.parser
Class IssueLinkParserImpl

java.lang.Object
  extended by com.atlassian.jira.imports.project.parser.IssueLinkParserImpl
All Implemented Interfaces:
IssueLinkParser

public class IssueLinkParserImpl
extends Object
implements IssueLinkParser

Since:
v3.13

Field Summary
 
Fields inherited from interface com.atlassian.jira.imports.project.parser.IssueLinkParser
ISSUE_LINK_ENTITY_NAME
 
Constructor Summary
IssueLinkParserImpl()
           
 
Method Summary
 EntityRepresentation getEntityRepresentation(ExternalLink issueLink)
          Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided IssueLink.
 ExternalLink parse(Map attributes)
          Parses the IssueLink data from the backup XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueLinkParserImpl

public IssueLinkParserImpl()
Method Detail

parse

public ExternalLink parse(Map attributes)
                   throws ParseException
Description copied from interface: IssueLinkParser
Parses the IssueLink data from the backup XML.

Specified by:
parse in interface IssueLinkParser
Parameters:
attributes - is a map of key value pairs that represent the attributes of an IssueLink.
Returns:
an ExternalLink if the attributes contain the required fields.
Throws:
ParseException - if the required fields are not found in the attributes map.

getEntityRepresentation

public EntityRepresentation getEntityRepresentation(ExternalLink issueLink)
Description copied from interface: IssueLinkParser
Gets an EntityRepresentation that contains the correct attributes based on the populated fields in the provided IssueLink.

Specified by:
getEntityRepresentation in interface IssueLinkParser
Parameters:
issueLink - contains the populated fields that will end up in the EntityRepresentations map.
Returns:
an EntityRepresentation that can be persisted using OfBiz.


Copyright © 2002-2013 Atlassian. All Rights Reserved.