public interface RepoRemote
| Modifier and Type | Method and Description |
|---|---|
NodeRef |
createDirectory(NodeRef base,
String path)
Create a new directory.
|
OutputStream |
createFile(NodeRef base,
String path)
Create a file relative to a base node.
|
Map<String,Pair<NodeRef,Boolean>> |
getListing(NodeRef dir)
Get a listing of a directory.
|
NodeRef |
getRoot()
Get the root node of the SpacesStore repo.
|
Pair<NodeRef,Boolean> |
lookup(NodeRef base,
String path)
Lookup a node by path relative to a node.
|
InputStream |
readFile(NodeRef fileRef)
Read a file directly.
|
InputStream |
readFile(NodeRef base,
String path)
Read a file from a relative path.
|
void |
removeNode(NodeRef toRemove)
Remove a node directly.
|
void |
removeNode(NodeRef base,
String path)
Remove a node via a relative path.
|
void |
rename(NodeRef base,
String src,
String dst)
Rename a node
|
OutputStream |
writeFile(NodeRef base,
String path)
Write to an already existing file.
|
NodeRef getRoot()
Map<String,Pair<NodeRef,Boolean>> getListing(NodeRef dir)
dir - The node ref of the directory.Pair<NodeRef,Boolean> lookup(NodeRef base, String path)
base - The base node ref.path - The relative path.OutputStream createFile(NodeRef base, String path)
base - The base node ref.path - The relative path.OutputStream writeFile(NodeRef base, String path)
base - The base node ref.path - The relative path.NodeRef createDirectory(NodeRef base, String path)
base - The base node ref.path - The relative path.void removeNode(NodeRef toRemove)
toRemove - The node ref to remove.void removeNode(NodeRef base, String path)
base - The base node ref.path - The relative path.void rename(NodeRef base, String src, String dst)
base - The base node ref.src - The relative source path.dst - The relative target path.InputStream readFile(NodeRef fileRef)
fileRef - The node ref of the file.InputStream readFile(NodeRef base, String path)
base - The base node ref.path - The relative path to the file.Copyright © 2005–2020 Alfresco Software. All rights reserved.