Java Doc for RegistrationPlugin.java in  » Blogger-System » blojsom-3.1 » org » blojsom » plugin » registration » 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.registration 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

RegistrationPlugin
public class RegistrationPlugin extends BaseAdminPlugin (Code)
This plugin allows users to register for an account on the blog. Can be combined with various authorization plugins to force users to login before they can access the blog.
author:
   Eric Broyles
version:
   $Id: RegistrationPlugin.java,v 1.2 2007/01/17 02:35:05 czarneckid Exp $


Field Summary
final protected static  StringREGISTRATION_MESSAGES_RESOURCE
    

Constructor Summary
public  RegistrationPlugin()
    

Method Summary
protected  voidaddUserMetaData(HttpServletRequest httpServletRequest, Blog blog, Map context, User user, String metaDataPropertyKeys, boolean isRequired)
     Add metadata to the user.
public  voidcleanup()
    
protected  NotificationconstructEmail(Blog blog, User user, String flavor)
     Construct an email notification to the user with their registration details.
public  voiddestroy()
    
protected  StringformatRegistrationResource(String resourceID, String fallbackText, Locale locale, Object[] arguments)
    
protected  StringgetRegistrationResource(String resourceID, String fallbackText, Locale locale)
    
public  voidinit()
    
protected  voidnotifyOfFailedRegistration(String username, Map context, Blog blog, HttpServletRequest httpServletRequest)
     Notify the user that their registration has failed for some reason.
protected  voidnotifyOfMissingParameter(String parameterName, Map context, Blog blog, HttpServletRequest httpServletRequest)
     Notify the user that a required registration parameter is missing.
public  Entry[]process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, Map context, Entry entries)
    
public  voidsetFetcher(Fetcher fetcher)
     Set the Fetcher.
protected  voidsetupEmail(Blog blog, User user, Email email)
     Setup an email for the given Blog and User.

Field Detail
REGISTRATION_MESSAGES_RESOURCE
final protected static String REGISTRATION_MESSAGES_RESOURCE(Code)




Constructor Detail
RegistrationPlugin
public RegistrationPlugin()(Code)




Method Detail
addUserMetaData
protected void addUserMetaData(HttpServletRequest httpServletRequest, Blog blog, Map context, User user, String metaDataPropertyKeys, boolean isRequired) throws MissingParameterException(Code)
Add metadata to the user. If the metadata is required and it's not present the user will be notified that required data is missing.
Parameters:
  httpServletRequest - the request
Parameters:
  blog - the Blog
Parameters:
  context - Context
Parameters:
  user - the user who's registering
Parameters:
  metaDataPropertyKeys - the keys used to access the metadata values from the context
Parameters:
  isRequired - If the metadata is required
throws:
  MissingParameterException - when a required parameter is missing



cleanup
public void cleanup() throws PluginException(Code)

See Also:   org.blojsom.plugin.admin.BaseAdminPlugin.cleanup



constructEmail
protected Notification constructEmail(Blog blog, User user, String flavor) throws EmailException, MessagingException(Code)
Construct an email notification to the user with their registration details.
Parameters:
  blog - Blog
Parameters:
  user - User
Parameters:
  flavor - Flavor the Notification
throws:
  EmailException - If there is an error setting e-mail attributes
throws:
  MessagingException - If there is an error sending the e-mail



destroy
public void destroy() throws PluginException(Code)

See Also:   org.blojsom.plugin.admin.BaseAdminPlugin.destroy



formatRegistrationResource
protected String formatRegistrationResource(String resourceID, String fallbackText, Locale locale, Object[] arguments)(Code)
Retrieve a resource from the registration 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



getRegistrationResource
protected String getRegistrationResource(String resourceID, String fallbackText, Locale locale)(Code)
Retrieve a resource from the registration 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



init
public void init() throws PluginException(Code)

See Also:   org.blojsom.plugin.admin.BaseAdminPlugin.init



notifyOfFailedRegistration
protected void notifyOfFailedRegistration(String username, Map context, Blog blog, HttpServletRequest httpServletRequest)(Code)
Notify the user that their registration has failed for some reason.
Parameters:
  username - the username of the user for which registration failed
Parameters:
  context - Context
Parameters:
  blog - the Blog
Parameters:
  httpServletRequest - the request



notifyOfMissingParameter
protected void notifyOfMissingParameter(String parameterName, Map context, Blog blog, HttpServletRequest httpServletRequest)(Code)
Notify the user that a required registration parameter is missing.
Parameters:
  parameterName - the name of the missing parameter
