com.jalios.jcms.policy
Class BasicWikiPolicyFilter
java.lang.Object
com.jalios.jcms.policy.AbstractPolicyFilter
com.jalios.jcms.policy.BasicWikiPolicyFilter
- All Implemented Interfaces:
- PluginComponent, PolicyFilter, WikiPolicyFilter, Comparable
public class BasicWikiPolicyFilter
- extends AbstractPolicyFilter
- implements WikiPolicyFilter, PluginComponent
This class provides hooks for wiki rendering.
- Since:
- jcms-5.7.0
- Version:
- $Revision: 24040 $
- Author:
- Olivier Dedieu
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
BasicWikiPolicyFilter
public BasicWikiPolicyFilter()
init
public boolean init(Plugin plugin)
- Description copied from interface:
PluginComponent
- Initialize the component with the given plugin configuration
- Specified by:
init
in interface PluginComponent
- Parameters:
plugin
- the calling plugin
- Returns:
- true if the component has been correctly initialized.
- Since:
- jcms-5.7.1
- See Also:
PluginComponent.init(Plugin)
beforeRendering
public String beforeRendering(String text,
Locale userLocale,
WikiRenderingHints hints)
- Description copied from interface:
WikiPolicyFilter
- This method is called before wiki rendering
- Specified by:
beforeRendering
in interface WikiPolicyFilter
- Parameters:
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.
- Returns:
- the text.
- See Also:
WikiPolicyFilter.beforeRendering(String, Locale, WikiRenderingHints)
afterRendering
public String afterRendering(String text,
Locale userLocale,
WikiRenderingHints hints)
- Description copied from interface:
WikiPolicyFilter
- This method is called after wiki rendering
- Specified by:
afterRendering
in interface WikiPolicyFilter
- Parameters:
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.
- Returns:
- the text.
- See Also:
WikiPolicyFilter.afterRendering(String, Locale, WikiRenderingHints)
handleWikiToolbar
public void handleWikiToolbar(WikiToolbar tb,
StringBuffer sb)
- Description copied from interface:
WikiPolicyFilter
- This method is called by WikiToolbar to add buttons / information at the end of wiki toolbar.
- Specified by:
handleWikiToolbar
in interface WikiPolicyFilter
- Parameters:
tb
- the WikiToolbarsb
- the StringBuffer before closing </div> toolbar- See Also:
WikiPolicyFilter.handleWikiToolbar(WikiToolbar, StringBuffer)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.