com.atlassian.confluence.plugins.emailgateway.attachmentconverter
Class DefaultAttachmentConverterService

java.lang.Object
  extended by com.atlassian.confluence.plugins.emailgateway.attachmentconverter.DefaultAttachmentConverterService
All Implemented Interfaces:
AttachmentConverterService

public class DefaultAttachmentConverterService
extends java.lang.Object
implements AttachmentConverterService

An AttachmentConverterService implementation that gets its converters from AttachmentConverterModuleDescriptors.

Since:
5.3

Constructor Summary
DefaultAttachmentConverterService(com.atlassian.plugin.PluginAccessor pluginAccessor, MarshallingRegistry marshallingRegistry, com.atlassian.plugin.event.PluginEventManager pluginEventManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, FileUploadManager fileUploadManager)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAttachmentConverterService

public DefaultAttachmentConverterService(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                         MarshallingRegistry marshallingRegistry,
                                         com.atlassian.plugin.event.PluginEventManager pluginEventManager,
                                         com.atlassian.sal.api.message.I18nResolver i18nResolver,
                                         FileUploadManager fileUploadManager)
Method Detail

convert

public Streamable convert(AttachmentFile attachmentFile)
Description copied from interface: AttachmentConverterService
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.

Specified by:
convert in interface AttachmentConverterService
Parameters:
attachmentFile - representing the file name, type and size
Returns:
a Confluence XHTML string referencing the file

attachTo

public void attachTo(ContentEntityObject ceo,
                     java.util.List<SerializableAttachment> attachments)
Description copied from interface: AttachmentConverterService
Attaches attachments to a contentEntityObject

Specified by:
attachTo in interface AttachmentConverterService
Parameters:
ceo - ContentEntityObject to attach to
attachments - attachments


Copyright © 2003-2014 Atlassian. All Rights Reserved.