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

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

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

Since:
5.3

Constructor Summary
MultimediaAttachmentConverter()
           
 
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

MultimediaAttachmentConverter

public MultimediaAttachmentConverter()
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.