transfer service : work in progress.

implementation of transfer requsite.
    API change isComplete to isSync

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21130 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2010-07-13 14:04:23 +00:00
parent eece9fef5e
commit e468ab3a4b
26 changed files with 1294 additions and 72 deletions

View File

@@ -21,6 +21,7 @@ package org.alfresco.service.cmr.transfer;
import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;
import org.alfresco.repo.transfer.TransferProgressMonitor;
import org.alfresco.service.cmr.repository.NodeRef;
@@ -77,8 +78,22 @@ public interface TransferReceiver
*/
void saveSnapshot(String transferId, InputStream snapshotStream) throws TransferException;
/**
* Save a content item
* @param transferId
* @param contentId
* @param contentStream
* @throws TransferException
*/
void saveContent(String transferId, String contentId, InputStream contentStream) throws TransferException;
/**
* Write the requsite (the bits required to support the Manifest) to the output stream.
* @param requsiteStream an open stream to receive the requisite
* @throws TransferException
*/
void generateRequsite(String transferId, OutputStream requsiteStream) throws TransferException;
/**
* Prepare
* @param transferId