Package org.opencms.file.wrapper
package org.opencms.file.wrapper
This package contains classes and interfaces used to access OpenCms through a wrapped
CmsObject
.
Main entry point is the class CmsObjectWrapper
. The
CmsObjectWrapper
is configured with a list of implementations
of I_CmsResourceWrapper
. So it is possible to show resources in
the VFS different as usual.
For example: If you would like that xml pages always have the correct file extension (.xml) so you
can use the CmsResourceExtensionWrapperXmlPage
. This implementation
of the interface I_CmsResourceWrapper
adds to every resource of type
"xmlpage" the correct file extension ".xml".
This package is mainly used by CmsRepositorySession
to create a
simple configurable access to the resources in OpenCms.
- Since:
- 6.2.4
- See Also:
-
ClassDescriptionAbstract base class which implements
I_CmsResourceWrapper
and makes it possible to add and remove file extensions to resources.Default abstract implementation of the interfaceI_CmsResourceWrapper
.This class contains a subset of the methods ofCmsObject
and uses the configured resource wrappers (I_CmsResourceWrapper
) to change the view to the existing resources in the VFS.A resource type wrapper for jsp files, which adds the correct file extension "jsp" to the resources.A resource type wrapper for xml content files, which adds the correct file extension "xml" to the resources.A resource type wrapper for xml pages, which adds the correct file extension "xml" to the resources.Resource wrapper used to import/export modules by copying them to/from virtual folders.Resource wrapper used to import/export modules by copying them to/from virtual folders.Resource wrapper class which is used to prevent resources with a certain name from being created.Resource wrapper class which is used to prevent resources with names matching a given regex from being created.Adds a folder in every existing folder with the name "__properties" which contains property files for every resource in the existing folder.Resource wrapper which intercepts createResource calls and substitutes them with replaceResource if there is already a deleted file at the same path.Adds the system folder to every root folder of target sites.Helper class with several methods used by different implementations of the interfaceI_CmsResourceWrapper
.A resource type wrapper for xml page files, which explodes the xml pages to folders.Exception to be used in wrappers for exceptions that you don't want to be logged as errors.Helper class to create "virtual" resources not existing in the vfs which are based on existing resources.Interface which is used by theCmsObjectWrapper
to create a different view to the resources in the VFS.Convenience class to access the localized messages of this OpenCms package.