com.jalios.jcms.policy
Class BasicWikiPolicyFilter

java.lang.Object
  extended by com.jalios.jcms.policy.AbstractPolicyFilter
      extended by 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

Field Summary
static String REVISION
           
 
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
 
Constructor Summary
BasicWikiPolicyFilter()
           
 
Method Summary
 String afterRendering(String text, Locale userLocale, WikiRenderingHints hints)
          This method is called after wiki rendering
 String beforeRendering(String text, Locale userLocale, WikiRenderingHints hints)
          This method is called before wiki rendering
 void handleWikiToolbar(WikiToolbar tb, 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
 
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrder
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

BasicWikiPolicyFilter

public BasicWikiPolicyFilter()
Method Detail

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 generated
hints - 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 generated
hints - 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 WikiToolbar
sb - the StringBuffer before closing </div> toolbar
See Also:
WikiPolicyFilter.handleWikiToolbar(WikiToolbar, StringBuffer)


Copyright © 2001-2010 Jalios SA. All Rights Reserved.