Java Doc for BaseCoefficientContext.java in  » Groupware » coefficient » za » org » coefficient » core » 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 » Groupware » coefficient » za.org.coefficient.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   za.org.coefficient.core.BaseCoefficientContext

All known Subclasses:   za.org.coefficient.core.CoefficientWebContext,  za.org.coefficient.util.testing.CoefficientTestingContext,
BaseCoefficientContext
abstract public class BaseCoefficientContext implements CoefficientContext(Code)

Project: coefficient

Description:

Copyright: Copyright (c) 2003

Company: CSIR


author:
   tfogwill


Field Summary
final public static  StringCURRENT_PROJECT
    
final public static  StringLAST_NON_HELP_OP
    
final protected static  StringURL_PREFIX
    
protected  Stringdomain
    
protected  MapfileUploadData
    
protected  booleaninWorkflowAction
    
protected  booleaninvalidateSession
    
protected  MultipartRequestmultipartRequest
    
protected  Pagepage_
    
protected  StringredirectionURL
    
protected  ArrayListremovedSessionKeys
    
protected  MaprequestAttributes
    
protected  MaprequestData
    
protected  StringrequestURL
    
protected  Cookie[]serializableExistingCookies
    
protected  ArrayListserializableNewCookies
    
protected  Mapsession
    


Method Summary
public  voidbeginWorkflowAction()
    
public  StringclearModuleContent(String name)
    
protected  voidclearPage()
    
protected  voidcreatePageObject()
    
public  voidendWorkflowAction()
    
public  Cookie[]getCookies()
    
public  CoefficientUsergetCurrentUser()
    
public  StringgetLastNonHelpOp()
    
public  BaseMultipartRequestgetMultipartRequest()
    
public  PagegetPage()
    
public  StringgetParameter(String name)
     Passthru method to the request object.
Parameters:
  name - a String containing the paramameter name.
public  StringgetParameter(String name, String defaultValue)
     Passthru method to the request object.
public  booleangetParameterAsBoolean(String name)
    
public  DategetParameterAsDate(String name)
    
public  DoublegetParameterAsDouble(String name, double defaultValue)
    
public  DoublegetParameterAsDouble(String name)
    
public  doublegetParameterAsDoublePrimitive(String name, double defaultValue)
    
public  intgetParameterAsInt(String name, int defaultValue)
    
public  IntegergetParameterAsInteger(String name, int defaultValue)
    
public  IntegergetParameterAsInteger(String name)
    
public  LonggetParameterAsLong(String name, long defaultValue)
    
public  LonggetParameterAsLong(String name)
    
public  longgetParameterAsLongPrimitive(String name, long defaultValue)
    
public  String[]getParameterValues(String name)
     Passthru method to the request object.
public  Long[]getParameterValuesLong(String name)
     Method to the request values as longs.
Parameters:
  name - a String containing the parameter name.
public  String[]getParametersValues(String name)
    
public  ProjectgetProject()
    
public  ObjectgetRequestAttribute(String name)
    
public  StringgetRequestURL()
    
public  ObjectgetSessionAttribute(String name)
    
public  StringgetTheme()
    
public  UploadedFilegetUploadedFile(String name)
    
public  voidinvalidateSession()
    
public  booleanisError()
    
public  voidremoveRequestAttribute(String name)
    
public  voidremoveSessionAttribute(String name)
    
public  voidsetCookie(Cookie cookie)
    
public  voidsetError(String html)
    
public  voidsetForward(String moduleName)
    
public  voidsetForward(String moduleName, String opName)
    
public  voidsetForward(String moduleName, String opName, HashMap params)
     This method is used to force a redirect after the current iteration of the interceptor chain has completed.
Parameters:
  moduleName - is the module to forward control to, this must notbe null
Parameters:
  opName - is the operation that the forwarded module should performif this value is null then it will use the MainMethod
Parameters:
  params - is a hashmap containing key-value pairs that will beadditional parameters included on the request line to thespecified module.
public  voidsetModuleContent(String html, String name)
    
public  voidsetModuleContent(String html, String name, String theme)
    
public  voidsetProject(Project project)
    
public  booleansetProperties(Object bean)
    
protected  voidsetProperty(Object bean, PropertyDescriptor prop)
     Set the property 'prop' in the bean to the value of the corresponding parameters.
public  voidsetRequestAttribute(String name, Object value)
    
public  voidsetSessionAttribute(String name, Object value)
    
public  voidsetTheme(String theme)
    
public  voidsetWorkflowUser(CoefficientUser workflowUser)
    

Field Detail
CURRENT_PROJECT
final public static String CURRENT_PROJECT(Code)



LAST_NON_HELP_OP
final public static String LAST_NON_HELP_OP(Code)



URL_PREFIX
final protected static String URL_PREFIX(Code)



domain
protected String domain(Code)



fileUploadData
protected Map fileUploadData(Code)



inWorkflowAction
protected boolean inWorkflowAction(Code)



invalidateSession
protected boolean invalidateSession(Code)



multipartRequest
protected MultipartRequest multipartRequest(Code)



page_
protected Page page_(Code)
The page to handle this request



redirectionURL
protected String redirectionURL(Code)
URL to redirect to if set



removedSessionKeys
protected ArrayList removedSessionKeys(Code)



requestAttributes
protected Map requestAttributes(Code)



requestData
protected Map requestData(Code)



requestURL
protected String requestURL(Code)



serializableExistingCookies
protected Cookie[] serializableExistingCookies(Code)



serializableNewCookies
protected ArrayList serializableNewCookies(Code)



session
protected Map session(Code)





Method Detail
beginWorkflowAction
public void beginWorkflowAction()(Code)
This is used to do anything that needs doing for a workflow action to succeed



