Class JGitFileSystemImpl

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.uberfire.commons.lifecycle.Disposable, org.uberfire.java.nio.base.FileSystemId, org.uberfire.java.nio.base.FileSystemStateAware, org.uberfire.java.nio.Closeable, org.uberfire.java.nio.file.FileSystem, org.uberfire.java.nio.file.LockableFileSystem, JGitFileSystem

    public class JGitFileSystemImpl
    extends Object
    implements JGitFileSystem
    • Method Detail

      • id

        public String id()
        Specified by:
        id in interface org.uberfire.java.nio.base.FileSystemId
      • getName

        public String getName()
        Specified by:
        getName in interface org.uberfire.java.nio.file.FileSystem
      • getCredential

        public org.eclipse.jgit.transport.CredentialsProvider getCredential()
        Specified by:
        getCredential in interface JGitFileSystem
      • provider

        public org.uberfire.java.nio.file.spi.FileSystemProvider provider()
        Specified by:
        provider in interface org.uberfire.java.nio.file.FileSystem
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface org.uberfire.java.nio.file.FileSystem
      • isReadOnly

        public boolean isReadOnly()
        Specified by:
        isReadOnly in interface org.uberfire.java.nio.file.FileSystem
      • getSeparator

        public String getSeparator()
        Specified by:
        getSeparator in interface org.uberfire.java.nio.file.FileSystem
      • getRootDirectories

        public Iterable<org.uberfire.java.nio.file.Path> getRootDirectories()
        Specified by:
        getRootDirectories in interface org.uberfire.java.nio.file.FileSystem
      • getFileStores

        public Iterable<org.uberfire.java.nio.file.FileStore> getFileStores()
        Specified by:
        getFileStores in interface org.uberfire.java.nio.file.FileSystem
      • supportedFileAttributeViews

        public Set<String> supportedFileAttributeViews()
        Specified by:
        supportedFileAttributeViews in interface org.uberfire.java.nio.file.FileSystem
      • getPath

        public org.uberfire.java.nio.file.Path getPath​(String first,
                                                       String... more)
                                                throws org.uberfire.java.nio.file.InvalidPathException
        Specified by:
        getPath in interface org.uberfire.java.nio.file.FileSystem
        Throws:
        org.uberfire.java.nio.file.InvalidPathException
      • getUserPrincipalLookupService

        public org.uberfire.java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService()
                                                                                                      throws UnsupportedOperationException
        Specified by:
        getUserPrincipalLookupService in interface org.uberfire.java.nio.file.FileSystem
        Throws:
        UnsupportedOperationException
      • newWatchService

        public org.uberfire.java.nio.file.WatchService newWatchService()
                                                                throws UnsupportedOperationException,
                                                                       org.uberfire.java.nio.IOException
        Specified by:
        newWatchService in interface org.uberfire.java.nio.file.FileSystem
        Throws:
        UnsupportedOperationException
        org.uberfire.java.nio.IOException
      • close

        public void close()
                   throws org.uberfire.java.nio.IOException
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface org.uberfire.java.nio.Closeable
        Throws:
        org.uberfire.java.nio.IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • publishEvents

        public void publishEvents​(org.uberfire.java.nio.file.Path watchableRoot,
                                  List<org.uberfire.java.nio.file.WatchEvent<?>> elist)
        Specified by:
        publishEvents in interface JGitFileSystem
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.uberfire.commons.lifecycle.Disposable
      • setBatchCommitInfo

        public void setBatchCommitInfo​(String defaultMessage,
                                       org.uberfire.java.nio.base.options.CommentedOption op)
        Specified by:
        setBatchCommitInfo in interface JGitFileSystem
      • setHadCommitOnBatchState

        public void setHadCommitOnBatchState​(org.uberfire.java.nio.file.Path path,
                                             boolean hadCommitOnBatchState)
        Specified by:
        setHadCommitOnBatchState in interface JGitFileSystem
      • getState

        public org.uberfire.java.nio.base.FileSystemState getState()
        Specified by:
        getState in interface org.uberfire.java.nio.base.FileSystemStateAware
      • lock

        public void lock()
        Specified by:
        lock in interface org.uberfire.java.nio.file.LockableFileSystem
      • unlock

        public void unlock()
        Specified by:
        unlock in interface org.uberfire.java.nio.file.LockableFileSystem
      • checkBranchAccess

        public void checkBranchAccess​(org.eclipse.jgit.transport.ReceiveCommand command,
                                      org.jboss.errai.security.shared.api.identity.User user)
        Specified by:
        checkBranchAccess in interface JGitFileSystem
      • filterBranchAccess

        public void filterBranchAccess​(org.eclipse.jgit.transport.UploadPack uploadPack,
                                       org.jboss.errai.security.shared.api.identity.User user)
        Specified by:
        filterBranchAccess in interface JGitFileSystem