public class BasicWikiPolicyFilter extends AbstractPolicyFilter implements WikiPolicyFilter, PluginComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
order
Constructor and Description |
---|
BasicWikiPolicyFilter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
afterRendering(java.lang.String text,
java.util.Locale userLocale,
WikiRenderingHints hints)
This method is called after wiki rendering
|
java.lang.String |
beforeRendering(java.lang.String text,
java.util.Locale userLocale,
WikiRenderingHints hints)
This method is called before wiki rendering
|
void |
handleWikiToolbar(WikiToolbar tb,
java.lang.StringBuffer sb)
This method is called by WikiToolbar to add buttons / information at the end of wiki toolbar.
|
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration
|
compareTo, equals, getOrder, setOrder
public static final java.lang.String REVISION
public boolean init(Plugin plugin)
PluginComponent
init
in interface PluginComponent
plugin
- the calling pluginPluginComponent.init(Plugin)
public java.lang.String beforeRendering(java.lang.String text, java.util.Locale userLocale, WikiRenderingHints hints)
WikiPolicyFilter
beforeRendering
in interface WikiPolicyFilter
text
- the text to be rendered.userLocale
- an optionnal Locale
of the user for which the text will be generatedhints
- the rendering options to use.WikiPolicyFilter.beforeRendering(String, Locale, WikiRenderingHints)
public java.lang.String afterRendering(java.lang.String text, java.util.Locale userLocale, WikiRenderingHints hints)
WikiPolicyFilter
afterRendering
in interface WikiPolicyFilter
text
- the text after the rendering.userLocale
- an optionnal Locale
of the user for which the text will be generatedhints
- the rendering options to use.WikiPolicyFilter.afterRendering(String, Locale, WikiRenderingHints)
public void handleWikiToolbar(WikiToolbar tb, java.lang.StringBuffer sb)
WikiPolicyFilter
handleWikiToolbar
in interface WikiPolicyFilter
tb
- the WikiToolbarsb
- the StringBuffer before closing </div> toolbarWikiPolicyFilter.handleWikiToolbar(WikiToolbar, StringBuffer)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.