mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user