Interface VaultFileSystem


  • public interface VaultFileSystem
    VaultFileSystem...
    • Method Detail

      • isMounted

        boolean isMounted()
        Checks if this tree is still mounted and if the attached session is still live.
        Returns:
        true if still mounted
      • getRoot

        VaultFile getRoot()
        Returns the root file
        Returns:
        the root file
      • getAggregateManager

        AggregateManager getAggregateManager()
        Returns the attached artifacts manager.
        Returns:
        the attached artifacts manager.
      • getFile

        VaultFile getFile​(java.lang.String path)
                   throws java.io.IOException,
                          RepositoryException
        Returns the file at the given path. If the file does not exists null is thrown.
        Parameters:
        path - the path of the file
        Returns:
        the file or null
        Throws:
        java.io.IOException - if an I/O error occurs.
        RepositoryException - if a repository error occurs.
      • getFile

        VaultFile getFile​(VaultFile parent,
                          java.lang.String path)
                   throws java.io.IOException,
                          RepositoryException
        Returns the file at the given path. The path can be relative and may contain ".." path elements. If the file does not exists null is returned.
        Parameters:
        parent - the parent file.
        path - the path of the file
        Returns:
        the file or null
        Throws:
        java.io.IOException - if an I/O error occurs.
        RepositoryException - if a repository error occurs.
      • startTransaction

        VaultFsTransaction startTransaction()
        Starts a new transaction.
        Returns:
        a new transaction.
      • getConfig

        VaultFsConfig getConfig()
        Returns the vault configuration that is used
        Returns:
        the vault configuration.
      • getWorkspaceFilter

        WorkspaceFilter getWorkspaceFilter()
        Returns the current workspace filter
        Returns:
        the workspace filter