Package org.opencms.file.wrapper

This package contains classes and interfaces used to access OpenCms through a wrapped CmsObject.

See:
          Description

Interface Summary
I_CmsResourceWrapper Interface which is used by the CmsObjectWrapper to create a different view to the resources in the VFS.
 

Class Summary
A_CmsResourceExtensionWrapper Abstract base class which implements I_CmsResourceWrapper and makes it possible to add and remove file extensions to resources.
A_CmsResourceWrapper Default abstract implementation of the interface I_CmsResourceWrapper.
CmsObjectWrapper This class contains a subset of the methods of CmsObject and uses the configured resource wrappers (I_CmsResourceWrapper) to change the view to the existing resources in the VFS.
CmsResourceExtensionWrapperJsp A resource type wrapper for jsp files, which adds the correct file extension "jsp" to the resources.
CmsResourceExtensionWrapperXmlContent A resource type wrapper for xml content files, which adds the correct file extension "xml" to the resources.
CmsResourceExtensionWrapperXmlPage A resource type wrapper for xml pages, which adds the correct file extension "xml" to the resources.
CmsResourceWrapperPropertyFile Adds a folder in every existing folder with the name "__properties" which contains property files for every resource in the existing folder.
CmsResourceWrapperSystemFolder Adds the system folder to every root folder of target sites.
CmsResourceWrapperUtils Helper class with several methods used by different implementations of the interface I_CmsResourceWrapper.
CmsResourceWrapperXmlPage A resource type wrapper for xml page files, which explodes the xml pages to folders.
CmsWrappedResource Helper class to create "virtual" resources not existing in the vfs which are based on existing resources.
 

Package org.opencms.file.wrapper Description

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
Version:
$Revision: 1.5 $
See Also:
CmsObjectWrapper, I_CmsResourceWrapper