public abstract class BaseWikiEngine extends java.lang.Object implements WikiEngine
| Constructor and Description |
|---|
BaseWikiEngine() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convert(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.
|
protected java.lang.String |
getEditPageJSP() |
protected abstract javax.servlet.ServletContext |
getEditPageServletContext() |
java.lang.String |
getFormatLabel(java.util.Locale locale) |
java.util.Map<java.lang.String,java.lang.Boolean> |
getOutgoingLinks(WikiPage page)
Returns a map of the links included in the given page.
|
protected com.liferay.portal.kernel.util.ResourceBundleLoader |
getResourceBundleLoader() |
java.lang.String |
getToolbarSet() |
static WikiNode |
getWikiNode(javax.servlet.ServletRequest servletRequest) |
static WikiPage |
getWikiPage(javax.servlet.ServletRequest servletRequest) |
void |
renderEditPage(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
WikiNode node,
WikiPage page) |
boolean |
validate(long nodeId,
java.lang.String newContent)
Returns
true if the content of a wiki page for this engine
is valid. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatpublic static WikiNode getWikiNode(javax.servlet.ServletRequest servletRequest)
public static WikiPage getWikiPage(javax.servlet.ServletRequest servletRequest)
public java.lang.String convert(WikiPage page, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, java.lang.String attachmentURLPrefix) throws 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
pagePageContentExceptionpublic java.lang.String getFormatLabel(java.util.Locale locale)
getFormatLabel in interface WikiEnginepublic java.util.Map<java.lang.String,java.lang.Boolean> getOutgoingLinks(WikiPage page) throws PageContentException
WikiEnginegetOutgoingLinks in interface WikiEnginepage - the pagePageContentExceptionpublic java.lang.String getToolbarSet()
getToolbarSet in interface WikiEnginepublic void renderEditPage(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
WikiNode node,
WikiPage page)
throws java.io.IOException,
javax.servlet.ServletException
renderEditPage in interface WikiEnginejava.io.IOExceptionjavax.servlet.ServletExceptionpublic 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 getEditPageJSP()
protected abstract javax.servlet.ServletContext getEditPageServletContext()
protected com.liferay.portal.kernel.util.ResourceBundleLoader getResourceBundleLoader()