Class MacroAsyncRenderWhitelist
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.view.macro.MacroAsyncRenderWhitelist
-
public class MacroAsyncRenderWhitelist extends Object
Used to determine which macros are safe to render in an async context, e.g. without requiring a page refresh.- Since:
- 5.6
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MacroAsyncRenderWhitelist
emptyWhitelist()
static MacroAsyncRenderWhitelist
fromProperties(Properties properties)
static MacroAsyncRenderWhitelist
fromPropertiesResource(org.springframework.core.io.Resource resource)
boolean
isAsyncRenderSafe(MacroDefinition macroDefinition, Class<? extends Macro> macroClass)
boolean
isAsyncRenderSafe(String macroId, Class<? extends Macro> macroClass)
-
-
-
Method Detail
-
emptyWhitelist
public static MacroAsyncRenderWhitelist emptyWhitelist()
-
fromPropertiesResource
public static MacroAsyncRenderWhitelist fromPropertiesResource(org.springframework.core.io.Resource resource)
-
fromProperties
public static MacroAsyncRenderWhitelist fromProperties(Properties properties)
-
isAsyncRenderSafe
public boolean isAsyncRenderSafe(String macroId, Class<? extends Macro> macroClass)
-
isAsyncRenderSafe
public boolean isAsyncRenderSafe(MacroDefinition macroDefinition, Class<? extends Macro> macroClass)
-
-