|
Clearspace API (2.5.18) 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 String |
applyFreemarkerTemplate(freemarker.template.Configuration config,
Map<String,Object> properties,
String templateName)
Processes the specified template file and returns a String containing the content of the template file. |
protected String[] |
getDefaultHelp()
Not currently used. |
protected Map<String,String[]> |
getDocumentationMap()
Not currently used. |
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 |
|---|
getOrder, getParameters, getUserDocumentation, isDisplayable, isEnabled, isModifiable, setEnabled, setParameters, shouldProcess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jivesoftware.community.renderer.RenderFilter |
|---|
execute |
| Constructor Detail |
|---|
public BaseFilter()
| Method Detail |
|---|
public String getName()
getName in class AbstractRenderFilterprotected boolean isEnabledByDefault()
isEnabledByDefault in class AbstractRenderFilterprotected Map<String,String[]> getDocumentationMap()
getDocumentationMap in class AbstractRenderFilterprotected String[] getDefaultHelp()
getDefaultHelp in class AbstractRenderFilter
protected static String applyFreemarkerTemplate(freemarker.template.Configuration config,
Map<String,Object> properties,
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 | |||||||||