Java Doc for BaseAdminPlugin.java in  » Blogger-System » blojsom-3.1 » org » blojsom » plugin » admin » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Blogger System » blojsom 3.1 » org.blojsom.plugin.admin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.blojsom.plugin.admin.BaseAdminPlugin

All known Subclasses:   org.blojsom.plugin.admin.FileUploadPlugin,  org.blojsom.plugin.admin.WebAdminPlugin,  org.blojsom.plugin.admin.EditBlogTemplatesPlugin,  org.blojsom.plugin.admin.EditBlogCategoriesPlugin,  org.blojsom.plugin.admin.EditBlogsPlugin,  org.blojsom.plugin.admin.ForgottenPasswordPlugin,  org.blojsom.plugin.admin.EditBlogEntriesPlugin,  org.blojsom.plugin.admin.EditBlogPermissionsPlugin,  org.blojsom.plugin.admin.ViewBlogUserPropertiesPlugin,  org.blojsom.plugin.admin.EditBlogPreferencesPlugin,  org.blojsom.plugin.admin.EditBlogFlavorsPlugin,  org.blojsom.plugin.admin.EditBlogPluginsPlugin,  org.blojsom.plugin.admin.BulkResponseManagement,  org.blojsom.plugin.security.BasicAuthenticationPlugin,  org.blojsom.plugin.admin.ListWebAdminPluginsPlugin,  org.blojsom.plugin.security.FormAuthenticationPlugin,  org.blojsom.plugin.admin.EditBlogAuthorizationPlugin,  org.blojsom.plugin.registration.RegistrationPlugin,  org.blojsom.plugin.admin.EditBlogPropertiesPlugin,
BaseAdminPlugin
public class BaseAdminPlugin implements Plugin,PermissionedPlugin(Code)
BaseAdminPlugin
author:
   David Czarnecki
version:
   $Id: BaseAdminPlugin.java,v 1.4 2007/01/17 02:35:04 czarneckid Exp $
since:
   blojsom 3.0


Field Summary
final protected static  StringACTION_PARAM
    
final protected static  StringADMIN_ADMINISTRATION_PAGE
    
final protected static  StringADMIN_AJAX_RESPONSE
    
final protected static  StringADMIN_LOGIN_PAGE
    
final protected static  StringBLOJSOM_ADMIN_MESSAGES_RESOURCE
    
final protected static  StringBLOJSOM_ADMIN_PLUGIN_AUTHENTICATED_KEY
    
final protected static  StringBLOJSOM_ADMIN_PLUGIN_OPERATION_RESULT
    
final protected static  StringBLOJSOM_ADMIN_PLUGIN_PASSWORD_PARAM
    
final protected static  StringBLOJSOM_ADMIN_PLUGIN_USERNAME
    
final protected static  StringBLOJSOM_ADMIN_PLUGIN_USERNAME_KEY
    
final protected static  StringBLOJSOM_ADMIN_PLUGIN_USERNAME_PARAM
    
final protected static  StringBLOJSOM_PERMISSION_CHECKER
    
final protected static  StringBLOJSOM_USER_AUTHENTICATED
    
final protected static  StringLOGIN_ACTION
    
final protected static  StringLOGIN_ERROR_TEXT_KEY
    
final protected static  StringLOGOUT_ACTION
    
final protected static  StringPAGE_ACTION
    
final protected static  StringPLUGIN_ADMIN_INHERIT_APACHE_CREDENTIALS
    
final protected static  StringSUBACTION_PARAM
    
protected  AuthorizationProvider_authorizationProvider
    
protected  Map_ignoreParams
    
final protected static  Log_logger
    
protected  ResourceManager_resourceManager
    
protected  ServletConfig_servletConfig
    

Constructor Summary
public  BaseAdminPlugin()
     Default constructor.

Method Summary
protected  voidaddOperationResultMessage(Map context, String message)
    
protected  booleanauthenticateUser(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Map context, Blog blog)
    
public  booleancheckPermission(Blog blog, Map permissionContext, String username, String permission)
    
public  voidcleanup()
     Perform any cleanup for the plugin.
public  voiddestroy()
    
protected  StringformatAdminResource(String resourceID, String fallbackText, Locale locale, Object[] arguments)
    
protected  StringgetAdminResource(String resourceID, String fallbackText, Locale locale)
    
protected  StringgetUsernameFromSession(HttpServletRequest httpServletRequest, Blog blog)
    
public  voidinit()
     Initialize this plugin.
public  Entry[]process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, Map context, Entry[] entries)
    
public  voidsetAuthorizationProvider(AuthorizationProvider authorizationProvider)
    
public  voidsetResourceManager(ResourceManager resourceManager)
    
public  voidsetServletConfig(ServletConfig servletConfig)
    

Field Detail
ACTION_PARAM
final protected static String ACTION_PARAM(Code)



ADMIN_ADMINISTRATION_PAGE
final protected static String ADMIN_ADMINISTRATION_PAGE(Code)



ADMIN_AJAX_RESPONSE
final protected static String ADMIN_AJAX_RESPONSE(Code)



ADMIN_LOGIN_PAGE
final protected static String ADMIN_LOGIN_PAGE(Code)



BLOJSOM_ADMIN_MESSAGES_RESOURCE
final protected static String BLOJSOM_ADMIN_MESSAGES_RESOURCE(Code)



BLOJSOM_ADMIN_PLUGIN_AUTHENTICATED_KEY
final protected static String BLOJSOM_ADMIN_PLUGIN_AUTHENTICATED_KEY(Code)



BLOJSOM_ADMIN_PLUGIN_OPERATION_RESULT
final protected static String BLOJSOM_ADMIN_PLUGIN_OPERATION_RESULT(Code)



