Java Doc for BasePO.java in  » J2EE » Enhydra-Demos » projectmanagement » presentation » 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 » Enhydra Demos » projectmanagement.presentation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   projectmanagement.presentation.BasePO

All known Subclasses:   projectmanagement.presentation.worksheets.AdministeringSearch,  projectmanagement.presentation.Login,  projectmanagement.presentation.customers.Edit,  projectmanagement.presentation.employees.Edit,  projectmanagement.presentation.payrates.Context,  projectmanagement.presentation.customers.Administering,  projectmanagement.presentation.worksheets.Context,  projectmanagement.presentation.Menu,  projectmanagement.presentation.employees.Administering,  projectmanagement.presentation.worksheets.Edit,  projectmanagement.presentation.worksheets.Search,  projectmanagement.presentation.employees.Context,  projectmanagement.presentation.customers.Context,  projectmanagement.presentation.payrates.Administering,  projectmanagement.presentation.projects.Context,  projectmanagement.presentation.worksheets.Controls,  projectmanagement.presentation.worksheets.Administering,  projectmanagement.presentation.payrates.Edit,  projectmanagement.presentation.projects.Administering,  projectmanagement.presentation.projects.Edit,
BasePO
abstract public class BasePO implements HttpPresentation(Code)
This is the parent Presentation object. All presentation objects should extend this class. The run method looks for an event parameter and then calls handle. If the "event" Parameter is not defined then the handleDefault() method is called in your child class.
author:
   Sasa Bojanic
version:
   1.0


Field Summary
protected  HttpPresentationCommsmyComms
    
protected  ProjectManagementSessionDatamySessionData
    


Method Summary
public static  booleanareDateFieldsValid(String YYYY, String MM, String DD)
    
protected  voidcheckAuthLevel()
     Checks the session data to see if user has the authorization to access the given page.
public  ProjectManagementgetApplication()
     Returns the application object associated with the current request.
public  HttpPresentationCommsgetComms()
    
protected  intgetCurrentAuthLevel()
    
public  XMLObjectgetPageContentForEvent(String event)
     If an event parameter is defined then this invokes the method that handles that event.
abstract protected  intgetRequiredAuthLevel()
     This method should be implemented in the subclass so that it returns true if this particular request requires the user to be logged in, otherwise false.
public  ProjectManagementSessionDatagetSessionData()
    
public  EmployeegetUser()
    
abstract public  XMLObjecthandleDefault()
     This is the procedure that is called if there is no "event" HTTP parameter found.
public  voidhandleEvent(HttpPresentationComms comms)
    
public  XMLObjecthandleLogout()
     Logs user out from the session by setting the usr to null in the session data.
protected  voidinitSessionData(HttpPresentationComms comms)
    
protected static  booleanisNullField(String field)
     Returns true if the given string is null, empty, or contains only the white space(s).
public  voidremoveUserFromSession()
    
public  voidrun(HttpPresentationComms comms)
     This implements the run method in HttpPresentation.
public  voidsetUser(Employee theEmployee)
    
public static  voidwriteDebugMsg(String msg)
    

Field Detail
myComms
protected HttpPresentationComms myComms(Code)
Saved input and output context, and session data



mySessionData
protected ProjectManagementSessionData mySessionData(Code)





Method Detail
areDateFieldsValid
public static boolean areDateFieldsValid(String YYYY, String MM, String DD)(Code)



checkAuthLevel
protected void checkAuthLevel() throws ClientPageRedirectException, ProjectManagementPresentationException(Code)
Checks the session data to see if user has the authorization to access the given page. Authorization levels include: UNAUTH_USER (0) - login not required ORDINARY_USER (1) - requires normal login ADMIN_USER (2) - requires to login as administrator Redirects to the login page if user is not authorized to access the page.



getApplication
public ProjectManagement getApplication()(Code)
Returns the application object associated with the current request. the application object.



getComms
public HttpPresentationComms getComms()(Code)
Gets HttpPresentation object The saved comms objectsto whichever subclass needs it



getCurrentAuthLevel
protected int getCurrentAuthLevel() throws ClientPageRedirectException, ProjectManagementPresentationException(Code)
Return the current authorization level (set during login) An int equal to the current authorization level.



getPageContentForEvent
public XMLObject getPageContentForEvent(String event) throws Exception(Code)
If an event parameter is defined then this invokes the method that handles that event. event, the incoming event name
exception:
  Exception -



getRequiredAuthLevel
abstract protected int getRequiredAuthLevel()(Code)
This method should be implemented in the subclass so that it returns true if this particular request requires the user to be logged in, otherwise false.



getSessionData
public ProjectManagementSessionData getSessionData()(Code)
Gets the session data session data



getUser
public Employee getUser()(Code)
Gets the user from the session the employee object in the session



handleDefault
abstract public XMLObject handleDefault() throws HttpPresentationException(Code)
This is the procedure that is called if there is no "event" HTTP parameter found. It must be overriden by the subclass to do default processing or error checking/handling. String The String representation of the HTML or (other format)of the document to be displayed. This method would need to be changedif you wanted to return binary data as well. It returns a Stringfor simplicity right now.



handleEvent
public void handleEvent(HttpPresentationComms comms) throws Exception(Code)
Method to call the proper method for the incoming event
Parameters:
  HttpPresentationComms -
exception:
  Exception -



handleLogout
public XMLObject handleLogout() throws ProjectManagementPresentationException(Code)
Logs user out from the session by setting the usr to null in the session data. html document
exception:
  ProjectManagementPresentationException -



initSessionData
protected void initSessionData(HttpPresentationComms comms) throws ProjectManagementPresentationException(Code)
Method to get or create the AgSessionData object from the user session This object is saved in the EbrokerPresentation object
Parameters:
  HttpPresentationComms -
exception:
  Exception -



isNullField
protected static boolean isNullField(String field)(Code)
Returns true if the given string is null, empty, or contains only the white space(s).



removeUserFromSession
public void removeUserFromSession()(Code)
Method to remove the current user from the session



run
public void run(HttpPresentationComms comms) throws Exception(Code)
This implements the run method in HttpPresentation.
Parameters:
  HttpPresentationComms -
exception:
  Exception -



setUser
public void setUser(Employee theEmployee) throws ProjectManagementPresentationException(Code)
Sets the user into the session theEmployee, the employee to be set in the session
exception:
  ProjectManagementPresentationException -



writeDebugMsg
public static void writeDebugMsg(String msg)(Code)
Method to write a debugging message to the debug log channel when the DEBUG flag is turned on
Parameters:
  msg - The message to write to the DEBUG log channel



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.