Package org.uberfire.backend.server
Class VFSServicesServerImpl
- java.lang.Object
-
- org.uberfire.backend.server.VFSServicesServerImpl
-
- All Implemented Interfaces:
org.uberfire.backend.vfs.VFSService
@ApplicationScoped public class VFSServicesServerImpl extends Object implements org.uberfire.backend.vfs.VFSService
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedVFSServicesServerImpl()VFSServicesServerImpl(org.uberfire.io.IOService ioService)
-
Method Summary
All Methods Instance Methods Concrete 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)org.uberfire.backend.vfs.DirectoryStream<org.uberfire.backend.vfs.Path>newDirectoryStream(org.uberfire.backend.vfs.Path dir)org.uberfire.backend.vfs.DirectoryStream<org.uberfire.backend.vfs.Path>newDirectoryStream(org.uberfire.backend.vfs.Path dir, org.uberfire.backend.vfs.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
public org.uberfire.backend.vfs.Path get(String uri)
- Specified by:
getin interfaceorg.uberfire.backend.vfs.VFSService
-
newDirectoryStream
public org.uberfire.backend.vfs.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- Specified by:
newDirectoryStreamin interfaceorg.uberfire.backend.vfs.VFSService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOException
-
newDirectoryStream
public org.uberfire.backend.vfs.DirectoryStream<org.uberfire.backend.vfs.Path> newDirectoryStream(org.uberfire.backend.vfs.Path dir, org.uberfire.backend.vfs.DirectoryStream.Filter<org.uberfire.backend.vfs.Path> filter) throws IllegalArgumentException, org.uberfire.java.nio.file.NotDirectoryException, org.uberfire.java.nio.IOException- Specified by:
newDirectoryStreamin interfaceorg.uberfire.backend.vfs.VFSService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOException
-
createDirectory
public 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, SecurityException- Specified by:
createDirectoryin interfaceorg.uberfire.backend.vfs.VFSService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createDirectories
public 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, SecurityException- Specified by:
createDirectoriesin interfaceorg.uberfire.backend.vfs.VFSService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createDirectory
public 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, SecurityException- Specified by:
createDirectoryin interfaceorg.uberfire.backend.vfs.VFSService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createDirectories
public 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, SecurityException- Specified by:
createDirectoriesin interfaceorg.uberfire.backend.vfs.VFSService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
readAttributes
public Map<String,Object> readAttributes(org.uberfire.backend.vfs.Path path) throws UnsupportedOperationException, IllegalArgumentException, org.uberfire.java.nio.IOException
- Specified by:
readAttributesin interfaceorg.uberfire.backend.vfs.VFSService- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOException
-
setAttributes
public 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- Specified by:
setAttributesin interfaceorg.uberfire.backend.vfs.VFSService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemAlreadyExistsExceptionorg.uberfire.java.nio.file.ProviderNotFoundException
-
delete
public 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- Specified by:
deletein interfaceorg.uberfire.backend.vfs.VFSService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOException
-
deleteIfExists
public boolean deleteIfExists(org.uberfire.backend.vfs.Path path) throws IllegalArgumentException, org.uberfire.java.nio.file.DirectoryNotEmptyException, org.uberfire.java.nio.IOException- Specified by:
deleteIfExistsin interfaceorg.uberfire.backend.vfs.VFSService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOException
-
copy
public 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- Specified by:
copyin interfaceorg.uberfire.backend.vfs.VFSService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOException
-
move
public 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- Specified by:
movein interfaceorg.uberfire.backend.vfs.VFSService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.file.AtomicMoveNotSupportedExceptionorg.uberfire.java.nio.IOException
-
readAllString
public String readAllString(org.uberfire.backend.vfs.Path path) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException
- Specified by:
readAllStringin interfaceorg.uberfire.backend.vfs.VFSService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOException
-
write
public org.uberfire.backend.vfs.Path write(org.uberfire.backend.vfs.Path path, String content) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException- Specified by:
writein interfaceorg.uberfire.backend.vfs.VFSService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
public 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- Specified by:
writein interfaceorg.uberfire.backend.vfs.VFSService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
isRegularFile
public boolean isRegularFile(String uri)
- Specified by:
isRegularFilein interfaceorg.uberfire.backend.vfs.VFSService
-
isRegularFile
public boolean isRegularFile(org.uberfire.backend.vfs.Path path)
- Specified by:
isRegularFilein interfaceorg.uberfire.backend.vfs.VFSService
-
isDirectory
public boolean isDirectory(String uri)
- Specified by:
isDirectoryin interfaceorg.uberfire.backend.vfs.VFSService
-
isDirectory
public boolean isDirectory(org.uberfire.backend.vfs.Path path)
- Specified by:
isDirectoryin interfaceorg.uberfire.backend.vfs.VFSService
-
-