Package org.apache.jackrabbit.vault.fs
Class Mounter
java.lang.Object
org.apache.jackrabbit.vault.fs.Mounter
Utility method to mount a JCR FS.
The filesystem is mounted relative to the given
mountpoint and rooted at rootPath.
For example if the mountpoint is http://.../test/export and the rootPath is /foo, then the filesystem's root node
has a internal repository path "/foo" that corresponds to the "real" repository node at "/test/export".
The workspace filter will be matched against the filesystem paths (e.g. /foo).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VaultFileSystemmount(VaultFsConfig config, WorkspaceFilter wspFilter, Repository rep, Credentials credentials, RepositoryAddress mountpoint, String rootPath) Mounts a new Vault filesystem that is rooted at the given path using the provided repository, credentials and workspace to create the session.static VaultFileSystemmount(VaultFsConfig config, WorkspaceFilter wspFilter, RepositoryAddress mountpoint, String rootPath, Session session) Mounts a new Vault filesystem on the given repository node.
-
Constructor Details
-
Mounter
public Mounter()
-
-
Method Details
-
mount
public static VaultFileSystem mount(VaultFsConfig config, WorkspaceFilter wspFilter, RepositoryAddress mountpoint, String rootPath, Session session) throws RepositoryException, IOException Mounts a new Vault filesystem on the given repository node.- Parameters:
config- vault fs configwspFilter- the workspace filtermountpoint- the address of the mountpointrootPath- repository path of the root node (used for remapping)session- the repository session- Returns:
- a Vault filesystem
- Throws:
RepositoryException- if an error occurs.IOException- if an I/O error occurs.
-
mount
public static VaultFileSystem mount(VaultFsConfig config, WorkspaceFilter wspFilter, Repository rep, Credentials credentials, RepositoryAddress mountpoint, String rootPath) throws RepositoryException, IOException Mounts a new Vault filesystem that is rooted at the given path using the provided repository, credentials and workspace to create the session.- Parameters:
config- vault fs configwspFilter- the workspace filterrep- the jcr repositorycredentials- the credentialsmountpoint- the repository address of the mountpointrootPath- path of root file. used for remapping- Returns:
- an aggregate manager
- Throws:
RepositoryException- if an error occurs.IOException- if an I/O error occurs.
-