org.opencms.main |
Provides the main OpenCms "operating system".
There are 3 main ways to access resources in an OpenCms System:
- Using the
{@link org.opencms.main.OpenCmsServlet} . This is the default usage of the OpenCms system.
- Using the
{@link org.opencms.main.CmsShell} . This is done for specific reasons, usually related to system configuration or setup.
- 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 Name | Type | Comment |
A_CmsAuthorizationHandler.java | Class | |
CmsBroadcast.java | Class | |
CmsContextInfo.java | Class | |
CmsDefaultSessionStorageProvider.java | Class | |
CmsEvent.java | Class | Event class for OpenCms for system wide events that are thrown by various
operations (e.g. |
CmsEventManager.java | Class | Manager that controls the OpenCms event system. |
CmsException.java | Class | |
CmsHttpAuthenticationSettings.java | Class | |
CmsIllegalArgumentException.java | Class | |
CmsIllegalStateException.java | Class | |
CmsInitException.java | Class | |
CmsLog.java | Class | Provides the OpenCms logging mechanism.
The OpenCms logging mechanism is based on Apache Commons Logging. |
CmsMultiException.java | Class | 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.java | Class | |
CmsResourceInitException.java | Class | This exeption is thrown by a class which implements org.opencms.main.I_CmsResourceInit. |
CmsRuntimeException.java | Class | |
CmsSessionInfo.java | Class | 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.java | Class | 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.java | Class | 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.java | Class | Provides additional commands for the CmsShell.
Such additional commands can access OpenCms functions not available on "regular" OpenCms classes. |
CmsSystemInfo.java | Class | 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.java | Class | 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.java | Interface | 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.java | Interface | 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.java | Interface | |
I_CmsSessionStorageProvider.java | Interface | |
I_CmsShellCommands.java | Interface | |
I_CmsThrowable.java | Interface | |
Messages.java | Class | |
OpenCms.java | Class | 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.java | Class | 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.java | Class | |
OpenCmsServlet.java | Class | 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:
- The requesting
org.opencms.file.CmsUser is authenticated
and a
org.opencms.file.CmsObject with this users context information
is created.
|
OpenCmsServletErrorHandler.java | Class | 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. |