public interface WikiEngine
| 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 content)
Returns
true if the content of a wiki page for this engine
is valid. |
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
page - 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 occurredjava.util.Map<java.lang.String,java.lang.Boolean> getOutgoingLinks(com.liferay.portlet.wiki.model.WikiPage page)
throws com.liferay.portlet.wiki.PageContentException
page - the pagecom.liferay.portlet.wiki.PageContentException - if a page content exception occurredvoid setInterWikiConfiguration(java.lang.String interWikiConfiguration)
interWikiConfiguration - the configuration to support quick links to
other wikisvoid setMainConfiguration(java.lang.String mainConfiguration)
mainConfiguration - the main configuration of the wiki engineboolean validate(long nodeId,
java.lang.String content)
true if the content of a wiki page for this engine
is valid.nodeId - the ID of the wiki page nodecontent - the page contenttrue if the content of a wiki page for this engine
is valid; false otherwise