com.atlassian.confluence.plugins.emailgateway.attachmentconverter.instances
Class ViewFileAttachmentConverter

java.lang.Object
  extended by com.atlassian.confluence.plugins.emailgateway.attachmentconverter.instances.ViewFileAttachmentConverter
All Implemented Interfaces:
AttachmentConverter<MacroDefinition>

public class ViewFileAttachmentConverter
extends java.lang.Object
implements AttachmentConverter<MacroDefinition>

Converts attachments known to the Office Connector into {viewfile} macros.

Since:
5.3

Constructor Summary
ViewFileAttachmentConverter()
           
 
Method Summary
 MacroDefinition convertAttachment(AttachmentFile attachmentFile)
          Creates a Confluence XHTML API object from the supplied parameters, if the Converter instance handles this parameter combination.
 java.lang.Class<MacroDefinition> getConversionClass()
          The type of object this converter returns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewFileAttachmentConverter

public ViewFileAttachmentConverter()
Method Detail

convertAttachment

public MacroDefinition convertAttachment(AttachmentFile attachmentFile)
Description copied from interface: AttachmentConverter
Creates a Confluence XHTML API object from the supplied parameters, if the Converter instance handles this parameter combination.

Specified by:
convertAttachment in interface AttachmentConverter<MacroDefinition>
Parameters:
attachmentFile - representing the file name, type and size
Returns:
a Confluence XHTML API object, or null if the converter doesn't handle this file

getConversionClass

public java.lang.Class<MacroDefinition> getConversionClass()
Description copied from interface: AttachmentConverter
The type of object this converter returns. Needed so we can look up the correct Marshaller from the registry. Kind of crap - wouldn't be required if the registry could locate values based on isAssignableFrom :/

Specified by:
getConversionClass in interface AttachmentConverter<MacroDefinition>


Copyright © 2003-2014 Atlassian. All Rights Reserved.