com.atlassian.confluence.plugins.emailgateway.linkconverter.instances
Class WidgetLinkConverter

java.lang.Object
  extended by com.atlassian.confluence.plugins.emailgateway.linkconverter.instances.WidgetLinkConverter
All Implemented Interfaces:
LinkConverter<java.lang.Object,MacroDefinition>

public class WidgetLinkConverter
extends java.lang.Object
implements LinkConverter<java.lang.Object,MacroDefinition>

Converts links into Widget Connector macros. TODO move to widget connector plugin, and add support for all the content providers it does

Since:
5.3

Constructor Summary
WidgetLinkConverter()
           
 
Method Summary
 MacroDefinition convert(java.net.URL link, LinkBody<java.lang.Object> linkBody)
           
 java.lang.Class<MacroDefinition> getConversionClass()
          Returns the class of the Object after conversion.
 boolean isFinal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetLinkConverter

public WidgetLinkConverter()
Method Detail

convert

public MacroDefinition convert(java.net.URL link,
                               LinkBody<java.lang.Object> linkBody)
Specified by:
convert in interface LinkConverter<java.lang.Object,MacroDefinition>
Parameters:
link - the URL that the link points to
linkBody - the text or other content that the link displays
Returns:
the passed link, converted to the correct Object type

isFinal

public boolean isFinal()
Specified by:
isFinal in interface LinkConverter<java.lang.Object,MacroDefinition>
Returns:
true if no converters should run after this one handles a link.

getConversionClass

public java.lang.Class<MacroDefinition> getConversionClass()
Description copied from interface: LinkConverter
Returns the class of the Object after conversion. This is required for lookup against the MarshallingRegistry, as the key Class in the registry may be a superclass or interface of the actual Object returned by the conversion.

Specified by:
getConversionClass in interface LinkConverter<java.lang.Object,MacroDefinition>
Returns:
the class of the Object after conversion.


Copyright © 2003-2014 Atlassian. All Rights Reserved.