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