public interface RepoRemote
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.service.cmr.repository.NodeRef |
createDirectory(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String path)
Create a new directory.
|
java.io.OutputStream |
createFile(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String path)
Create a file relative to a base node.
|
java.util.Map |
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 |
lookup(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String path)
Lookup a node by path relative to a node.
|
java.io.InputStream |
readFile(org.alfresco.service.cmr.repository.NodeRef fileRef)
Read a file directly.
|
java.io.InputStream |
readFile(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.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,
java.lang.String path)
Remove a node via a relative path.
|
void |
rename(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String src,
java.lang.String dst)
Rename a node
|
java.io.OutputStream |
writeFile(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String path)
Write to an already existing file.
|
org.alfresco.service.cmr.repository.NodeRef getRoot()
java.util.Map getListing(org.alfresco.service.cmr.repository.NodeRef dir)
dir - The node ref of the directory.org.alfresco.util.Pair lookup(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String path)
base - The base node ref.path - The relative path.java.io.OutputStream createFile(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String path)
base - The base node ref.path - The relative path.java.io.OutputStream writeFile(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.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,
java.lang.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,
java.lang.String path)
base - The base node ref.path - The relative path.void rename(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String src,
java.lang.String dst)
base - The base node ref.src - The relative source path.dst - The relative target path.java.io.InputStream readFile(org.alfresco.service.cmr.repository.NodeRef fileRef)
fileRef - The node ref of the file.java.io.InputStream readFile(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String path)
base - The base node ref.path - The relative path to the file.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.