org.opencms.main

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 » opencms » org.opencms.main 
org.opencms.main
Provides the main OpenCms "operating system".

There are 3 main ways to access resources in an OpenCms System:

  1. Using the {@link org.opencms.main.OpenCmsServlet}. This is the default usage of the OpenCms system.
  2. Using the {@link org.opencms.main.CmsShell}. This is done for specific reasons, usually related to system configuration or setup.
  3. Using the {@link org.opencms.main.OpenCms#initCmsObject(String)} from an application to obtain an initialized OpenCms user context.
I all use cases, the access to the OpenCms VFS is only possible with an initialized OpenCms user context, this means by using a {@link org.opencms.file.CmsObject}.

@version $Revision: 1.10 $ @since 6.0.0 @see org.opencms.main.OpenCmsServlet @see org.opencms.main.CmsShell @see org.opencms.main.OpenCms

Java Source File NameTypeComment
A_CmsAuthorizationHandler.javaClass
CmsBroadcast.javaClass
CmsContextInfo.javaClass
CmsDefaultSessionStorageProvider.javaClass
CmsEvent.javaClass Event class for OpenCms for system wide events that are thrown by various operations (e.g.
CmsEventManager.javaClass Manager that controls the OpenCms event system.
CmsException.javaClass
CmsHttpAuthenticationSettings.javaClass
CmsIllegalArgumentException.javaClass
CmsIllegalStateException.javaClass
CmsInitException.javaClass
CmsLog.javaClass Provides the OpenCms logging mechanism.

The OpenCms logging mechanism is based on Apache Commons Logging.

CmsMultiException.javaClass A multi exception is a container for several exception messages that may be caused by an internal operation.

This is provided so that the user can see a full picuture of all the issues that have been caused in an operation, rather then only one (usually the first) issue.

CmsPermalinkResourceHandler.javaClass
CmsResourceInitException.javaClass This exeption is thrown by a class which implements org.opencms.main.I_CmsResourceInit.
CmsRuntimeException.javaClass
CmsSessionInfo.javaClass Stores information about a user that has authenticated himself the OpenCms security system.

This object is used to provide information about all authenticated users in the system with the org.opencms.main.CmsSessionManager .

This object is available for all authenticated users after login. If a user has not logged in, he may have a session on the servlet engine, but he will have no session info object attached.

CmsSessionManager.javaClass Keeps track of the sessions running on the OpenCms server and provides a session info storage which is used to get an overview about currently authenticated OpenCms users, as well as sending broadcasts between users.

For each authenticated OpenCms user, a org.opencms.main.CmsSessionInfo object holds the information about the users status.

When a user session is invalidated, the user info will be removed. This happens when a user log out, or when his session times out.

Please Note: The current implementation does not provide any permission checking, so all users can access the methods of this manager.

CmsShell.javaClass A command line interface to access OpenCms functions which is used for the initial setup and also can be used to directly access the OpenCms repository without the Workplace.

The CmsShell has direct access to all methods in the "command objects". Currently the following classes are used as command objects: org.opencms.main.CmsShellCommands , org.opencms.file.CmsRequestContext and org.opencms.file.CmsObject .

Only public methods in the command objects that use supported data types as parameters can be called from the shell.

CmsShellCommands.javaClass Provides additional commands for the CmsShell.

Such additional commands can access OpenCms functions not available on "regular" OpenCms classes.

CmsSystemInfo.javaClass Provides access to system wide "read only" information.

Regarding the naming conventions used, this comes straight from the Servlet Spec v2.4:

SRV.3.1 Introduction to the ServletContext Interface
[...] A ServletContext is rooted at a known path within a web server.

CmsThreadStore.javaClass The OpenCms "Grim Reaper" thread store were all system Threads are maintained.

This thread executes all 60 seconds and checks if report threads are still active. A report thread usually waits for a user to get the contents written to the report. However, if the user does not request the reports content (e.g.

I_CmsEventListener.javaInterface Implement this interface in case your class has to react to CmsEvents that are thrown by system.

In order to receive system events, your class must register with the OpenCms event mechanism.

I_CmsRequestHandler.javaInterface Describes an OpenCms request handler.

Request handlers are used for special requests to OpenCms that should NOT be mapped to a VFS resource. A request handler URI always start with /handle and then one or more possible handler names as defined with the I_CmsRequestHandler.getHandlerNames() method.

For example, if a registerd request handler has the name "MyName", any request (in a simple setup) to /opencms/opencms/handlerMyName... will directly be transfered to the I_CmsRequestHandler.handle(HttpServletRequest,HttpServletResponse,String) method of this handler.

In essence, the request handlers are like simplified mini-servlets that run inside OpenCms.

I_CmsResourceInit.javaInterface
I_CmsSessionStorageProvider.javaInterface
I_CmsShellCommands.javaInterface
I_CmsThrowable.javaInterface
Messages.javaClass
OpenCms.javaClass The OpenCms "operating system" that provides public static methods which can be used by other classes to access basic system features of OpenCms like logging etc.

This Object provides singleton access to the initialized OpenCms runtime system. Some methods are for internal or advanced use only, but others are of also of interest for general OpenCms development.

For example, to generate a new instance of org.opencms.file.CmsObject class in your application, use org.opencms.main.OpenCms.initCmsObject(String) .

OpenCmsCore.javaClass The internal implementation of the core OpenCms "operating system" functions.

All access to this class must be done through the public static methods of the org.opencms.main.OpenCms object. Under no circumstances should you ever try to access this class directly.

This class is so OpenCms internal you should not even be reading this documentation ;-)

Any request to the org.opencms.main.OpenCmsServlet will be forwarded to this core class. The core will then try to map the request to a VFS (Virtual File System) URI, that is a org.opencms.file.CmsResource in the OpenCms database.

OpenCmsListener.javaClass
OpenCmsServlet.javaClass This the main servlet of the OpenCms system.

From here, all operations that are results of HTTP requests are invoked. Any incoming request is handled in multiple steps:

  1. The requesting org.opencms.file.CmsUser is authenticated and a org.opencms.file.CmsObject with this users context information is created.
OpenCmsServletErrorHandler.javaClass This the error handler servlet of the OpenCms system.

This almost 1:1 extends the "standard" org.opencms.main.OpenCmsServlet . By default, all errors are handled by this servlet, which is controlled by the setting in the shipped web.xml.

This servlet is required because certain servlet containers (eg.

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