|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.plugin.admin.BaseAdminPlugin org.blojsom.plugin.admin.EditBlogTemplatesPlugin
EditBlogTemplatesPlugin
Field Summary |
Constructor Summary | |
EditBlogTemplatesPlugin()
Default constructor. |
Method Summary | |
void |
init()
Initialize this plugin. |
Entry[] |
process(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
Blog blog,
java.util.Map context,
Entry[] entries)
Process the blog entries |
protected void |
putTemplateDirectoriesInContext(java.io.File templatesDirectory,
java.util.Map context)
Put the list of template directories in the context |
protected void |
putTemplatesInContext(java.io.File templatesDirectory,
java.util.Map context)
Put the list of template files in the context |
protected java.lang.String |
sanitizeFilename(java.lang.String blogTemplate)
Sanitize a filename |
void |
setBlojsomProperties(java.util.Properties blojsomProperties)
Set the default blojsom properties |
void |
setTemplateEditProperties(java.util.Properties templateEditProperties)
Set the template editing properties |
Methods inherited from class org.blojsom.plugin.admin.BaseAdminPlugin |
addOperationResultMessage, authenticateUser, checkPermission, cleanup, destroy, formatAdminResource, getAdminResource, getUsernameFromSession, setAuthorizationProvider, setResourceManager, setServletConfig |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EditBlogTemplatesPlugin()
Method Detail |
public void setTemplateEditProperties(java.util.Properties templateEditProperties)
templateEditProperties
- Template editing propertiespublic void setBlojsomProperties(java.util.Properties blojsomProperties)
blojsomProperties
- Default blojsom propertiespublic void init() throws PluginException
init
in interface Plugin
init
in class BaseAdminPlugin
PluginException
- If there is an error initializing the pluginprotected java.lang.String sanitizeFilename(java.lang.String blogTemplate)
blogTemplate
- Blog template filename
null
if error in sanitizingprotected void putTemplatesInContext(java.io.File templatesDirectory, java.util.Map context)
templatesDirectory
- Templates directorycontext
- Contextprotected void putTemplateDirectoriesInContext(java.io.File templatesDirectory, java.util.Map context)
templatesDirectory
- Templates directorycontext
- Contextpublic Entry[] process(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, Blog blog, java.util.Map context, Entry[] entries) throws PluginException
process
in interface Plugin
process
in class BaseAdminPlugin
httpServletRequest
- RequesthttpServletResponse
- Responseblog
- Blog
instancecontext
- Contextentries
- Blog entries retrieved for the particular request
PluginException
- If there is an error processing the blog entries
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |