public class TextEngine extends java.lang.Object implements WikiEngine
| Constructor and Description |
|---|
TextEngine() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convert(com.liferay.portlet.wiki.model.WikiPage page,
javax.portlet.PortletURL viewPageURL,
javax.portlet.PortletURL editPageURL,
java.lang.String attachmentURLPrefix)
Returns the content of the given page converted to HTML using the view
and edit URLs to build links.
|
java.util.Map<java.lang.String,java.lang.Boolean> |
getOutgoingLinks(com.liferay.portlet.wiki.model.WikiPage page)
Returns a map of the links included in the given page.
|
void |
setInterWikiConfiguration(java.lang.String interWikiConfiguration)
Set the configuration to support quick links to other wikis.
|
void |
setMainConfiguration(java.lang.String mainConfiguration)
Sets the main wiki configuration as a String.
|
boolean |
validate(long nodeId,
java.lang.String newContent)
Returns
true if the content of a wiki page for this engine
is valid. |
public java.lang.String convert(com.liferay.portlet.wiki.model.WikiPage page,
javax.portlet.PortletURL viewPageURL,
javax.portlet.PortletURL editPageURL,
java.lang.String attachmentURLPrefix)
WikiEngineconvert in interface WikiEnginepage - the wiki pageviewPageURL - the URL to view the pageeditPageURL - the URL to edit the pageattachmentURLPrefix - the URL prefix to use for attachments to the
pagepublic java.util.Map<java.lang.String,java.lang.Boolean> getOutgoingLinks(com.liferay.portlet.wiki.model.WikiPage page)
WikiEnginegetOutgoingLinks in interface WikiEnginepage - the pagepublic void setInterWikiConfiguration(java.lang.String interWikiConfiguration)
WikiEnginesetInterWikiConfiguration in interface WikiEngineinterWikiConfiguration - the configuration to support quick links to
other wikispublic void setMainConfiguration(java.lang.String mainConfiguration)
WikiEnginesetMainConfiguration in interface WikiEnginemainConfiguration - the main configuration of the wiki enginepublic boolean validate(long nodeId,
java.lang.String newContent)
WikiEnginetrue if the content of a wiki page for this engine
is valid.validate in interface WikiEnginenodeId - the ID of the wiki page nodenewContent - the page contenttrue if the content of a wiki page for this engine
is valid; false otherwise