org.blojsom.plugin.admin
Class EditBlogsPlugin

java.lang.Object
  extended byorg.blojsom.plugin.admin.BaseAdminPlugin
      extended byorg.blojsom.plugin.admin.EditBlogsPlugin
All Implemented Interfaces:
PermissionedPlugin, Plugin

public class EditBlogsPlugin
extends BaseAdminPlugin

EditBlogsPlugin

Since:
blojsom 3.0
Version:
$Id: EditBlogsPlugin.java,v 1.9 2007/02/27 16:42:52 czarneckid Exp $
Author:
David Czarnecki

Field Summary
 
Fields inherited from class org.blojsom.plugin.admin.BaseAdminPlugin
_authorizationProvider, _ignoreParams, _resourceManager, _servletConfig, ACTION_PARAM, ADMIN_ADMINISTRATION_PAGE, ADMIN_AJAX_RESPONSE, ADMIN_LOGIN_PAGE, BLOJSOM_ADMIN_MESSAGES_RESOURCE, BLOJSOM_ADMIN_PLUGIN_AUTHENTICATED_KEY, BLOJSOM_ADMIN_PLUGIN_OPERATION_RESULT, BLOJSOM_ADMIN_PLUGIN_PASSWORD_PARAM, BLOJSOM_ADMIN_PLUGIN_USERNAME, BLOJSOM_ADMIN_PLUGIN_USERNAME_KEY, BLOJSOM_ADMIN_PLUGIN_USERNAME_PARAM, BLOJSOM_PERMISSION_CHECKER, BLOJSOM_USER_AUTHENTICATED, LOGIN_ACTION, LOGIN_ERROR_TEXT_KEY, LOGOUT_ACTION, PAGE_ACTION, PLUGIN_ADMIN_INHERIT_APACHE_CREDENTIALS, SUBACTION_PARAM
 
Constructor Summary
EditBlogsPlugin()
          Default constructor.
 
Method Summary
 Entry[] process(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, Blog blog, java.util.Map context, Entry[] entries)
          Process the blog entries
 void setBlojsomProperties(java.util.Properties blojsomProperties)
          Set the default blojsom properties
 void setDefaultBlogProperties(java.util.Map defaultBlogProperties)
          Set the default blog properties
 void setDefaultPluginProperties(java.util.Map defaultPluginProperties)
          Set the default plugin properties
 void setDefaultTemplateProperties(java.util.Map defaultTemplateProperties)
          Set the default template properties
 void setFetcher(Fetcher fetcher)
          Set the Fetcher
 void setProtectedBlogs(java.util.Map protectedBlogs)
          Set the protected blogs (cannot be deleted)
 
Methods inherited from class org.blojsom.plugin.admin.BaseAdminPlugin
addOperationResultMessage, authenticateUser, checkPermission, cleanup, destroy, formatAdminResource, getAdminResource, getUsernameFromSession, init, setAuthorizationProvider, setResourceManager, setServletConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditBlogsPlugin

public EditBlogsPlugin()
Default constructor.

Method Detail

setFetcher

public void setFetcher(Fetcher fetcher)
Set the Fetcher

Parameters:
fetcher - Fetcher

setDefaultBlogProperties

public void setDefaultBlogProperties(java.util.Map defaultBlogProperties)
Set the default blog properties

Parameters:
defaultBlogProperties - Default blog properties

setDefaultTemplateProperties

public void setDefaultTemplateProperties(java.util.Map defaultTemplateProperties)
Set the default template properties

Parameters:
defaultTemplateProperties - Default template properties

setDefaultPluginProperties

public void setDefaultPluginProperties(java.util.Map defaultPluginProperties)
Set the default plugin properties

Parameters:
defaultPluginProperties - Default plugin properties

setBlojsomProperties

public void setBlojsomProperties(java.util.Properties blojsomProperties)
Set the default blojsom properties

Parameters:
blojsomProperties - Default blojsom properties

setProtectedBlogs

public void setProtectedBlogs(java.util.Map protectedBlogs)
Set the protected blogs (cannot be deleted)

Parameters:
protectedBlogs - Map of protected blogs

process

public Entry[] process(javax.servlet.http.HttpServletRequest httpServletRequest,
                       javax.servlet.http.HttpServletResponse httpServletResponse,
                       Blog blog,
                       java.util.Map context,
                       Entry[] entries)
                throws PluginException
Process the blog entries

Specified by:
process in interface Plugin
Overrides:
process in class BaseAdminPlugin
Parameters:
httpServletRequest - Request
httpServletResponse - Response
blog - Blog instance
context - Context
entries - Blog entries retrieved for the particular request
Returns:
Modified set of blog entries
Throws:
PluginException - If there is an error processing the blog entries