| Home >> All >> org >> roller >> presentation >> [ velocity Javadoc ] |
org.roller.presentation.velocity: Javadoc index of package org.roller.presentation.velocity.
Package Samples:
org.roller.presentation.velocity.plugins.textile: Velocity integration, Page Servlet and Macros object.
org.roller.presentation.velocity.plugins.jspwiki
org.roller.presentation.velocity.plugins.radeox
Classes:
DatabaseResourceLoader: This is a simple template file loader that loads templates from a Database instead of plain files. Dave Johnson: Modified to use a regular old JDBC connection specified by driver class and connection URL. It can be configured with a datasource name, a table name, id column (name), content column (the template body) and a timestamp column (for last modification info). Example configuration snippet for velocity.properties: resource.loader.1.public.name =Database resource.loader.1.description = Roller Database Resource Loader resource.loader.1.class = org.roller.presentation.velocity.DatabaseResourceLoader ...
DataSourceResourceLoader: This is a simple template file loader that loads templates from a DataSource instead of plain files. It can be configured with a datasource name, a table name, id column (name), content column (the template body) and a timestamp column (for last modification info). Example configuration snippet for velocity.properties: resource.loader.1.public.name = DataSource resource.loader.1.description = Velocity DataSource Resource Loader resource.loader.1.class = org.apache.velocity.runtime.resource.loader.DataSourceResourceLoader resource.loader.1.resource.datasource = jdbc/SomeDS resource.loader.1.resource.table ...
WikiPlugin: 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/
PreviewResourceLoader: This is a simple template file loader that loads "preview" templates from a HashMap instance instead of plain files. Ideally this would use some smarter caching (re-implement with Commons-Cache?) so that the templates put here could expire in case the user forgot/neglected to clear their "work area". There is no configuration.
RollerPageProvider: Override page provider so that Wiki links always appear as hyperlinks to the external Wiki's Wiki.jsp?page=MyPageName page. Without this, they would appear as links tp Edit.jsp?page=MyPageName, which is not quite as nice. Eventually, it may be a good idea to use JSPWiki's XML-RPC interface to figure out if the page exists or not.
WebappResourceLoader: Tries to load Velocity resources from the Webapp. This class borrows heavily from org.apache.velocity.tools.view.servlet.WebappLoader http://cvs.apache.org/viewcvs/jakarta-velocity- tools/view/src/java/org/apache/velocity/tools/view/servlet/WebappLoader.java? rev=1.1.1.1&content-type=text/vnd.viewcvs-markup
RollerResourceLoader: This is a simple template file loader that loads templates from the Roller instance instead of plain files. RollerResourceLoader makes use of RollerFactory.
RollerServlet: Extend the VelocityServlet to load the VelocityContext with Roller values and to return Roller page templates for execution by Velocity.
Macros: Provides the macros object that is available to Roller templates and weblog entries.
PageModel: Provides Roller page templates with access to Roller domain model objects.
PageServlet: Extend RollerServlet to load proper resource loader for page execution.
PreviewServlet: Extend RollerServlet to load proper resource loader for page execution.
ContextLoader: Load Velocity Context with Roller objects, values, and custom plugins.
PageHelper: Provides assistance to VelociMacros, filling in where Velocity falls.
SearchServlet: This servlet retrieves (and displays) search results.
TextileConstants: Textile Constants
Textile: Textile
PagePlugin
WikiPlugin
TextilePlugin
| Home | Contact Us | Privacy Policy | Terms of Service |