Java Doc for Registration.java in  » J2EE » Expresso » com » jcorporate » expresso » services » controller » 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 » J2EE » Expresso » com.jcorporate.expresso.services.controller 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jcorporate.expresso.core.controller.DBController
   com.jcorporate.expresso.services.controller.Registration

All known Subclasses:   com.jcorporate.expresso.services.controller.SimpleRegistration,
Registration
abstract public class Registration extends com.jcorporate.expresso.core.controller.DBController (Code)

Registration Controller. Provides services for self-registering people... ie sign-up pages on websites. This is the abstract class from which all Registration class should extend from. This class contains most of the non prompt/process methods

Depends on:

  • Login Controller
  • Email Validator
  • Registration Validator



Constructor Summary
public  Registration()
    

Method Summary
protected  booleancheckRegComplete(ControllerRequest request, int uid)
     Check a specific UID to see if their registration is complete.
protected  voiddelayLogin()
     Function called to suspend thread execution for x many seconds before offering a retry to login.
protected  StringdisplayValue(String fieldType, String fieldValue)
    
public  StringgetDB(ControllerRequest request)
     Returns the db listed based upon the dbobj parameter.
protected  StringgetDefaultValue(String fieldName)
    
protected  StringgetLoginController(ControllerRequest request)
     Given the ControllerRequest get what the login controller is.
protected  RegistrationDomaingetRegDomain(ControllerRequest request, User user)
     Based upon the user and the ControllerRequest, return the registration domain belonging to this session
Parameters:
  request - The ControllerRequest of this request.
Parameters:
  user - the user associated with this session.
protected  UsergetRegUser(ControllerRequest request)
     Given the request object, get the logged in user associated with this request.
protected  DBObject[]getRequiredDBObjects(ControllerRequest request, RegistrationDomain rd, User user)
     Returns the required registration dbobjects...
protected  DBObjectisRegistrationObjectNeeded(ControllerRequest request, User user, RegistrationObjectMap rom)
     Loads the dbobject and returns it if it is required.
Parameters:
  request - The framework's controller Request object
Parameters:
  user - The instantiated user for the registration.
Parameters:
  rom - The RegistrationObjectMap to count.
protected  SecuredDBObjectloadDBObject(ControllerRequest request, String dbobj)
     Instantiated a dbobject based upon the request and dbobject requested.
public  StringnextToAdd(ControllerRequest request)
     Return the name of the next record required for a complete registration, or null of no more are required.
protected  voidsetupEmailValidation(ControllerRequest request, ControllerResponse response, User user, RegistrationDomain rd, String loginControllerName)
     Creates the validation entry for validating email.


Constructor Detail
Registration
public Registration()(Code)




Method Detail
checkRegComplete
protected boolean checkRegComplete(ControllerRequest request, int uid) throws DBException, ControllerException(Code)
Check a specific UID to see if their registration is complete. If it is, update the user record to reflect this
Parameters:
  request - The ControllerRequest object
Parameters:
  uid - The UID true if our records show that the user's registration is complete



delayLogin
protected void delayLogin()(Code)
Function called to suspend thread execution for x many seconds before offering a retry to login. Helps to slow down brute force attacks. [a 40,000 word dictionary attack prolonged by 3 seconds a piece adds potentially 33 hours to the attack time. Yes this can be partially bypassed through simultaneous requests, but it still adds significant reponse time]



displayValue
protected String displayValue(String fieldType, String fieldValue) throws ControllerException(Code)
Format a value for display in the HTML being returned to the client
Parameters:
  fieldType - The type of the field to format
Parameters:
  fieldValue - The value of the field String The formatted field
throws:
  ControllerException - If the field format information could not bedetermined



getDB
public String getDB(ControllerRequest request) throws ControllerException(Code)
Returns the db listed based upon the dbobj parameter.
Parameters:
  request - The ControllerRequest object the data context name that we're supposed to register with



getDefaultValue
protected String getDefaultValue(String fieldName)(Code)
?????
Parameters:
  fieldName - ???? currently null



getLoginController
protected String getLoginController(ControllerRequest request)(Code)
Given the ControllerRequest get what the login controller is. If the request doesn't have the loginController parameter, then it uses the default Expresso login controller instead.
Parameters:
  request - The ControllerRequest that may or may not have the loginControllerparameter. The classname of the login controller to use.



getRegDomain
protected RegistrationDomain getRegDomain(ControllerRequest request, User user) throws ControllerException(Code)
Based upon the user and the ControllerRequest, return the registration domain belonging to this session
Parameters:
  request - The ControllerRequest of this request.
Parameters:
  user - the user associated with this session. a built registration domain object



getRegUser
protected User getRegUser(ControllerRequest request) throws ControllerException(Code)
Given the request object, get the logged in user associated with this request.
Parameters:
  request - The ControllerRequest object associated with this request A built User object for this session.



getRequiredDBObjects
protected DBObject[] getRequiredDBObjects(ControllerRequest request, RegistrationDomain rd, User user) throws DBException(Code)
Returns the required registration dbobjects... ie, what's the minimum to do?
Parameters:
  request - The System ControllerRequest
Parameters:
  rd - The currently set up RegistrationDomain for this user
Parameters:
  user - (optional) if null means that the user is new and all normallyrequired dbobjects will be returned. a DBObject array of required dbobjects to be filled out
throws:
  DBException - if there's an error mapping the registration domainsand building the DBObjects.



isRegistrationObjectNeeded
protected DBObject isRegistrationObjectNeeded(ControllerRequest request, User user, RegistrationObjectMap rom) throws DBException(Code)
Loads the dbobject and returns it if it is required.
Parameters:
  request - The framework's controller Request object
Parameters:
  user - The instantiated user for the registration.
Parameters:
  rom - The RegistrationObjectMap to count. boolean if the record count is less than the minimum needed.



loadDBObject
protected SecuredDBObject loadDBObject(ControllerRequest request, String dbobj) throws ControllerException(Code)
Instantiated a dbobject based upon the request and dbobject requested.
Parameters:
  request - the ControllerRequest Object
Parameters:
  dbobj - The name of the dbobject to instantiate a fully instantiated SecuredDbObject



nextToAdd
public String nextToAdd(ControllerRequest request) throws ControllerException(Code)
Return the name of the next record required for a complete registration, or null of no more are required.
Parameters:
  request - the ControllerRequest Object java.lang.String that is the name of the next dbobject requiredto be filled out for registration



setupEmailValidation
protected void setupEmailValidation(ControllerRequest request, ControllerResponse response, User user, RegistrationDomain rd, String loginControllerName) throws DBException, ControllerException(Code)
Creates the validation entry for validating email.
Parameters:
  request - The ControllerRequest object
Parameters:
  response - The ControllerResponse object
Parameters:
  user - the user that is registering
Parameters:
  rd - The registration domain that the user is signing up for
Parameters:
  loginControllerName - the name of the login controller used
throws:
  DBException - upon data access error
throws:
  ControllerException - for other errors



Methods inherited from com.jcorporate.expresso.core.controller.DBController
protected String getString(String stringCode, Object[] args, ControllerRequest myRequest)(Code)(Java Doc)
public static boolean isAllowed(ControllerRequest request, DBController controller, String newState) throws DBException, CacheException(Code)(Java Doc)
public boolean stateAllowed(String newState, ControllerRequest myRequest) throws ControllerException(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.