|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.renderer.AbstractRenderFilter
com.jivesoftware.forum.renderer.macro.ForumMacro
public class ForumMacro
A macro to convert {forum:id=123} into a forum link
| Field Summary | |
|---|---|
static java.lang.String |
TAG_NAME
|
| Constructor Summary | |
|---|---|
ForumMacro()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
executeHtmlTarget(java.lang.String string,
RenderContext renderContext)
This method is called to execute the filter when the render target specified in the context is RenderTarget.TARGET_HTML. |
protected java.lang.String |
executeNoMarkupTarget(java.lang.String string,
RenderContext renderContext)
This method is called to execute the filter when the render target specified in the context is RenderTarget.TARGET_NO_MARKUP. |
protected java.lang.String |
executePlainEmailTarget(java.lang.String string,
RenderContext renderContext)
This method is called to execute the filter when the render target specified in the context is RenderTarget.TARGET_PLAIN_EMAIL. |
protected java.lang.String |
executePlainTextTarget(java.lang.String string,
RenderContext renderContext)
This method is called to execute the filter when the render target specified in the context is RenderTarget.TARGET_PLAIN_TEXT. |
protected java.lang.String |
executeWysiwygEditorTarget(java.lang.String string,
RenderContext renderContext)
This method is called to execute the filter when the render target specified in the context is RenderTarget.TARGET_WYSIWYG_EDITOR. |
protected java.lang.String[] |
getDefaultHelp()
Returns a String[section,title,body] for the default help for the filter. |
protected java.util.Map |
getDocumentationMap()
Returns a documentation Map keyed by languageCode -> String[section,title,body]. |
java.lang.String |
getEndTag()
|
java.lang.String |
getMacroTagName()
Returns the tag name of the macro. |
java.lang.String |
getMidTag()
|
java.lang.String |
getName()
Returns the unique name of the filter. |
java.util.Map |
getParameters()
Returns a Map of user provided parameters to the macro. |
java.lang.String |
getStartTag()
|
protected boolean |
isEnabledByDefault()
Returns true if the filter should be enabled by default, false otherwise. |
boolean |
isSingleTagMacro()
Returns true is the macro has only a single tag such as {testMacro}, false if the macro should have both an opening and closing tag ({testMacro}text here{testMacro}) |
void |
setEndTag(java.lang.String endTag)
|
void |
setMidTag(java.lang.String midTag)
|
void |
setParameters(java.util.Map parameters)
Sets a map of user provided parameters for the macro to use. |
void |
setStartTag(java.lang.String startTag)
|
| Methods inherited from class com.jivesoftware.forum.renderer.AbstractRenderFilter |
|---|
execute, getUserDocumentation, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jivesoftware.forum.renderer.RenderMacro |
|---|
execute |
| Methods inherited from interface com.jivesoftware.forum.renderer.RenderFilter |
|---|
getUserDocumentation, isEnabled, setEnabled |
| Field Detail |
|---|
public static final java.lang.String TAG_NAME
| Constructor Detail |
|---|
public ForumMacro()
| Method Detail |
|---|
public java.lang.String getName()
RenderFilter
getName in interface RenderFiltergetName in class AbstractRenderFilterprotected boolean isEnabledByDefault()
AbstractRenderFilter
isEnabledByDefault in class AbstractRenderFilterpublic java.lang.String getMacroTagName()
RenderMacro
getMacroTagName in interface RenderMacropublic boolean isSingleTagMacro()
RenderMacro
isSingleTagMacro in interface RenderMacro
protected java.lang.String executePlainTextTarget(java.lang.String string,
RenderContext renderContext)
AbstractRenderFilterRenderTarget.TARGET_PLAIN_TEXT.
executePlainTextTarget in class AbstractRenderFilterstring - the String to filterrenderContext - the context the filter is being executed within
protected java.lang.String executePlainEmailTarget(java.lang.String string,
RenderContext renderContext)
AbstractRenderFilterRenderTarget.TARGET_PLAIN_EMAIL.
executePlainEmailTarget in class AbstractRenderFilterstring - the String to filterrenderContext - the context the filter is being executed within
protected java.lang.String executeHtmlTarget(java.lang.String string,
RenderContext renderContext)
AbstractRenderFilterRenderTarget.TARGET_HTML.
executeHtmlTarget in class AbstractRenderFilterstring - the String to filterrenderContext - the context the filter is being executed within
protected java.lang.String executeWysiwygEditorTarget(java.lang.String string,
RenderContext renderContext)
AbstractRenderFilterRenderTarget.TARGET_WYSIWYG_EDITOR.
executeWysiwygEditorTarget in class AbstractRenderFilterstring - the String to filterrenderContext - the context the filter is being executed within
protected java.lang.String executeNoMarkupTarget(java.lang.String string,
RenderContext renderContext)
AbstractRenderFilterRenderTarget.TARGET_NO_MARKUP.
executeNoMarkupTarget in class AbstractRenderFilterstring - the String to filterrenderContext - the context the filter is being executed within
protected java.util.Map getDocumentationMap()
AbstractRenderFilter
getDocumentationMap in class AbstractRenderFilterprotected java.lang.String[] getDefaultHelp()
AbstractRenderFilter
getDefaultHelp in class AbstractRenderFilterpublic java.util.Map getParameters()
RenderMacro
getParameters in interface RenderMacropublic void setParameters(java.util.Map parameters)
RenderMacro
setParameters in interface RenderMacroparameters - a map of user provided parameterspublic java.lang.String getStartTag()
public void setStartTag(java.lang.String startTag)
public java.lang.String getMidTag()
public void setMidTag(java.lang.String midTag)
public java.lang.String getEndTag()
public void setEndTag(java.lang.String endTag)
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||