Package org.uberfire.java.nio.fs.jgit
Class JGitFileSystemProxy
- java.lang.Object
-
- org.uberfire.java.nio.fs.jgit.JGitFileSystemProxy
-
- 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 JGitFileSystemProxy extends Object implements JGitFileSystem
-
-
Constructor Summary
Constructors Constructor Description JGitFileSystemProxy(String fsName, Supplier<JGitFileSystem> cachedSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPostponedWatchEvents(List<org.uberfire.java.nio.file.WatchEvent<?>> postponedWatchEvents)CommitInfobuildCommitInfo(String defaultMessage, org.uberfire.java.nio.base.options.CommentedOption op)voidcheckBranchAccess(org.eclipse.jgit.transport.ReceiveCommand command, org.jboss.errai.security.shared.api.identity.User user)voidcheckClosed()voidclearPostponedWatchEvents()voidclose()voiddispose()booleanequals(Object obj)voidfilterBranchAccess(org.eclipse.jgit.transport.UploadPack uploadPack, org.jboss.errai.security.shared.api.identity.User user)CommitInfogetBatchCommitInfo()org.eclipse.jgit.transport.CredentialsProvidergetCredential()Iterable<org.uberfire.java.nio.file.FileStore>getFileStores()GitgetGit()StringgetName()intgetNumberOfCommitsSinceLastGC()org.uberfire.java.nio.file.PathgetPath(String first, String... more)org.uberfire.java.nio.file.PathMatchergetPathMatcher(String syntaxAndPattern)List<org.uberfire.java.nio.file.WatchEvent<?>>getPostponedWatchEvents()JGitFileSystemgetRealJGitFileSystem()Iterable<org.uberfire.java.nio.file.Path>getRootDirectories()StringgetSeparator()org.uberfire.java.nio.base.FileSystemStategetState()org.uberfire.java.nio.file.attribute.UserPrincipalLookupServicegetUserPrincipalLookupService()booleanhasBeenInUse()inthashCode()booleanhasPostponedEvents()Stringid()intincrementAndGetCommitCount()booleanisHadCommitOnBatchState(org.uberfire.java.nio.file.Path path)booleanisOnBatch()booleanisOpen()booleanisReadOnly()voidlock()org.uberfire.java.nio.file.WatchServicenewWatchService()voidnotifyExternalUpdate()voidnotifyPostCommit(int exitCode)org.uberfire.java.nio.file.spi.FileSystemProviderprovider()voidpublishEvents(org.uberfire.java.nio.file.Path watchable, List<org.uberfire.java.nio.file.WatchEvent<?>> elist)voidresetCommitCount()voidsetBatchCommitInfo(String defaultMessage, org.uberfire.java.nio.base.options.CommentedOption op)voidsetBatchCommitInfo(CommitInfo batchCommitInfo)voidsetHadCommitOnBatchState(boolean value)voidsetHadCommitOnBatchState(org.uberfire.java.nio.file.Path path, boolean hadCommitOnBatchState)voidsetPublicURI(Map<String,String> fullHostNames)voidsetState(String state)Set<String>supportedFileAttributeViews()StringtoString()voidunlock()
-
-
-
Constructor Detail
-
JGitFileSystemProxy
public JGitFileSystemProxy(String fsName, Supplier<JGitFileSystem> cachedSupplier)
-
-
Method Detail
-
setPublicURI
public void setPublicURI(Map<String,String> fullHostNames)
- Specified by:
setPublicURIin interfaceJGitFileSystem
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.uberfire.java.nio.file.FileSystem
-
getGit
public Git getGit()
- Specified by:
getGitin interfaceJGitFileSystem
-
getCredential
public org.eclipse.jgit.transport.CredentialsProvider getCredential()
- Specified by:
getCredentialin interfaceJGitFileSystem
-
checkClosed
public void checkClosed() throws IllegalStateException- Specified by:
checkClosedin interfaceJGitFileSystem- Throws:
IllegalStateException
-
publishEvents
public void publishEvents(org.uberfire.java.nio.file.Path watchable, List<org.uberfire.java.nio.file.WatchEvent<?>> elist)- Specified by:
publishEventsin interfaceJGitFileSystem
-
isOnBatch
public boolean isOnBatch()
- Specified by:
isOnBatchin interfaceJGitFileSystem
-
setState
public void setState(String state)
- Specified by:
setStatein interfaceJGitFileSystem
-
buildCommitInfo
public CommitInfo buildCommitInfo(String defaultMessage, org.uberfire.java.nio.base.options.CommentedOption op)
- Specified by:
buildCommitInfoin interfaceJGitFileSystem
-
setBatchCommitInfo
public void setBatchCommitInfo(String defaultMessage, org.uberfire.java.nio.base.options.CommentedOption op)
- Specified by:
setBatchCommitInfoin interfaceJGitFileSystem
-
setHadCommitOnBatchState
public void setHadCommitOnBatchState(org.uberfire.java.nio.file.Path path, boolean hadCommitOnBatchState)- Specified by:
setHadCommitOnBatchStatein interfaceJGitFileSystem
-
setHadCommitOnBatchState
public void setHadCommitOnBatchState(boolean value)
- Specified by:
setHadCommitOnBatchStatein interfaceJGitFileSystem
-
isHadCommitOnBatchState
public boolean isHadCommitOnBatchState(org.uberfire.java.nio.file.Path path)
- Specified by:
isHadCommitOnBatchStatein interfaceJGitFileSystem
-
setBatchCommitInfo
public void setBatchCommitInfo(CommitInfo batchCommitInfo)
- Specified by:
setBatchCommitInfoin interfaceJGitFileSystem
-
getBatchCommitInfo
public CommitInfo getBatchCommitInfo()
- Specified by:
getBatchCommitInfoin interfaceJGitFileSystem
-
incrementAndGetCommitCount
public int incrementAndGetCommitCount()
- Specified by:
incrementAndGetCommitCountin interfaceJGitFileSystem
-
resetCommitCount
public void resetCommitCount()
- Specified by:
resetCommitCountin interfaceJGitFileSystem
-
getNumberOfCommitsSinceLastGC
public int getNumberOfCommitsSinceLastGC()
- Specified by:
getNumberOfCommitsSinceLastGCin interfaceJGitFileSystem
-
lock
public void lock()
- Specified by:
lockin interfaceorg.uberfire.java.nio.file.LockableFileSystem
-
unlock
public void unlock()
- Specified by:
unlockin interfaceorg.uberfire.java.nio.file.LockableFileSystem
-
addPostponedWatchEvents
public void addPostponedWatchEvents(List<org.uberfire.java.nio.file.WatchEvent<?>> postponedWatchEvents)
- Specified by:
addPostponedWatchEventsin interfaceJGitFileSystem
-
getPostponedWatchEvents
public List<org.uberfire.java.nio.file.WatchEvent<?>> getPostponedWatchEvents()
- Specified by:
getPostponedWatchEventsin interfaceJGitFileSystem
-
clearPostponedWatchEvents
public void clearPostponedWatchEvents()
- Specified by:
clearPostponedWatchEventsin interfaceJGitFileSystem
-
hasPostponedEvents
public boolean hasPostponedEvents()
- Specified by:
hasPostponedEventsin interfaceJGitFileSystem
-
hasBeenInUse
public boolean hasBeenInUse()
- Specified by:
hasBeenInUsein interfaceJGitFileSystem
-
notifyExternalUpdate
public void notifyExternalUpdate()
- Specified by:
notifyExternalUpdatein interfaceJGitFileSystem
-
notifyPostCommit
public void notifyPostCommit(int exitCode)
- Specified by:
notifyPostCommitin interfaceJGitFileSystem
-
checkBranchAccess
public void checkBranchAccess(org.eclipse.jgit.transport.ReceiveCommand command, org.jboss.errai.security.shared.api.identity.User user)- Specified by:
checkBranchAccessin interfaceJGitFileSystem
-
filterBranchAccess
public void filterBranchAccess(org.eclipse.jgit.transport.UploadPack uploadPack, org.jboss.errai.security.shared.api.identity.User user)- Specified by:
filterBranchAccessin interfaceJGitFileSystem
-
provider
public org.uberfire.java.nio.file.spi.FileSystemProvider provider()
- Specified by:
providerin interfaceorg.uberfire.java.nio.file.FileSystem
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceorg.uberfire.java.nio.file.FileSystem
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceorg.uberfire.java.nio.file.FileSystem
-
getSeparator
public String getSeparator()
- Specified by:
getSeparatorin interfaceorg.uberfire.java.nio.file.FileSystem
-
getRootDirectories
public Iterable<org.uberfire.java.nio.file.Path> getRootDirectories()
- Specified by:
getRootDirectoriesin interfaceorg.uberfire.java.nio.file.FileSystem
-
getFileStores
public Iterable<org.uberfire.java.nio.file.FileStore> getFileStores()
- Specified by:
getFileStoresin interfaceorg.uberfire.java.nio.file.FileSystem
-
supportedFileAttributeViews
public Set<String> supportedFileAttributeViews()
- Specified by:
supportedFileAttributeViewsin interfaceorg.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:
getPathin interfaceorg.uberfire.java.nio.file.FileSystem- Throws:
org.uberfire.java.nio.file.InvalidPathException
-
getPathMatcher
public org.uberfire.java.nio.file.PathMatcher getPathMatcher(String syntaxAndPattern) throws IllegalArgumentException, org.uberfire.java.nio.file.PatternSyntaxException, UnsupportedOperationException
- Specified by:
getPathMatcherin interfaceorg.uberfire.java.nio.file.FileSystem- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.PatternSyntaxExceptionUnsupportedOperationException
-
getUserPrincipalLookupService
public org.uberfire.java.nio.file.attribute.UserPrincipalLookupService getUserPrincipalLookupService() throws UnsupportedOperationException- Specified by:
getUserPrincipalLookupServicein interfaceorg.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:
newWatchServicein interfaceorg.uberfire.java.nio.file.FileSystem- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.uberfire.java.nio.Closeable
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.uberfire.commons.lifecycle.Disposable
-
id
public String id()
- Specified by:
idin interfaceorg.uberfire.java.nio.base.FileSystemId
-
getState
public org.uberfire.java.nio.base.FileSystemState getState()
- Specified by:
getStatein interfaceorg.uberfire.java.nio.base.FileSystemStateAware
-
getRealJGitFileSystem
public JGitFileSystem getRealJGitFileSystem()
-
-