Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.roller.presentation.velocity.plugins.jspwiki
Class WikiPlugin  view WikiPlugin download WikiPlugin.java

java.lang.Object
  extended byorg.roller.presentation.velocity.plugins.jspwiki.WikiPlugin
All Implemented Interfaces:
org.roller.presentation.velocity.PagePlugin

public class WikiPlugin
extends java.lang.Object
implements org.roller.presentation.velocity.PagePlugin

Wiki plugin using the JSPWiki WikiEngine. If you want Wiki links to point to your JSPWiki, then edit the jspwiki.properties fiel in Roller's WEB-INF directory and set the jspwiki.baseURL appropriately. For example, if your Wiki is on your localhost in the Servlet Context named 'wiki' then you'd set jspwiki.baseURL like so:

jspwiki.baseURL=http://local:8080/wiki/


Field Summary
private static org.apache.commons.logging.Log mLogger
           
(package private)  WikiContext mWikiContext
           
(package private)  WikiEngine mWikiEngine
           
(package private)  WikiPage mWikiPage
           
 
Constructor Summary
WikiPlugin()
           
 
Method Summary
 void init(org.roller.presentation.RollerRequest rreq, org.apache.velocity.context.Context ctx)
          Put plugin into the page context so templates may access it.
 java.lang.String makeCamelCaseWikiLink(org.roller.pojos.WeblogEntryData wd, java.lang.String prefix)
          Return URL to the Wiki page for a weblog entry, CamelCase style
 java.lang.String makeSpacedWikiLink(org.roller.pojos.WeblogEntryData wd, java.lang.String prefix)
          Return URL to the Wiki page for a weblog entry, spacey style
 java.lang.String render(java.lang.String src)
          Convert an input string that contains text that uses JSPWiki syntax to an output string in HTML format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mLogger

private static org.apache.commons.logging.Log mLogger

mWikiEngine

WikiEngine mWikiEngine

mWikiContext

WikiContext mWikiContext

mWikiPage

WikiPage mWikiPage
Constructor Detail

WikiPlugin

public WikiPlugin()
Method Detail

init

public void init(org.roller.presentation.RollerRequest rreq,
                 org.apache.velocity.context.Context ctx)
Put plugin into the page context so templates may access it.

Specified by:
init in interface org.roller.presentation.velocity.PagePlugin

render

public java.lang.String render(java.lang.String src)
Convert an input string that contains text that uses JSPWiki syntax to an output string in HTML format.


makeCamelCaseWikiLink

public java.lang.String makeCamelCaseWikiLink(org.roller.pojos.WeblogEntryData wd,
                                              java.lang.String prefix)
Return URL to the Wiki page for a weblog entry, CamelCase style


makeSpacedWikiLink

public java.lang.String makeSpacedWikiLink(org.roller.pojos.WeblogEntryData wd,
                                           java.lang.String prefix)
Return URL to the Wiki page for a weblog entry, spacey style