com.atlassian.confluence.plugins.emailgateway.api
Interface AttachmentConverterService

All Known Implementing Classes:
DefaultAttachmentConverterService

@PublicApi
public interface AttachmentConverterService

Given an email attachment Mime part, returns an XML storage-format string.

Since:
5.3

Method Summary
 void attachTo(ContentEntityObject ceo, java.util.List<SerializableAttachment> attachments)
          Attaches attachments to a contentEntityObject
 Streamable convert(AttachmentFile attachmentFile)
          Converts information about a file to a Confluence Storage XHTML string.
 

Method Detail

convert

Streamable convert(AttachmentFile attachmentFile)
Converts information about a file to a Confluence Storage XHTML string. If a conversion specific to the file can be found it is returned, else a generic link to the attachment file will be returned. Null or empty Strings should never be returned.

Parameters:
attachmentFile - representing the file name, type and size
Returns:
a Confluence XHTML string referencing the file

attachTo

void attachTo(ContentEntityObject ceo,
              java.util.List<SerializableAttachment> attachments)
Attaches attachments to a contentEntityObject

Parameters:
ceo - ContentEntityObject to attach to
attachments - attachments


Copyright © 2003-2014 Atlassian. All Rights Reserved.