Merged BRANCHES/DEV/BRIAN/FSTR to HEAD:

29575: FTR:
   - Removed obsolete package
 29576: FTR:
   - Moved config files into "org.alfresco.repo.transfer.fsr" package
 29579: FTR:
   - Simplified build process
 29590: FTR:
   - Initial pass at bringing the FTR into build process.
 29597: Commiting the 2 missing files    AbstractFileManifestProcessorBase.java and FileTransferSecondaryManifestProcessor.java
 29609: FTR:
   - Further changes to build process. Now builds a ZIP file with the correct structure.
 29610: Added reception and positioning of TransferCommons.PARAM_ROOT_FILE_TRANSFER in the FileTransferReceiver
 29614: FTR:
   - Updated svn ignore list

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29648 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Brian Remmington
2011-08-09 21:41:33 +00:00
parent bbf45a3304
commit 7e7fb817bc

View File

@@ -66,6 +66,7 @@ public class BeginTransferCommandProcessor implements CommandProcessor
String [] majorValues = req.getParameterValues(TransferCommons.PARAM_VERSION_MAJOR);
String [] minorValues = req.getParameterValues(TransferCommons.PARAM_VERSION_MINOR);
String [] revisionValues = req.getParameterValues(TransferCommons.PARAM_VERSION_REVISION);
String [] rootFileTransfer = req.getParameterValues(TransferCommons.PARAM_ROOT_FILE_TRANSFER);
String fromRepositoryId = null;
if(fromRepositoryIdValues != null && fromRepositoryIdValues.length > 0)
@@ -105,6 +106,13 @@ public class BeginTransferCommandProcessor implements CommandProcessor
TransferVersion fromVersion = new TransferVersionImpl(major, minor, revision, edition);
//set the root for the root node for the file transfer receiver
//It replaces the root node if transfers on file system
if(rootFileTransfer != null && rootFileTransfer.length > 0 )
{
receiver.setFileTransferRootNodeFileFileSystem(rootFileTransfer[0]);
}
// attempt to start the transfer
transferId = receiver.start(fromRepositoryId, transferToSelf, fromVersion);