|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.renderer.AbstractRenderFilter
com.jivesoftware.community.renderer.BaseFilter
public abstract class BaseFilter
A Base class to be used to create a filter.
Subclasses of this macro can be configured by using annotions;
Name : Used to change the name of the macro. If not used getClass().getShortName() is used.
Description : A description of the macro. No description by default.
EnableByDefault : Whether this macro is enabled or disabled by default. The default value is true.
RenderTypes : RenderTypes this macro works for. Default is RenderType.BODY
Name,
Description,
EnableByDefault,
RenderType| Constructor Summary | |
|---|---|
BaseFilter()
|
|
| Method Summary | |
|---|---|
protected static java.lang.String |
applyFreemarkerTemplate(freemarker.template.Configuration config,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.String templateName)
Processes the specified template file and returns a String containing the content of the template file. |
protected java.lang.String[] |
getDefaultHelp()
Not currently used. |
protected java.util.Map<java.lang.String,java.lang.String[]> |
getDocumentationMap()
Not currently used. |
java.lang.String |
getName()
Returns the value of the Name annotation if defined otherwise the value of getClass().getSimpleName(). |
protected boolean |
isEnabledByDefault()
Returns the value of the EnableByDefault annotation if it is defined, else true. |
| Methods inherited from class com.jivesoftware.community.renderer.AbstractRenderFilter |
|---|
execute, executeHtmlTarget, executeNoMarkupTarget, executePlainEmailTarget, executePlainTextTarget, executeWysiwygEditorTarget, executeXMLTarget, getUserDocumentation, isDisplayable, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseFilter()
| Method Detail |
|---|
public java.lang.String getName()
getName in interface RenderFiltergetName in class AbstractRenderFilterprotected boolean isEnabledByDefault()
isEnabledByDefault in class AbstractRenderFilterprotected java.util.Map<java.lang.String,java.lang.String[]> getDocumentationMap()
getDocumentationMap in class AbstractRenderFilterprotected java.lang.String[] getDefaultHelp()
getDefaultHelp in class AbstractRenderFilter
protected static java.lang.String applyFreemarkerTemplate(freemarker.template.Configuration config,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.String templateName)
config - the freemarker configurationproperties - used for the freemarker contexttemplateName - name of the template
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||