Package org.opencms.repository
A repository is an set of interfaces (and their implementations) to create a simple
access to the resources in the VFS of OpenCms. The repositories are configured in the
opencms-importexport.xml
. The CmsObjectWrapper
is used by the repositories for the access to the VFS. So it is possible to configure
the repositories to use one or more implementations of the
I_CmsResourceWrapper
to change the view to the resources
in the VFS. Additionaly it is possible to define filters to include or exclude files and
folders form being displayed.
Use the CmsRepositoryManager
to get a configured
I_CmsRepository
. There you get a
I_CmsRepositorySession
through login in. With that session
you will get the basic file and folder operations to the resources in the VFS of OpenCms.
Example:
I_CmsRepository repository = OpenCms.getRepositoryManager().getRepository(repository_name);
I_CmsRepositorySession session = repository.login(username, password);
- Since:
- 6.2.4
- See Also:
-
ClassDescriptionAbstract implementation of the repository interface
I_CmsRepository
.Abstract implementation of the interfaceI_CmsRepositorySession
to provide the functionality of filtering items.Creates a repository session to access OpenCms.This class is a filter for the repositories.Represents a single entry in the repository.The class represents a lock to aI_CmsRepositoryItem
.The RepositoryManager keeps a list with all configuredI_CmsRepository
and can be used to get a repository by its name.This is the session class to work with theCmsRepository
.Represents a repository.This class represents items in the repository interface.A repository session which provides basic file and folder operations to the resources in the VFS of OpenCms.Convenience class to access the localized messages of this OpenCms package.