public class AttachmentParserImpl extends Object implements AttachmentParser
| Modifier and Type | Field and Description |
|---|---|
protected File |
rootImportAttachmentPath |
ATTACHMENT_ENTITY_NAME| Constructor and Description |
|---|
AttachmentParserImpl(String rootImportAttachmentPath) |
| Modifier and Type | Method and Description |
|---|---|
File |
getExternalAttachmentFile(ExternalAttachment attachment,
ExternalProject project,
String issueKey)
Returns the full path, on disk, of the external attachment to be imported.
|
ExternalAttachment |
parse(Map<String,String> attributes)
Parses the file attachment data from the backup XML.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProjectKeyInUseprotected final File rootImportAttachmentPath
public AttachmentParserImpl(String rootImportAttachmentPath)
public ExternalAttachment parse(Map<String,String> attributes) throws ParseException
AttachmentParserparse in interface AttachmentParserattributes - is a map of key value pairs that represent the attributes of an ExternalAttachment. The following
attributes are required, otherwise a ParseException will be thrown:ParseException - if the required fields are not found in the attributes mappublic File getExternalAttachmentFile(ExternalAttachment attachment, ExternalProject project, String issueKey)
AttachmentParsergetExternalAttachmentFile in interface AttachmentParserattachment - represents the database row for an attachment from the backup.project - the backup project key, used to determine the path to the attachment file.issueKey - the issue key that the attachment is associated with, used to determine the path to the attachment file.Copyright © 2002-2023 Atlassian. All Rights Reserved.