Java Doc for SessionManager.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » webapps » session » 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 » Content Management System » apache lenya 2.0 » org.apache.cocoon.webapps.session 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.webapps.session.SessionManager

All known Subclasses:   org.apache.cocoon.webapps.session.components.DefaultSessionManager,
SessionManager
public interface SessionManager (Code)
This is the session manager component. The main purpose of this component is creating and termination sessions
author:
   Carsten Ziegeler
version:
   CVS $Id: SessionManager.java 433543 2006-08-22 06:22:54Z crossley $


Field Summary
 StringROLE
    


Method Summary
 voidappendContextFragment(String contextName, String path, DocumentFragment fragment)
     Append data in a public context.
 SessioncreateSession()
     Create a new session for the user. A new session is created for this user.
 DocumentFragmentgetContextFragment(String contextName, String path)
     Get information from the context. A document fragment containg the xml data stored in the session context with the given name is returned.
 SessiongetSession(boolean createFlag)
     Get the session for the current user.
 voidmergeContextFragment(String contextName, String path, DocumentFragment fragment)
     Merge data in a public context.
 voidremoveContextFragment(String contextName, String path)
     Remove data in a public context.
 voidsetContextFragment(String contextName, String path, DocumentFragment fragment)
     Set data in a public context.
 booleanstreamContextFragment(String contextName, String path, XMLConsumer consumer)
     Stream public context data. The document fragment containing the data from a path in the given context is streamed to the consumer.
Parameters:
  contextName - The name of the public context.
Parameters:
  path - XPath expression specifying which data to get.
 voidterminateSession(boolean force)
     Terminate the current session.

Field Detail
ROLE
String ROLE(Code)
Avalon role





Method Detail
appendContextFragment
void appendContextFragment(String contextName, String path, DocumentFragment fragment) throws ProcessingException(Code)
Append data in a public context. The document fragment containing the data is appended at the given path in the public session context.
Parameters:
  contextName - The name of the public context.
Parameters:
  path - XPath expression specifying where to append the data.
Parameters:
  fragment - The DocumentFragment containing the data.



createSession
Session createSession()(Code)
Create a new session for the user. A new session is created for this user. If the user has already a session, no new session is created and the old one is returned.



getContextFragment
DocumentFragment getContextFragment(String contextName, String path) throws ProcessingException(Code)
Get information from the context. A document fragment containg the xml data stored in the session context with the given name is returned. If the information is not available, null is returned.
Parameters:
  contextName - The name of the public context.
Parameters:
  path - XPath expression specifying which data to get. A DocumentFragment containing the data or null



getSession
Session getSession(boolean createFlag)(Code)
Get the session for the current user. If the user has no session right now, null is returned. If createFlag is true, the session is created if it does not exist.



mergeContextFragment
void mergeContextFragment(String contextName, String path, DocumentFragment fragment) throws ProcessingException(Code)
Merge data in a public context. The document fragment containing the data is merged at the given path in the public session context.
Parameters:
  contextName - The name of the public context.
Parameters:
  path - XPath expression specifying where to merge the data.
Parameters:
  fragment - The DocumentFragment containing the data.



removeContextFragment
void removeContextFragment(String contextName, String path) throws ProcessingException(Code)
Remove data in a public context. The data specified by the path is removed from the public session context.
Parameters:
  contextName - The name of the public context.
Parameters:
  path - XPath expression specifying where to merge the data.



setContextFragment
void setContextFragment(String contextName, String path, DocumentFragment fragment) throws ProcessingException(Code)
Set data in a public context. The document fragment containing the data is set at the given path in the public session context.
Parameters:
  contextName - The name of the public context.
Parameters:
  path - XPath expression specifying where to set the data.
Parameters:
  fragment - The DocumentFragment containing the data.



streamContextFragment
boolean streamContextFragment(String contextName, String path, XMLConsumer consumer) throws SAXException, ProcessingException(Code)
Stream public context data. The document fragment containing the data from a path in the given context is streamed to the consumer.
Parameters:
  contextName - The name of the public context.
Parameters:
  path - XPath expression specifying which data to get. If the data is available true is returned,otherwise false is returned.



terminateSession
void terminateSession(boolean force) throws ProcessingException(Code)
Terminate the current session. If the user has a session, this session is terminated and all of its data is deleted.
Parameters:
  force - If this is set to true the session is terminated, ifit is set to false, the session is only terminatedif no session context is available.



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