DM-DM tidying:

- Added NodeCrawlerFactory interface and standard implementation
 - Removed test actions from the context files
 - ensure that the temporary store node is deleted when the transfer ends
 - Added missing error messages from the transfer properties file
 - Inserted abstract NodeFinder and NodeFilter to clean those interfaces up a little

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19213 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Brian Remmington
2010-03-11 10:36:19 +00:00
parent f2b334b68a
commit 84b6373ddb
32 changed files with 442 additions and 278 deletions

View File

@@ -22,9 +22,6 @@ package org.alfresco.repo.transfer;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.WritableByteChannel;
import org.alfresco.service.cmr.repository.ContentData;
import org.alfresco.service.cmr.repository.ContentService;
@@ -95,16 +92,8 @@ public class ContentDataPart extends PartBase
{
// Get the content from the content URL and write it to out
// Can't use the following code since it closes 'out', which needs to remain open.
// AbstractContentReader.
// contentService.getRawReader(data.getContentUrl()).getContent(out);
InputStream is = contentService.getRawReader(data.getContentUrl()).getContentInputStream();
// ReadableByteChannel rbc = Channels.newChannel(is);
// WritableByteChannel wbc = Channels.newChannel(out);
try
{
byte[] tmp = new byte[4096];