All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opencms.repository.package.html Maven / Gradle / Ivy

Go to download

OpenCms is an enterprise-ready, easy to use website content management system based on Java and XML technology. Offering a complete set of features, OpenCms helps content managers worldwide to create and maintain beautiful websites fast and efficiently.

There is a newer version: 18.0
Show newest version







Package contains all classes and interfaces needed to create or use a repository to
access the resources in the VFS.

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 {@link org.opencms.file.wrapper.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 {@link org.opencms.file.wrapper.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 {@link org.opencms.repository.CmsRepositoryManager} to get a configured {@link org.opencms.repository.I_CmsRepository}. There you get a {@link org.opencms.repository.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 org.opencms.repository.I_CmsRepository @see org.opencms.repository.I_CmsRepositorySession





© 2015 - 2024 Weber Informatics LLC | Privacy Policy