Parameters:
  context - Context
Parameters:
  blog - the Blog
Parameters:
  httpServletRequest - the request



process
public Entry[] process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, Map context, Entry entries) throws PluginException(Code)

See Also:   org.blojsom.plugin.admin.BaseAdminPlugin.process(javax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponseorg.blojsom.blog.Blogjava.util.Maporg.blojsom.blog.Entry[])



setFetcher
public void setFetcher(Fetcher fetcher)(Code)
Set the Fetcher. Usually injected by Spring.
Parameters:
  fetcher - Fetcher



setupEmail
protected void setupEmail(Blog blog, User user, Email email) throws EmailException(Code)
Setup an email for the given Blog and User. Sets the from address to the blog owner's email address and the blog's name. Sets the to address to the user's email address and the blog owner's email address.
Parameters:
  blog - Blog
Parameters:
  user - User
Parameters:
  email - E-mail message
throws:
  EmailException - If there is an error setting e-mail attributes



Fields inherited from org.blojsom.plugin.admin.BaseAdminPlugin
final protected static String ACTION_PARAM(Code)(Java Doc)
final protected static String ADMIN_ADMINISTRATION_PAGE(Code)(Java Doc)
final protected static String ADMIN_AJAX_RESPONSE(Code)(Java Doc)
final protected static String ADMIN_LOGIN_PAGE(Code)(Java Doc)
final protected static String BLOJSOM_ADMIN_MESSAGES_RESOURCE(Code)(Java Doc)
final protected static String BLOJSOM_ADMIN_PLUGIN_AUTHENTICATED_KEY(Code)(Java Doc)
final protected static String BLOJSOM_ADMIN_PLUGIN_OPERATION_RESULT(Code)(Java Doc)
final protected static String BLOJSOM_ADMIN_PLUGIN_PASSWORD_PARAM(Code)(Java Doc)
final protected static String BLOJSOM_ADMIN_PLUGIN_USERNAME(Code)(Java Doc)
final protected static String BLOJSOM_ADMIN_PLUGIN_USERNAME_KEY(Code)(Java Doc)
final protected static String BLOJSOM_ADMIN_PLUGIN_USERNAME_PARAM(Code)(Java Doc)
final protected static String BLOJSOM_PERMISSION_CHECKER(Code)(Java Doc)
final protected static String BLOJSOM_USER_AUTHENTICATED(Code)(Java Doc)
final protected static String LOGIN_ACTION(Code)(Java Doc)
final protected static String LOGIN_ERROR_TEXT_KEY(Code)(Java Doc)
final protected static String LOGOUT_ACTION(Code)(Java Doc)
final protected static String PAGE_ACTION(Code)(Java Doc)
final protected static String PLUGIN_ADMIN_INHERIT_APACHE_CREDENTIALS(Code)(Java Doc)
final protected static String SUBACTION_PARAM(Code)(Java Doc)
protected AuthorizationProvider _authorizationProvider(Code)(Java Doc)
protected Map _ignoreParams(Code)(Java Doc)
final protected static Log _logger(Code)(Java Doc)
protected ResourceManager _resourceManager(Code)(Java Doc)
protected ServletConfig _servletConfig(Code)(Java Doc)

Methods inherited from org.blojsom.plugin.admin.BaseAdminPlugin
protected void addOperationResultMessage(Map context, String message)(Code)(Java Doc)
protected boolean authenticateUser(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Map context, Blog blog)(Code)(Java Doc)
public boolean checkPermission(Blog blog, Map permissionContext, String username, String permission)(Code)(Java Doc)
public void cleanup() throws PluginException(Code)(Java Doc)
public void destroy() throws PluginException(Code)(Java Doc)
protected String formatAdminResource(String resourceID, String fallbackText, Locale locale, Object[] arguments)(Code)(Java Doc)
protected String getAdminResource(String resourceID, String fallbackText, Locale locale)(Code)(Java Doc)
protected String getUsernameFromSession(HttpServletRequest httpServletRequest, Blog blog)(Code)(Java Doc)
public void init() throws PluginException(Code)(Java Doc)
public Entry[] process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Blog blog, Map context, Entry[] entries) throws PluginException(Code)(Java Doc)
public void setAuthorizationProvider(AuthorizationProvider authorizationProvider)(Code)(Java Doc)
public void setResourceManager(ResourceManager resourceManager)(Code)(Java Doc)
public void setServletConfig(ServletConfig servletConfig)(Code)(Java Doc)

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.