|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.plugin.common.IPBanningPlugin org.blojsom.plugin.common.VelocityPlugin
VelocityPlugin
Field Summary | |
protected java.lang.String |
_baseConfigurationDirectory
|
protected java.lang.String |
_installationDirectory
|
protected org.apache.commons.logging.Log |
_logger
|
protected java.lang.String |
_templatesDirectory
|
protected java.util.Properties |
_velocityProperties
|
Fields inherited from class org.blojsom.plugin.common.IPBanningPlugin |
BANNED_IP_ADDRESSES_IP |
Constructor Summary | |
VelocityPlugin()
|
Method Summary | |
protected java.lang.String |
getVelocityFileLoaderPath(java.lang.String userId)
Return a path appropriate for the Velocity file resource loader |
void |
init(javax.servlet.ServletConfig servletConfig,
BlojsomConfiguration blojsomConfiguration)
Initialize this plugin. |
protected java.lang.String |
mergeTemplate(java.lang.String template,
BlogUser user,
java.util.Map context)
Merge a given template for the user with the appropriate context |
Methods inherited from class org.blojsom.plugin.common.IPBanningPlugin |
isIPBanned |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.blojsom.plugin.BlojsomPlugin |
cleanup, destroy, process |
Field Detail |
protected org.apache.commons.logging.Log _logger
protected java.lang.String _installationDirectory
protected java.lang.String _baseConfigurationDirectory
protected java.lang.String _templatesDirectory
protected java.util.Properties _velocityProperties
Constructor Detail |
public VelocityPlugin()
Method Detail |
public void init(javax.servlet.ServletConfig servletConfig, BlojsomConfiguration blojsomConfiguration) throws BlojsomPluginException
init
in interface BlojsomPlugin
init
in class IPBanningPlugin
servletConfig
- Servlet config object for the plugin to retrieve any initialization parametersblojsomConfiguration
- BlojsomConfiguration
information
BlojsomPluginException
- If there is an error initializing the pluginprotected java.lang.String getVelocityFileLoaderPath(java.lang.String userId)
userId
- User ID
protected java.lang.String mergeTemplate(java.lang.String template, BlogUser user, java.util.Map context)
template
- Templateuser
- BlogUser
informationcontext
- Context with objects for use in the template
null
if there was an error setting properties, loading the template, or merging
the template
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |