public interface RepoRemoteTransport
Modifier and Type | Method and Description |
---|---|
void |
closeInputHandle(String ticket,
String handle)
Close a remote InputStream.
|
void |
closeOutputHandle(String ticket,
String handle)
Close a remote OutputStream.
|
org.alfresco.service.cmr.repository.NodeRef |
createDirectory(String ticket,
org.alfresco.service.cmr.repository.NodeRef base,
String path)
Create a new directory.
|
String |
createFile(String ticket,
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(String ticket,
org.alfresco.service.cmr.repository.NodeRef dir)
Get a listing of a directory.
|
org.alfresco.service.cmr.repository.NodeRef |
getRoot(String ticket)
Get the root node of the SpacesStore repo.
|
org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,Boolean> |
lookup(String ticket,
org.alfresco.service.cmr.repository.NodeRef base,
String path)
Lookup a node by path relative to a node.
|
String |
readFile(String ticket,
org.alfresco.service.cmr.repository.NodeRef fileRef)
Read a file directly.
|
String |
readFile(String ticket,
org.alfresco.service.cmr.repository.NodeRef base,
String path)
Read a file from a relative path.
|
byte[] |
readInput(String ticket,
String handle,
int count)
Read a block of bytes over the wire.
|
void |
removeNode(String ticket,
org.alfresco.service.cmr.repository.NodeRef toRemove)
Remove a node directly.
|
void |
removeNode(String ticket,
org.alfresco.service.cmr.repository.NodeRef base,
String path)
Remove a node via a relative path.
|
void |
rename(String ticket,
org.alfresco.service.cmr.repository.NodeRef base,
String src,
String dst)
Rename a node
|
String |
writeFile(String ticket,
org.alfresco.service.cmr.repository.NodeRef base,
String path)
Write to an already existing file.
|
void |
writeOutput(String ticket,
String handle,
byte[] buff,
int count)
Write a portion of a block of bytes over the wire.
|
org.alfresco.service.cmr.repository.NodeRef getRoot(String ticket)
Map<String,org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,Boolean>> getListing(String ticket, 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(String ticket, org.alfresco.service.cmr.repository.NodeRef base, String path)
base
- The base node ref.path
- The relative path.String createFile(String ticket, org.alfresco.service.cmr.repository.NodeRef base, String path)
base
- The base node ref.path
- The relative path.String writeFile(String ticket, 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(String ticket, org.alfresco.service.cmr.repository.NodeRef base, String path)
base
- The base node ref.path
- The relative path.void removeNode(String ticket, org.alfresco.service.cmr.repository.NodeRef toRemove)
toRemove
- The node ref to remove.void removeNode(String ticket, org.alfresco.service.cmr.repository.NodeRef base, String path)
base
- The base node ref.path
- The relative path.void rename(String ticket, 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.String readFile(String ticket, org.alfresco.service.cmr.repository.NodeRef fileRef)
fileRef
- The node ref of the file.String readFile(String ticket, org.alfresco.service.cmr.repository.NodeRef base, String path)
base
- The base node ref.path
- The relative path to the file.byte[] readInput(String ticket, String handle, int count)
ticket
- The authentication ticket.handle
- The remote handle.count
- The number of bytes to try to read.void writeOutput(String ticket, String handle, byte[] buff, int count)
ticket
- The authentication ticket.handle
- The remote handle.buff
- The buffer with data.count
- The number of bytes to write.void closeInputHandle(String ticket, String handle)
ticket
- The authentication ticket.handle
- The handle.Copyright © 2005–2017 Alfresco Software. All rights reserved.