|
Liferay 6.2.0-ce-m4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.wiki.engines.mediawiki.MediaWikiEngine
public class MediaWikiEngine
| Constructor Summary | |
|---|---|
MediaWikiEngine()
|
|
| Method Summary | |
|---|---|
String |
convert(WikiPage page,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
Returns the content of the given page converted to HTML using the view and edit URLs to build links. |
Map<String,Boolean> |
getOutgoingLinks(WikiPage page)
Returns a map of the links included in the given page. |
protected org.jamwiki.parser.ParserInput |
getParserInput(long nodeId,
String topicName)
|
protected org.jamwiki.parser.ParserOutput |
getParserOutput(WikiPage page)
|
protected String |
parsePage(WikiPage page,
org.jamwiki.parser.ParserOutput parserOutput,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
|
void |
setInterWikiConfiguration(String interWikiConfiguration)
Set the configuration to support quick links to other wikis. |
void |
setMainConfiguration(String mainConfiguration)
Sets the main wiki configuration as a String. |
boolean |
validate(long nodeId,
String content)
Returns true if the content of a wiki page for this engine
is valid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MediaWikiEngine()
| Method Detail |
|---|
public String convert(WikiPage page,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
throws PageContentException
WikiEngine
convert 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
page
PageContentException - if a page content exception occurred
public Map<String,Boolean> getOutgoingLinks(WikiPage page)
throws PageContentException
WikiEngine
getOutgoingLinks in interface WikiEnginepage - the page
PageContentException - if a page content exception occurredpublic void setInterWikiConfiguration(String interWikiConfiguration)
WikiEngine
setInterWikiConfiguration in interface WikiEngineinterWikiConfiguration - the configuration to support quick links to
other wikispublic void setMainConfiguration(String mainConfiguration)
WikiEngine
setMainConfiguration in interface WikiEnginemainConfiguration - the main configuration of the wiki engine
public boolean validate(long nodeId,
String content)
WikiEnginetrue if the content of a wiki page for this engine
is valid.
validate in interface WikiEnginenodeId - the ID of the wiki page nodecontent - the page content
protected org.jamwiki.parser.ParserInput getParserInput(long nodeId,
String topicName)
protected org.jamwiki.parser.ParserOutput getParserOutput(WikiPage page)
throws PageContentException
PageContentException
protected String parsePage(WikiPage page,
org.jamwiki.parser.ParserOutput parserOutput,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
throws PageContentException
PageContentException
|
Liferay 6.2.0-ce-m4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||