Liferay 6.0.5

com.liferay.portlet.wiki.engines
Interface WikiEngine

All Known Implementing Classes:
HtmlEngine, JSPWikiEngine, TextEngine

public interface WikiEngine


Method Summary
 String convert(WikiPage page, PortletURL portletURL)
          Convert the content of the given page to HTML using the portletURL to build links.
 Map<String,Boolean> getOutgoingLinks(WikiPage page)
          Get a map with the links included in the given page.
 void setInterWikiConfiguration(String interWikiConfiguration)
          Set the configuraton to support quick links to other wikis.
 void setMainConfiguration(String mainConfiguration)
          Set the main wiki configuraiton as a String.
 boolean validate(long nodeId, String content)
          Validate the content of a wiki page for this engine.
 

Method Detail

convert

String convert(WikiPage page,
               PortletURL portletURL)
               throws PageContentException
Convert the content of the given page to HTML using the portletURL to build links.

Returns:
HTML string
Throws:
PageContentException

getOutgoingLinks

Map<String,Boolean> getOutgoingLinks(WikiPage page)
                                     throws PageContentException
Get a map with the links included in the given page. The key of each map entry is the title of the linked page. The value is a Boolean object that indicates if the linked page exists or not.

Returns:
a map of links
Throws:
PageContentException

setInterWikiConfiguration

void setInterWikiConfiguration(String interWikiConfiguration)
Set the configuraton to support quick links to other wikis. The format of the configuration is specific to the wiki engine.


setMainConfiguration

void setMainConfiguration(String mainConfiguration)
Set the main wiki configuraiton as a String. The format of the configuration is specific to the wiki engine.


validate

boolean validate(long nodeId,
                 String content)
Validate the content of a wiki page for this engine.

Returns:
true if the content is valid

Liferay 6.0.5