org.kie.commons.java.nio.fs.jgit
public class JGitFileSystemProvider extends Object implements org.kie.commons.java.nio.file.spi.FileSystemProvider
Modifier and Type | Field and Description |
---|---|
static boolean |
DEAMON_DEFAULT_ENABLED |
static String |
DEAMON_DEFAULT_HOST |
static int |
DEAMON_DEFAULT_PORT |
static boolean |
DEAMON_DEFAULT_UPLOAD |
static boolean |
DEAMON_ENABLED |
static int |
DEAMON_PORT |
static boolean |
DEAMON_UPLOAD |
static int |
DEFAULT_SCHEME_SIZE |
static File |
FILE_REPOSITORIES_ROOT |
static String |
GIT_DEFAULT_REMOTE_NAME |
static String |
INIT |
static String |
PASSWORD |
static String |
REPOSITORIES_ROOT_DIR |
static int |
SCHEME_SIZE |
static String |
USER_NAME |
Constructor and Description |
---|
JGitFileSystemProvider() |
Modifier and Type | Method and Description |
---|---|
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> |
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) |
void |
onCloseFileSystem(JGitFileSystem fileSystem) |
<A extends org.kie.commons.java.nio.file.attribute.BasicFileAttributes> |
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) |
public static final String GIT_DEFAULT_REMOTE_NAME
public static final String REPOSITORIES_ROOT_DIR
public static final boolean DEAMON_DEFAULT_ENABLED
public static final int DEAMON_DEFAULT_PORT
public static final String DEAMON_DEFAULT_HOST
public static final boolean DEAMON_DEFAULT_UPLOAD
public static File FILE_REPOSITORIES_ROOT
public static boolean DEAMON_ENABLED
public static int DEAMON_PORT
public static boolean DEAMON_UPLOAD
public static final String USER_NAME
public static final String PASSWORD
public static final String INIT
public static final int SCHEME_SIZE
public static final int DEFAULT_SCHEME_SIZE
public static void loadConfig()
public void onCloseFileSystem(JGitFileSystem fileSystem)
public static JGitFileSystemProvider getInstance()
public void forceAsDefault()
forceAsDefault
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
public boolean isDefault()
isDefault
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
public String getScheme()
getScheme
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
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
newFileSystem
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
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
newFileSystem
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
org.kie.commons.java.nio.file.FileSystemAlreadyExistsException
public org.kie.commons.java.nio.file.FileSystem getFileSystem(URI uri) throws IllegalArgumentException, org.kie.commons.java.nio.file.FileSystemNotFoundException, SecurityException
getFileSystem
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
org.kie.commons.java.nio.file.FileSystemNotFoundException
SecurityException
public org.kie.commons.java.nio.file.Path getPath(URI uri) throws IllegalArgumentException, org.kie.commons.java.nio.file.FileSystemNotFoundException, SecurityException
getPath
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
org.kie.commons.java.nio.file.FileSystemNotFoundException
SecurityException
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
newInputStream
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException
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
newOutputStream
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
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
newFileChannel
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
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
newAsynchronousFileChannel
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
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
newByteChannel
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
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
newDirectoryStream
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.NotDirectoryException
org.kie.commons.java.nio.IOException
SecurityException
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
createDirectory
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
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
createSymbolicLink
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
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
createLink
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
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
delete
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException
public void deleteAsset(JGitPathImpl path)
public void deleteBranch(JGitPathImpl path)
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
deleteIfExists
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
public boolean deleteBranchIfExists(JGitPathImpl path)
public boolean deleteAssetIfExists(JGitPathImpl path)
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
readSymbolicLink
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.NotLinkException
org.kie.commons.java.nio.IOException
SecurityException
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
copy
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
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
move
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.file.AtomicMoveNotSupportedException
org.kie.commons.java.nio.IOException
SecurityException
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
isSameFile
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.IOException
SecurityException
public boolean isHidden(org.kie.commons.java.nio.file.Path path) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, SecurityException
isHidden
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
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
getFileStore
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.IOException
SecurityException
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
checkAccess
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.file.AccessDeniedException
org.kie.commons.java.nio.IOException
SecurityException
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
getFileAttributeView
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.NoSuchFileException
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
readAttributes
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.NoSuchFileException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
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
readAttributes
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
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
setAttribute
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
IllegalArgumentException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.