Class FileSystemWorkspaceMgr
- java.lang.Object
-
- com.smeup.jardis.jariko.lsp.handler.FileSystemWorkspaceMgr
-
- All Implemented Interfaces:
WorkspaceMgr
public class FileSystemWorkspaceMgr extends Object implements WorkspaceMgr
- Author:
- lana
-
-
Constructor Summary
Constructors Constructor Description FileSystemWorkspaceMgr(Path localWorkspace, com.smeup.jardis.core.JardisSession jardisSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteFile(URI uri)List<Object>getDocumentChanges(URI uri)Get a document changes.Stringload(URI uri)Load document from server workspacevoidrenameFile(URI from, URI to)URIresolveUri(URI uri)voidsave(URI uri, String content)Save uri in server workspace
-
-
-
Constructor Detail
-
FileSystemWorkspaceMgr
public FileSystemWorkspaceMgr(Path localWorkspace, com.smeup.jardis.core.JardisSession jardisSession)
-
-
Method Detail
-
save
public void save(URI uri, String content) throws IOException
Save uri in server workspace- Specified by:
savein interfaceWorkspaceMgr- Parameters:
uri- Uri of file sent by VSCcontent- File content- Throws:
IOException
-
load
public String load(URI uri) throws Exception
Description copied from interface:WorkspaceMgrLoad document from server workspace- Specified by:
loadin interfaceWorkspaceMgr- Parameters:
uri- Uri of file sent by VSC- Returns:
- The document content
- Throws:
Exception
-
getDocumentChanges
public List<Object> getDocumentChanges(URI uri) throws IOException
Get a document changes. Used to syncronize client with the server- Specified by:
getDocumentChangesin interfaceWorkspaceMgr- Throws:
IOException
-
deleteFile
public void deleteFile(URI uri) throws Exception
- Specified by:
deleteFilein interfaceWorkspaceMgr- Throws:
Exception
-
renameFile
public void renameFile(URI from, URI to) throws Exception
- Specified by:
renameFilein interfaceWorkspaceMgr- Throws:
Exception
-
resolveUri
public URI resolveUri(URI uri)
- Specified by:
resolveUriin interfaceWorkspaceMgr
-
-