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.
|
static BaseWikiEngine |
getBaseWikiEngine(javax.servlet.ServletRequest servletRequest) |
abstract java.lang.String |
getEditorName() |
protected java.lang.String |
getEditPageJSP() |
protected abstract javax.servlet.ServletContext |
getEditPageServletContext() |
java.lang.String |
getFormatLabel(java.util.Locale locale) |
java.lang.String |
getHelpPageHTML(javax.servlet.jsp.PageContext pageContext) |
protected java.lang.String |
getHelpPageJSP() |
protected abstract javax.servlet.ServletContext |
getHelpPageServletContext() |
java.lang.String |
getHelpPageTitle(javax.servlet.http.HttpServletRequest httpServletRequest) |
abstract java.lang.String |
getHelpURL() |
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.resource.bundle.ResourceBundleLoader |
getResourceBundleLoader() |
java.lang.String |
getToolbarSet() |
static WikiNode |
getWikiNode(javax.servlet.ServletRequest servletRequest) |
static WikiPage |
getWikiPage(javax.servlet.ServletRequest servletRequest) |
boolean |
isHelpPageDefined() |
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, wait
getFormat
public static BaseWikiEngine getBaseWikiEngine(javax.servlet.ServletRequest servletRequest)
public 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)
WikiEngine
convert
in interface WikiEngine
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
pagepublic abstract java.lang.String getEditorName()
public java.lang.String getFormatLabel(java.util.Locale locale)
getFormatLabel
in interface WikiEngine
public java.lang.String getHelpPageHTML(javax.servlet.jsp.PageContext pageContext) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public java.lang.String getHelpPageTitle(javax.servlet.http.HttpServletRequest httpServletRequest)
public abstract java.lang.String getHelpURL()
public java.util.Map<java.lang.String,java.lang.Boolean> getOutgoingLinks(WikiPage page) throws PageContentException
WikiEngine
getOutgoingLinks
in interface WikiEngine
page
- the pagePageContentException
public java.lang.String getToolbarSet()
getToolbarSet
in interface WikiEngine
public boolean isHelpPageDefined()
public void renderEditPage(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, WikiNode node, WikiPage page) throws java.io.IOException, javax.servlet.ServletException
renderEditPage
in interface WikiEngine
java.io.IOException
javax.servlet.ServletException
public boolean validate(long nodeId, java.lang.String newContent)
WikiEngine
true
if the content of a wiki page for this engine
is valid.validate
in interface WikiEngine
nodeId
- 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 java.lang.String getHelpPageJSP()
protected abstract javax.servlet.ServletContext getHelpPageServletContext()
protected com.liferay.portal.kernel.resource.bundle.ResourceBundleLoader getResourceBundleLoader()