Package org.apache.jackrabbit.vault.fs
Class Mounter
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.Mounter
-
public final class Mounter extends Object
Utility method to mount a JCR FS. The filesystem is mounted relative to the givenmountpoint
and rooted atrootPath
. 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 Constructor Description Mounter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VaultFileSystem
mount(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 VaultFileSystem
mount(VaultFsConfig config, WorkspaceFilter wspFilter, RepositoryAddress mountpoint, String rootPath, Session session)
Mounts a new Vault filesystem on the given repository node.
-
-
-
Method Detail
-
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.
-
-