BLOJSOM_ADMIN_PLUGIN_PASSWORD_PARAM
final protected static String BLOJSOM_ADMIN_PLUGIN_PASSWORD_PARAM(Code)



BLOJSOM_ADMIN_PLUGIN_USERNAME
final protected static String BLOJSOM_ADMIN_PLUGIN_USERNAME(Code)



BLOJSOM_ADMIN_PLUGIN_USERNAME_KEY
final protected static String BLOJSOM_ADMIN_PLUGIN_USERNAME_KEY(Code)



BLOJSOM_ADMIN_PLUGIN_USERNAME_PARAM
final protected static String BLOJSOM_ADMIN_PLUGIN_USERNAME_PARAM(Code)



BLOJSOM_PERMISSION_CHECKER
final protected static String BLOJSOM_PERMISSION_CHECKER(Code)



BLOJSOM_USER_AUTHENTICATED
final protected static String BLOJSOM_USER_AUTHENTICATED(Code)



LOGIN_ACTION
final protected static String LOGIN_ACTION(Code)



LOGIN_ERROR_TEXT_KEY
final protected static String LOGIN_ERROR_TEXT_KEY(Code)



LOGOUT_ACTION
final protected static String LOGOUT_ACTION(Code)



PAGE_ACTION
final protected static String PAGE_ACTION(Code)



PLUGIN_ADMIN_INHERIT_APACHE_CREDENTIALS
final protected static String PLUGIN_ADMIN_INHERIT_APACHE_CREDENTIALS(Code)



SUBACTION_PARAM
final protected static String SUBACTION_PARAM(Code)



_authorizationProvider
protected AuthorizationProvider _authorizationProvider(Code)



_ignoreParams
protected Map _ignoreParams(Code)



_logger
final protected static Log _logger(Code)



_resourceManager
protected ResourceManager _resourceManager(Code)



_servletConfig
protected ServletConfig _servletConfig(Code)




Constructor Detail
BaseAdminPlugin
public BaseAdminPlugin()(Code)
Default constructor.




Method Detail
addOperationResultMessage
protected void addOperationResultMessage(Map context, String message)(Code)
Adds a message to the context under the BLOJSOM_ADMIN_PLUGIN_OPERATION_RESULT key
Parameters:
  context - Context
Parameters:
  message - Message to add



authenticateUser
protected boolean authenticateUser(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Map context, Blog blog)(Code)
Authenticate the user if their authentication session variable is not present
Parameters:
  httpServletRequest - Request
Parameters:
  httpServletResponse - Response
Parameters:
  context - Context
Parameters:
  blog - Blog information true if the user is authenticated, false otherwise



checkPermission
public boolean checkPermission(Blog blog, Map permissionContext, String username, String permission)(Code)
Check the permission for a given username and permission
Parameters:
  blog - Blog information
Parameters:
  permissionContext - java.util.Map containing context information for checking permission
Parameters:
  username - Username
Parameters:
  permission - Permission true if the username has the required permission, false otherwise



cleanup
public void cleanup() throws PluginException(Code)
Perform any cleanup for the plugin. Called after BaseAdminPlugin.process .
throws:
  PluginException - If there is an error performing cleanup for this plugin



destroy
public void destroy() throws PluginException(Code)
Called when BlojsomServlet is taken out of service
throws:
  PluginException - If there is an error in finalizing this plugin



formatAdminResource
protected String formatAdminResource(String resourceID, String fallbackText, Locale locale, Object[] arguments)(Code)
Retrieve a resource from the administration resource bundle and pass it through the ResourceManager.format(StringObject[]) method
Parameters:
  resourceID - ID of resource to retrieve
Parameters:
  fallbackText - Text to use as fallback if resource ID is not found
Parameters:
  locale - Locale to use when retrieving resource
Parameters:
  arguments - Arguments for ResourceManager.format(StringObject[]) Text from administration resource bundle given by resourceID formatted appropriately or fallbackText if the resource ID could not be formatted



getAdminResource
protected String getAdminResource(String resourceID, String fallbackText, Locale locale)(Code)
Retrieve a resource from the administration resource bundle
Parameters:
  resourceID - ID of resource to retrieve
Parameters:
  fallbackText - Text to use as fallback if resource ID is not found
Parameters:
  locale - Locale to use when retrieving resource Text from administration resource bundle given by resourceID or fallbackText if the resource ID is not found



getUsernameFromSession
protected String getUsernameFromSession(HttpServletRequest httpServletRequest, Blog blog)(Code)
Retrieve the current authorized username for this session
Parameters:
  httpServletRequest - Request
Parameters:
  blog - Blog Authorized username for this session or null if no user is currently authorized



init
public void init() throws PluginException(Code)
Initialize this plugin. This method only called when the plugin is instantiated.
throws:
  PluginException - If there is an error initializing the plugin



process
public Entry[] process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, Map context, Entry[] entries) throws PluginException(Code)
Process the blog entries
Parameters:
  httpServletRequest - Request
Parameters:
  httpServletResponse - Response
Parameters:
  blog - Blog instance
Parameters:
  context - Context
Parameters:
  entries - Blog entries retrieved for the particular request Modified set of blog entries
throws:
  PluginException - If there is an error processing the blog entries



setAuthorizationProvider
public void setAuthorizationProvider(AuthorizationProvider authorizationProvider)(Code)
Set the authorization provider for use by this plugin
Parameters:
  authorizationProvider - AuthorizationProvider



setResourceManager
public void setResourceManager(ResourceManager resourceManager)(Code)
Set the resource manager for use by this plugin
Parameters:
  resourceManager - ResourceManager



setServletConfig
public void setServletConfig(ServletConfig servletConfig)(Code)
Set the ServletConfig for the fetcher to grab initialization parameters
Parameters:
  servletConfig - ServletConfig



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.