public interface WikiEngine
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.
|
java.lang.String |
getFormat() |
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.
|
java.lang.String |
getToolbarSet() |
void |
renderEditPage(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
WikiNode node,
WikiPage page) |
boolean |
validate(long nodeId,
java.lang.String content)
Returns
true if the content of a wiki page for this engine
is valid. |
java.lang.String convert(WikiPage page, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, java.lang.String attachmentURLPrefix) throws PageContentException
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
pagePageContentException
java.lang.String getFormat()
java.lang.String getFormatLabel(java.util.Locale locale)
java.util.Map<java.lang.String,java.lang.Boolean> getOutgoingLinks(WikiPage page) throws PageContentException
page
- the pagePageContentException
java.lang.String getToolbarSet()
void renderEditPage(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, WikiNode node, WikiPage page) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
boolean validate(long nodeId, java.lang.String content)
true
if the content of a wiki page for this engine
is valid.nodeId
- the ID of the wiki page nodecontent
- the page contenttrue
if the content of a wiki page for this engine
is valid; false
otherwise