Package org.uberfire.backend.vfs
Interface VFSService
-
public interface VFSService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.uberfire.backend.vfs.Pathcopy(org.uberfire.backend.vfs.Path source, org.uberfire.backend.vfs.Path target)org.uberfire.backend.vfs.PathcreateDirectories(org.uberfire.backend.vfs.Path dir)org.uberfire.backend.vfs.PathcreateDirectories(org.uberfire.backend.vfs.Path dir, Map<String,?> attrs)org.uberfire.backend.vfs.PathcreateDirectory(org.uberfire.backend.vfs.Path dir)org.uberfire.backend.vfs.PathcreateDirectory(org.uberfire.backend.vfs.Path dir, Map<String,?> attrs)voiddelete(org.uberfire.backend.vfs.Path path)booleandeleteIfExists(org.uberfire.backend.vfs.Path path)org.uberfire.backend.vfs.Pathget(String uri)booleanisDirectory(String uri)booleanisDirectory(org.uberfire.backend.vfs.Path path)booleanisRegularFile(String uri)booleanisRegularFile(org.uberfire.backend.vfs.Path path)org.uberfire.backend.vfs.Pathmove(org.uberfire.backend.vfs.Path source, org.uberfire.backend.vfs.Path target)DirectoryStream<org.uberfire.backend.vfs.Path>newDirectoryStream(org.uberfire.backend.vfs.Path dir)DirectoryStream<org.uberfire.backend.vfs.Path>newDirectoryStream(org.uberfire.backend.vfs.Path dir, DirectoryStream.Filter<org.uberfire.backend.vfs.Path> filter)StringreadAllString(org.uberfire.backend.vfs.Path path)Map<String,Object>readAttributes(org.uberfire.backend.vfs.Path path)voidsetAttributes(org.uberfire.backend.vfs.Path path, Map<String,Object> attrs)org.uberfire.backend.vfs.Pathwrite(org.uberfire.backend.vfs.Path path, String content)org.uberfire.backend.vfs.Pathwrite(org.uberfire.backend.vfs.Path path, String content, Map<String,?> attrs)
-
-
-
Method Detail
-
get
org.uberfire.backend.vfs.Path get(String uri)
-
newDirectoryStream
DirectoryStream<org.uberfire.backend.vfs.Path> newDirectoryStream(org.uberfire.backend.vfs.Path dir) throws IllegalArgumentException, org.uberfire.java.nio.file.NotDirectoryException, org.uberfire.java.nio.IOException
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOException
-
newDirectoryStream
DirectoryStream<org.uberfire.backend.vfs.Path> newDirectoryStream(org.uberfire.backend.vfs.Path dir, DirectoryStream.Filter<org.uberfire.backend.vfs.Path> filter) throws IllegalArgumentException, org.uberfire.java.nio.file.NotDirectoryException, org.uberfire.java.nio.IOException
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOException
-
createDirectory
org.uberfire.backend.vfs.Path createDirectory(org.uberfire.backend.vfs.Path dir) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.file.FileAlreadyExistsException, org.uberfire.java.nio.IOException- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOException
-
createDirectories
org.uberfire.backend.vfs.Path createDirectories(org.uberfire.backend.vfs.Path dir) throws UnsupportedOperationException, org.uberfire.java.nio.file.FileAlreadyExistsException, org.uberfire.java.nio.IOException- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOException
-
createDirectory
org.uberfire.backend.vfs.Path createDirectory(org.uberfire.backend.vfs.Path dir, Map<String,?> attrs) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.file.FileAlreadyExistsException, org.uberfire.java.nio.IOException- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOException
-
createDirectories
org.uberfire.backend.vfs.Path createDirectories(org.uberfire.backend.vfs.Path dir, Map<String,?> attrs) throws UnsupportedOperationException, org.uberfire.java.nio.file.FileAlreadyExistsException, org.uberfire.java.nio.IOException- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOException
-
readAttributes
@InterceptedCall(VFSCacheInterceptor.class) Map<String,Object> readAttributes(org.uberfire.backend.vfs.Path path) throws UnsupportedOperationException, IllegalArgumentException, org.uberfire.java.nio.IOException
- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOException
-
setAttributes
void setAttributes(org.uberfire.backend.vfs.Path path, Map<String,Object> attrs) throws IllegalArgumentException, org.uberfire.java.nio.file.FileSystemAlreadyExistsException, org.uberfire.java.nio.file.ProviderNotFoundException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemAlreadyExistsExceptionorg.uberfire.java.nio.file.ProviderNotFoundException
-
delete
void delete(org.uberfire.backend.vfs.Path path) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.file.DirectoryNotEmptyException, org.uberfire.java.nio.IOException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOException
-
deleteIfExists
boolean deleteIfExists(org.uberfire.backend.vfs.Path path) throws IllegalArgumentException, org.uberfire.java.nio.file.DirectoryNotEmptyException, org.uberfire.java.nio.IOException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOException
-
copy
org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path source, org.uberfire.backend.vfs.Path target) throws UnsupportedOperationException, org.uberfire.java.nio.file.FileAlreadyExistsException, org.uberfire.java.nio.file.DirectoryNotEmptyException, org.uberfire.java.nio.IOException- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOException
-
move
org.uberfire.backend.vfs.Path move(org.uberfire.backend.vfs.Path source, org.uberfire.backend.vfs.Path target) throws UnsupportedOperationException, org.uberfire.java.nio.file.FileAlreadyExistsException, org.uberfire.java.nio.file.DirectoryNotEmptyException, org.uberfire.java.nio.file.AtomicMoveNotSupportedException, org.uberfire.java.nio.IOException- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.file.AtomicMoveNotSupportedExceptionorg.uberfire.java.nio.IOException
-
readAllString
String readAllString(org.uberfire.backend.vfs.Path path) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOException
-
write
org.uberfire.backend.vfs.Path write(org.uberfire.backend.vfs.Path path, String content) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
org.uberfire.backend.vfs.Path write(org.uberfire.backend.vfs.Path path, String content, Map<String,?> attrs) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
isRegularFile
boolean isRegularFile(String uri)
-
isRegularFile
boolean isRegularFile(org.uberfire.backend.vfs.Path path)
-
isDirectory
boolean isDirectory(String uri)
-
isDirectory
boolean isDirectory(org.uberfire.backend.vfs.Path path)
-
-