com.atlassian.confluence.api
Class NaughtyWritingToDBWhilstRenderingMacro

java.lang.Object
  extended by com.atlassian.confluence.api.NaughtyWritingToDBWhilstRenderingMacro
All Implemented Interfaces:
Macro

public class NaughtyWritingToDBWhilstRenderingMacro
extends Object
implements Macro

A macro that writes to the DB whilst rendering, exploding on readOnly transactions


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.confluence.macro.Macro
Macro.BodyType, Macro.OutputType
 
Field Summary
static String OUTPUT
           
 
Constructor Summary
NaughtyWritingToDBWhilstRenderingMacro()
           
 
Method Summary
 String execute(Map<String,String> parameters, String body, ConversionContext context)
           
 Macro.BodyType getBodyType()
          The type of body that this macro has, this is used to infer the migration task if no custom one is provided.
 Macro.OutputType getOutputType()
           
 void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTPUT

public static String OUTPUT
Constructor Detail

NaughtyWritingToDBWhilstRenderingMacro

public NaughtyWritingToDBWhilstRenderingMacro()
Method Detail

setBandanaManager

public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)

execute

public String execute(Map<String,String> parameters,
                      String body,
                      ConversionContext context)
               throws MacroExecutionException
Specified by:
execute in interface Macro
Throws:
MacroExecutionException

getBodyType

public Macro.BodyType getBodyType()
Description copied from interface: Macro
The type of body that this macro has, this is used to infer the migration task if no custom one is provided.

Specified by:
getBodyType in interface Macro
Returns:
The type of body this macro has.

getOutputType

public Macro.OutputType getOutputType()
Specified by:
getOutputType in interface Macro


Copyright © 2003–2015 Atlassian. All rights reserved.