public class VirtualFileSystemDeamon extends java.lang.Object implements TerminalSessionDeamonHook
Constructor and Description |
---|
VirtualFileSystemDeamon(HookHandlerService hookHandler) |
Modifier and Type | Method and Description |
---|---|
void |
addFilesystemManager(VirtualFileSystemManagerHook manager) |
void |
autocomplete(AutocompleteHelper autocompleteHelper)
add autocomplete entries for any command that needs it
|
void |
cd(java.lang.String path) |
VFSLocation |
createFolderIn(VFSLocation location,
java.lang.String folder) |
VirtualFileSystemManagerHook |
getCurrentFileSystem() |
VFSLocation |
getCurrentLocation() |
java.lang.String |
getCurrentObjectId() |
java.lang.String |
getCurrentPath() |
VFSLocation |
getFileSystemRoot(java.lang.Class<? extends VirtualFileSystemManagerHook> type) |
VFSLocation |
getFilesystemRoot(java.lang.String filesystemName) |
VFSLocation |
getLocation(java.lang.String pathRaw) |
VFSLocation |
getLocation(VFSLocation momentaryLocation,
java.lang.String pathway) |
VFSLocation |
getLocationFor(java.lang.Object obj) |
VFSLocationInfo |
getLocationInfo(VFSLocation location) |
boolean |
inFileSystemRoot() |
void |
init(TerminalSession terminalSession) |
boolean |
inRoot() |
boolean |
isFileSystem(java.lang.String locationStr) |
boolean |
isMountPointTaken(java.lang.String mountPoint) |
boolean |
isObjectAncestorOf(java.lang.Object object,
VFSLocation baseLocation) |
boolean |
isValidMountPoint(java.lang.String mountPoint) |
java.lang.String |
prettyPrintCurrentPath() |
void |
remove(VFSLocation location,
boolean recursive,
boolean force) |
void |
setLocation(VFSLocation location) |
public VirtualFileSystemDeamon(HookHandlerService hookHandler)
public void init(TerminalSession terminalSession)
init
in interface TerminalSessionDeamonHook
public java.lang.String getCurrentPath()
public void cd(java.lang.String path) throws VFSException
VFSException
public void addFilesystemManager(VirtualFileSystemManagerHook manager)
public VFSLocation getLocation(java.lang.String pathRaw) throws VFSException
VFSException
public void setLocation(VFSLocation location)
public VFSLocation getLocation(VFSLocation momentaryLocation, java.lang.String pathway) throws VFSException
VFSException
public VFSLocation getFilesystemRoot(java.lang.String filesystemName) throws VFSException
VFSException
public boolean inRoot()
public boolean inFileSystemRoot()
public VFSLocation getCurrentLocation()
public VirtualFileSystemManagerHook getCurrentFileSystem()
public java.lang.String prettyPrintCurrentPath()
public VFSLocationInfo getLocationInfo(VFSLocation location)
public java.lang.String getCurrentObjectId()
public void autocomplete(AutocompleteHelper autocompleteHelper)
autocomplete
in interface TerminalSessionDeamonHook
autocompleteHelper
- public VFSLocation getLocationFor(java.lang.Object obj)
public VFSLocation getFileSystemRoot(java.lang.Class<? extends VirtualFileSystemManagerHook> type)
public VFSLocation createFolderIn(VFSLocation location, java.lang.String folder) throws VFSException
VFSException
public void remove(VFSLocation location, boolean recursive, boolean force) throws VFSException
VFSException
public boolean isValidMountPoint(java.lang.String mountPoint)
public boolean isMountPointTaken(java.lang.String mountPoint)
public boolean isObjectAncestorOf(java.lang.Object object, VFSLocation baseLocation)
public boolean isFileSystem(java.lang.String locationStr)