public class JSPWikiEngine extends java.lang.Object implements WikiEngine
| Constructor and Description |
|---|
JSPWikiEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
convert(com.liferay.portlet.wiki.model.WikiPage page) |
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.
|
static java.lang.String |
decodeJSPWikiName(java.lang.String jspWikiName) |
protected LiferayJSPWikiEngine |
getEngine(long nodeId) |
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.
|
protected void |
setProperties(java.lang.String configuration) |
boolean |
validate(long nodeId,
java.lang.String newContent)
Returns
true if the content of a wiki page for this engine
is valid. |
public static java.lang.String decodeJSPWikiName(java.lang.String jspWikiName)
public java.lang.String convert(com.liferay.portlet.wiki.model.WikiPage page,
javax.portlet.PortletURL viewPageURL,
javax.portlet.PortletURL editPageURL,
java.lang.String attachmentURLPrefix)
throws com.liferay.portlet.wiki.PageContentException
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
pagecom.liferay.portlet.wiki.PageContentException - if a page content exception occurredpublic java.util.Map<java.lang.String,java.lang.Boolean> getOutgoingLinks(com.liferay.portlet.wiki.model.WikiPage page)
throws com.liferay.portlet.wiki.PageContentException
WikiEnginegetOutgoingLinks in interface WikiEnginepage - the pagecom.liferay.portlet.wiki.PageContentException - if a page content exception occurredpublic 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 otherwiseprotected java.lang.String convert(com.liferay.portlet.wiki.model.WikiPage page)
throws com.ecyrd.jspwiki.WikiException
com.ecyrd.jspwiki.WikiExceptionprotected LiferayJSPWikiEngine getEngine(long nodeId) throws com.ecyrd.jspwiki.WikiException
com.ecyrd.jspwiki.WikiExceptionprotected void setProperties(java.lang.String configuration)