org.kie.commons.java.nio.fs.jgit
Class JGitFileSystemProvider
java.lang.Object
org.kie.commons.java.nio.fs.jgit.JGitFileSystemProvider
- All Implemented Interfaces:
- org.kie.commons.java.nio.file.spi.FileSystemProvider
public class JGitFileSystemProvider
- extends Object
- implements org.kie.commons.java.nio.file.spi.FileSystemProvider
|
Method Summary |
void |
checkAccess(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.AccessMode... modes)
|
void |
copy(org.kie.commons.java.nio.file.Path source,
org.kie.commons.java.nio.file.Path target,
org.kie.commons.java.nio.file.CopyOption... options)
|
void |
createDirectory(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
|
void |
createLink(org.kie.commons.java.nio.file.Path link,
org.kie.commons.java.nio.file.Path existing)
|
void |
createSymbolicLink(org.kie.commons.java.nio.file.Path link,
org.kie.commons.java.nio.file.Path target,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
|
void |
delete(org.kie.commons.java.nio.file.Path path)
|
void |
deleteAsset(JGitPathImpl path)
|
boolean |
deleteAssetIfExists(JGitPathImpl path)
|
void |
deleteBranch(JGitPathImpl path)
|
boolean |
deleteBranchIfExists(JGitPathImpl path)
|
boolean |
deleteIfExists(org.kie.commons.java.nio.file.Path path)
|
void |
forceAsDefault()
|
<V extends org.kie.commons.java.nio.file.attribute.FileAttributeView>
V |
|
getFileAttributeView(org.kie.commons.java.nio.file.Path path,
Class<V> type,
org.kie.commons.java.nio.file.LinkOption... options)
|
org.kie.commons.java.nio.file.FileStore |
getFileStore(org.kie.commons.java.nio.file.Path path)
|
org.kie.commons.java.nio.file.FileSystem |
getFileSystem(URI uri)
|
static JGitFileSystemProvider |
getInstance()
|
org.kie.commons.java.nio.file.Path |
getPath(URI uri)
|
String |
getScheme()
|
boolean |
isDefault()
|
boolean |
isHidden(org.kie.commons.java.nio.file.Path path)
|
boolean |
isSameFile(org.kie.commons.java.nio.file.Path pathA,
org.kie.commons.java.nio.file.Path pathB)
|
static void |
loadConfig()
|
void |
move(org.kie.commons.java.nio.file.Path source,
org.kie.commons.java.nio.file.Path target,
org.kie.commons.java.nio.file.CopyOption... options)
|
org.kie.commons.java.nio.channels.AsynchronousFileChannel |
newAsynchronousFileChannel(org.kie.commons.java.nio.file.Path path,
Set<? extends org.kie.commons.java.nio.file.OpenOption> options,
ExecutorService executor,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
|
org.kie.commons.java.nio.channels.SeekableByteChannel |
newByteChannel(org.kie.commons.java.nio.file.Path path,
Set<? extends org.kie.commons.java.nio.file.OpenOption> options,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
|
org.kie.commons.java.nio.file.DirectoryStream<org.kie.commons.java.nio.file.Path> |
newDirectoryStream(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> pfilter)
|
FileChannel |
newFileChannel(org.kie.commons.java.nio.file.Path path,
Set<? extends org.kie.commons.java.nio.file.OpenOption> options,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
|
org.kie.commons.java.nio.file.FileSystem |
newFileSystem(org.kie.commons.java.nio.file.Path path,
Map<String,?> env)
|
org.kie.commons.java.nio.file.FileSystem |
newFileSystem(URI uri,
Map<String,?> env)
|
InputStream |
newInputStream(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.OpenOption... options)
|
OutputStream |
newOutputStream(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.OpenOption... options)
|
<A extends org.kie.commons.java.nio.file.attribute.BasicFileAttributes>
A |
|
readAttributes(org.kie.commons.java.nio.file.Path path,
Class<A> type,
org.kie.commons.java.nio.file.LinkOption... options)
|
Map<String,Object> |
readAttributes(org.kie.commons.java.nio.file.Path path,
String attributes,
org.kie.commons.java.nio.file.LinkOption... options)
|
org.kie.commons.java.nio.file.Path |
readSymbolicLink(org.kie.commons.java.nio.file.Path link)
|
void |
setAttribute(org.kie.commons.java.nio.file.Path path,
String attribute,
Object value,
org.kie.commons.java.nio.file.LinkOption... options)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GIT_DEFAULT_REMOTE_NAME
public static final String GIT_DEFAULT_REMOTE_NAME
- See Also:
- Constant Field Values
REPOSITORIES_ROOT_DIR
public static final String REPOSITORIES_ROOT_DIR
- See Also:
- Constant Field Values
DEAMON_DEFAULT_ENABLED
public static final boolean DEAMON_DEFAULT_ENABLED
- See Also:
- Constant Field Values
DEAMON_DEFAULT_PORT
public static final int DEAMON_DEFAULT_PORT
- See Also:
- Constant Field Values
DEAMON_DEFAULT_HOST
public static final String DEAMON_DEFAULT_HOST
- See Also:
- Constant Field Values
DEAMON_DEFAULT_UPLOAD
public static final boolean DEAMON_DEFAULT_UPLOAD
- See Also:
- Constant Field Values
FILE_REPOSITORIES_ROOT
public static File FILE_REPOSITORIES_ROOT
DEAMON_ENABLED
public static boolean DEAMON_ENABLED
DEAMON_PORT
public static int DEAMON_PORT
DEAMON_UPLOAD
public static boolean DEAMON_UPLOAD
USER_NAME
public static final String USER_NAME
- See Also:
- Constant Field Values
PASSWORD
public static final String PASSWORD
- See Also:
- Constant Field Values
INIT
public static final String INIT
- See Also:
- Constant Field Values
SCHEME_SIZE
public static final int SCHEME_SIZE
DEFAULT_SCHEME_SIZE
public static final int DEFAULT_SCHEME_SIZE
JGitFileSystemProvider
public JGitFileSystemProvider()
loadConfig
public static void loadConfig()
getInstance
public static JGitFileSystemProvider getInstance()
forceAsDefault
public void forceAsDefault()
- Specified by:
forceAsDefault in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
isDefault
public boolean isDefault()
- Specified by:
isDefault in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
getScheme
public String getScheme()
- Specified by:
getScheme in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
newFileSystem
public org.kie.commons.java.nio.file.FileSystem newFileSystem(org.kie.commons.java.nio.file.Path path,
Map<String,?> env)
throws IllegalArgumentException,
UnsupportedOperationException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
newFileSystem in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
newFileSystem
public org.kie.commons.java.nio.file.FileSystem newFileSystem(URI uri,
Map<String,?> env)
throws IllegalArgumentException,
org.kie.commons.java.nio.IOException,
SecurityException,
org.kie.commons.java.nio.file.FileSystemAlreadyExistsException
- Specified by:
newFileSystem in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
org.kie.commons.java.nio.file.FileSystemAlreadyExistsException
getFileSystem
public org.kie.commons.java.nio.file.FileSystem getFileSystem(URI uri)
throws IllegalArgumentException,
org.kie.commons.java.nio.file.FileSystemNotFoundException,
SecurityException
- Specified by:
getFileSystem in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
IllegalArgumentException
org.kie.commons.java.nio.file.FileSystemNotFoundException
SecurityException
getPath
public org.kie.commons.java.nio.file.Path getPath(URI uri)
throws IllegalArgumentException,
org.kie.commons.java.nio.file.FileSystemNotFoundException,
SecurityException
- Specified by:
getPath in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
IllegalArgumentException
org.kie.commons.java.nio.file.FileSystemNotFoundException
SecurityException
newInputStream
public InputStream newInputStream(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.OpenOption... options)
throws IllegalArgumentException,
UnsupportedOperationException,
org.kie.commons.java.nio.file.NoSuchFileException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
newInputStream in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException
newOutputStream
public OutputStream newOutputStream(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.OpenOption... options)
throws IllegalArgumentException,
UnsupportedOperationException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
newOutputStream in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
newFileChannel
public FileChannel newFileChannel(org.kie.commons.java.nio.file.Path path,
Set<? extends org.kie.commons.java.nio.file.OpenOption> options,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
newFileChannel in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
newAsynchronousFileChannel
public org.kie.commons.java.nio.channels.AsynchronousFileChannel newAsynchronousFileChannel(org.kie.commons.java.nio.file.Path path,
Set<? extends org.kie.commons.java.nio.file.OpenOption> options,
ExecutorService executor,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
newAsynchronousFileChannel in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
newByteChannel
public org.kie.commons.java.nio.channels.SeekableByteChannel newByteChannel(org.kie.commons.java.nio.file.Path path,
Set<? extends org.kie.commons.java.nio.file.OpenOption> options,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
org.kie.commons.java.nio.file.FileAlreadyExistsException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
newByteChannel in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
newDirectoryStream
public org.kie.commons.java.nio.file.DirectoryStream<org.kie.commons.java.nio.file.Path> newDirectoryStream(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> pfilter)
throws org.kie.commons.java.nio.file.NotDirectoryException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
newDirectoryStream in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
org.kie.commons.java.nio.file.NotDirectoryException
org.kie.commons.java.nio.IOException
SecurityException
createDirectory
public void createDirectory(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
throws UnsupportedOperationException,
org.kie.commons.java.nio.file.FileAlreadyExistsException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
createDirectory in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
createSymbolicLink
public void createSymbolicLink(org.kie.commons.java.nio.file.Path link,
org.kie.commons.java.nio.file.Path target,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
throws UnsupportedOperationException,
org.kie.commons.java.nio.file.FileAlreadyExistsException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
createSymbolicLink in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
createLink
public void createLink(org.kie.commons.java.nio.file.Path link,
org.kie.commons.java.nio.file.Path existing)
throws UnsupportedOperationException,
org.kie.commons.java.nio.file.FileAlreadyExistsException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
createLink in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
delete
public void delete(org.kie.commons.java.nio.file.Path path)
throws org.kie.commons.java.nio.file.DirectoryNotEmptyException,
org.kie.commons.java.nio.file.NoSuchFileException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
delete in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException
deleteAsset
public void deleteAsset(JGitPathImpl path)
deleteBranch
public void deleteBranch(JGitPathImpl path)
deleteIfExists
public boolean deleteIfExists(org.kie.commons.java.nio.file.Path path)
throws org.kie.commons.java.nio.file.DirectoryNotEmptyException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
deleteIfExists in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
deleteBranchIfExists
public boolean deleteBranchIfExists(JGitPathImpl path)
deleteAssetIfExists
public boolean deleteAssetIfExists(JGitPathImpl path)
readSymbolicLink
public org.kie.commons.java.nio.file.Path readSymbolicLink(org.kie.commons.java.nio.file.Path link)
throws UnsupportedOperationException,
org.kie.commons.java.nio.file.NotLinkException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
readSymbolicLink in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.NotLinkException
org.kie.commons.java.nio.IOException
SecurityException
copy
public void copy(org.kie.commons.java.nio.file.Path source,
org.kie.commons.java.nio.file.Path target,
org.kie.commons.java.nio.file.CopyOption... options)
throws UnsupportedOperationException,
org.kie.commons.java.nio.file.FileAlreadyExistsException,
org.kie.commons.java.nio.file.DirectoryNotEmptyException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
copy in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
move
public void move(org.kie.commons.java.nio.file.Path source,
org.kie.commons.java.nio.file.Path target,
org.kie.commons.java.nio.file.CopyOption... options)
throws org.kie.commons.java.nio.file.DirectoryNotEmptyException,
org.kie.commons.java.nio.file.AtomicMoveNotSupportedException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
move in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.file.AtomicMoveNotSupportedException
org.kie.commons.java.nio.IOException
SecurityException
isSameFile
public boolean isSameFile(org.kie.commons.java.nio.file.Path pathA,
org.kie.commons.java.nio.file.Path pathB)
throws org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
isSameFile in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
org.kie.commons.java.nio.IOException
SecurityException
isHidden
public boolean isHidden(org.kie.commons.java.nio.file.Path path)
throws IllegalArgumentException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
isHidden in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
getFileStore
public org.kie.commons.java.nio.file.FileStore getFileStore(org.kie.commons.java.nio.file.Path path)
throws org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
getFileStore in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
org.kie.commons.java.nio.IOException
SecurityException
checkAccess
public void checkAccess(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.AccessMode... modes)
throws UnsupportedOperationException,
org.kie.commons.java.nio.file.NoSuchFileException,
org.kie.commons.java.nio.file.AccessDeniedException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
checkAccess in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.file.AccessDeniedException
org.kie.commons.java.nio.IOException
SecurityException
getFileAttributeView
public <V extends org.kie.commons.java.nio.file.attribute.FileAttributeView> V getFileAttributeView(org.kie.commons.java.nio.file.Path path,
Class<V> type,
org.kie.commons.java.nio.file.LinkOption... options)
throws org.kie.commons.java.nio.file.NoSuchFileException
- Specified by:
getFileAttributeView in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
org.kie.commons.java.nio.file.NoSuchFileException
readAttributes
public <A extends org.kie.commons.java.nio.file.attribute.BasicFileAttributes> A readAttributes(org.kie.commons.java.nio.file.Path path,
Class<A> type,
org.kie.commons.java.nio.file.LinkOption... options)
throws org.kie.commons.java.nio.file.NoSuchFileException,
UnsupportedOperationException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
readAttributes in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
org.kie.commons.java.nio.file.NoSuchFileException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
readAttributes
public Map<String,Object> readAttributes(org.kie.commons.java.nio.file.Path path,
String attributes,
org.kie.commons.java.nio.file.LinkOption... options)
throws UnsupportedOperationException,
IllegalArgumentException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
readAttributes in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
UnsupportedOperationException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
setAttribute
public void setAttribute(org.kie.commons.java.nio.file.Path path,
String attribute,
Object value,
org.kie.commons.java.nio.file.LinkOption... options)
throws UnsupportedOperationException,
IllegalArgumentException,
ClassCastException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
setAttribute in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
- Throws:
UnsupportedOperationException
IllegalArgumentException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.