Class Mounter


  • public final class Mounter
    extends java.lang.Object
    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 Detail

      • Mounter

        public Mounter()
    • Method Detail

      • mount

        public static VaultFileSystem mount​(VaultFsConfig config,
                                            WorkspaceFilter wspFilter,
                                            RepositoryAddress mountpoint,
                                            java.lang.String rootPath,
                                            Session session)
                                     throws RepositoryException,
                                            java.io.IOException
        Mounts a new Vault filesystem on the given repository node.
        Parameters:
        config - vault fs config
        wspFilter - the workspace filter
        mountpoint - the address of the mountpoint
        rootPath - path of root file. used for remapping
        session - the repository session
        Returns:
        a Vault filesystem
        Throws:
        RepositoryException - if an error occurs.
        java.io.IOException - if an I/O error occurs.
      • mount

        public static VaultFileSystem mount​(VaultFsConfig config,
                                            WorkspaceFilter wspFilter,
                                            Repository rep,
                                            Credentials credentials,
                                            RepositoryAddress mountpoint,
                                            java.lang.String rootPath)
                                     throws RepositoryException,
                                            java.io.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 config
        wspFilter - the workspace filter
        rep - the jcr repository
        credentials - the credentials
        mountpoint - the repository address of the mountpoint
        rootPath - path of root file. used for remapping
        Returns:
        an aggregate manager
        Throws:
        RepositoryException - if an error occurs.
        java.io.IOException - if an I/O error occurs.