Fixed benchmark folder creation algorithm.

Added ability to upload multiple files at a time.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6858 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-09-24 09:44:38 +00:00
parent 76afd86b11
commit b4ec9a4992
5 changed files with 142 additions and 20 deletions

View File

@@ -24,6 +24,7 @@
*/
package org.alfresco.service.cmr.remote;
import org.alfresco.service.cmr.model.FileInfo;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.StoreRef;
@@ -72,4 +73,15 @@ public interface LoaderRemote
* @return Returns the total number of nodes for the given ADM store
*/
public int getNodeCount(String ticket, StoreRef storeRef);
/**
* Upload multiple files to a folder.
*
* @param ticket the authentication ticket
* @param folderNodeRef the folder to upload to
* @param filenames the names of the files to upload
* @param bytes the contents of the files
* @return Returns the details of each file created
*/
public FileInfo[] uploadContent(String ticket, NodeRef folderNodeRef, String[] filenames, byte[][] bytes);
}