clearModuleContent
public String clearModuleContent(String name)(Code)



clearPage
protected void clearPage() throws IOException(Code)



createPageObject
protected void createPageObject() throws IOException(Code)



endWorkflowAction
public void endWorkflowAction()(Code)
This should reset the state if need be



getCookies
public Cookie[] getCookies()(Code)



getCurrentUser
public CoefficientUser getCurrentUser()(Code)
If a user is logged in this will return that user otherwise it will return null the logged in user or null if not logged in



getLastNonHelpOp
public String getLastNonHelpOp()(Code)



getMultipartRequest
public BaseMultipartRequest getMultipartRequest() throws FileUploadException(Code)



getPage
public Page getPage()(Code)



getParameter
public String getParameter(String name)(Code)
Passthru method to the request object.
Parameters:
  name - a String containing the paramameter name. a String containing the parameter value.
See Also:   BaseCoefficientContext.getParameter(String,String)
See Also:    The getParameter() with a default value.



getParameter
public String getParameter(String name, String defaultValue)(Code)
Passthru method to the request object.
Parameters:
  name - a String with the name of the parameter
Parameters:
  defaultValue - if no parameter with that name is definedthe return value is the defaultValue a String with the parameter value orthe default value.



getParameterAsBoolean
public boolean getParameterAsBoolean(String name)(Code)



getParameterAsDate
public Date getParameterAsDate(String name)(Code)



getParameterAsDouble
public Double getParameterAsDouble(String name, double defaultValue)(Code)



getParameterAsDouble
public Double getParameterAsDouble(String name)(Code)



getParameterAsDoublePrimitive
public double getParameterAsDoublePrimitive(String name, double defaultValue)(Code)



getParameterAsInt
public int getParameterAsInt(String name, int defaultValue)(Code)



getParameterAsInteger
public Integer getParameterAsInteger(String name, int defaultValue)(Code)



getParameterAsInteger
public Integer getParameterAsInteger(String name)(Code)



getParameterAsLong
public Long getParameterAsLong(String name, long defaultValue)(Code)



getParameterAsLong
public Long getParameterAsLong(String name)(Code)



getParameterAsLongPrimitive
public long getParameterAsLongPrimitive(String name, long defaultValue)(Code)



getParameterValues
public String[] getParameterValues(String name)(Code)
Passthru method to the request object. If request is null, return an empty array of String.
Parameters:
  name - a String containing the parameter name. an array of Strings with all values associated



getParameterValuesLong
public Long[] getParameterValuesLong(String name)(Code)
Method to the request values as longs.
Parameters:
  name - a String containing the parameter name. an array of Longs with all values associated



getParametersValues
public String[] getParametersValues(String name)(Code)



getProject
public Project getProject()(Code)



getRequestAttribute
public Object getRequestAttribute(String name)(Code)



getRequestURL
public String getRequestURL()(Code)



getSessionAttribute
public Object getSessionAttribute(String name)(Code)



getTheme
public String getTheme()(Code)



getUploadedFile
public UploadedFile getUploadedFile(String name) throws FileUploadException(Code)



invalidateSession
public void invalidateSession()(Code)



isError
public boolean isError()(Code)



removeRequestAttribute
public void removeRequestAttribute(String name)(Code)



removeSessionAttribute
public void removeSessionAttribute(String name)(Code)



setCookie
public void setCookie(Cookie cookie)(Code)



setError
public void setError(String html)(Code)
Passthru method to set the error content on the internal Page object
Parameters:
  html - a String containing the html content defining an errordisplay



setForward
public void setForward(String moduleName) throws ConfigurationException(Code)
This will forward to the module and perform its main method



setForward
public void setForward(String moduleName, String opName) throws ConfigurationException(Code)
This will forward to the module and perform the method specified by op and will pass no other parameters



setForward
public void setForward(String moduleName, String opName, HashMap params) throws ConfigurationException(Code)
This method is used to force a redirect after the current iteration of the interceptor chain has completed.
Parameters:
  moduleName - is the module to forward control to, this must notbe null
Parameters:
  opName - is the operation that the forwarded module should performif this value is null then it will use the MainMethod
Parameters:
  params - is a hashmap containing key-value pairs that will beadditional parameters included on the request line to thespecified module. If null no additional parameters willbe sent
exception:
  configuationException - is thrown if module name is emptyor null



setModuleContent
public void setModuleContent(String html, String name) throws RuntimeException(Code)
Passthru method to set the module content on the internal Page object
Parameters:
  html - a String containing the html content the module wants todisplay
Parameters:
  name - is the result of the call to getModuleName on the modulesetting the content



setModuleContent
public void setModuleContent(String html, String name, String theme) throws RuntimeException(Code)
force a specific theme - used primarily for printing



setProject
public void setProject(Project project)(Code)



setProperties
public boolean setProperties(Object bean)(Code)
Uses bean introspection to set writable properties of bean from the parameters, where a (case-insensitive) name match between the bean property and the parameter is looked for
Parameters:
  bean - an object if true then all properties were successfully set, else somewere not



setProperty
protected void setProperty(Object bean, PropertyDescriptor prop) throws Exception(Code)
Set the property 'prop' in the bean to the value of the corresponding parameters. Supports all types supported by getXXX methods plus a few more that come for free because primitives have to be wrapped before being passed to invoke anyway.
Parameters:
  bean - An Object.
Parameters:
  prop - A PropertyDescriptor.
exception:
  Exception - a generic exception.



setRequestAttribute
public void setRequestAttribute(String name, Object value)(Code)



setSessionAttribute
public void setSessionAttribute(String name, Object value)(Code)



setTheme
public void setTheme(String theme)(Code)



setWorkflowUser
public void setWorkflowUser(CoefficientUser workflowUser)(Code)



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.