|
Liferay 6.0-ee | |||||||||
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)
Convert the content of the given page to HTML using the view and edit URLs to build links. |
Map<String,Boolean> |
getOutgoingLinks(WikiPage page)
Get a map with 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)
|
protected String |
postParsePage(String content,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
|
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. |
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 WikiEngine
PageContentException
public Map<String,Boolean> getOutgoingLinks(WikiPage page) throws PageContentException
WikiEngine
getOutgoingLinks
in interface WikiEngine
PageContentException
public void setInterWikiConfiguration(String interWikiConfiguration)
WikiEngine
setInterWikiConfiguration
in interface WikiEngine
public void setMainConfiguration(String mainConfiguration)
WikiEngine
setMainConfiguration
in interface WikiEngine
public boolean validate(long nodeId, String content)
WikiEngine
validate
in interface WikiEngine
true
if the content is validprotected 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) throws PageContentException
PageContentException
protected String postParsePage(String content, PortletURL viewPageURL, PortletURL editPageURL, String attachmentURLPrefix)
|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |