04-21-2012 05:22 AM
UserTransaction txn = transactionService.getUserTransaction();
txn.begin();
AuthenticationUtil.setRunAsUser("admin");
StreamingNodeImporterFactory streamingNodeImporterFactory = (StreamingNodeImporterFactory)ctx.getBean("streamingNodeImporterFactory");
NodeImporter nodeImporter = streamingNodeImporterFactory.getNodeImporter(new File("importdirectory"));
BulkImportParameters bulkImportParameters = new BulkImportParameters();
bulkImportParameters.setTarget(folderNode);
bulkImportParameters.setReplaceExisting(true);
bulkImportParameters.setBatchSize(40);
bulkImportParameters.setNumThreads(4);
bulkImporter.bulkImport(bulkImportParameters, nodeImporter);
txn.commit();
comment puisse l'utiliser ?04-23-2012 12:04 PM
04-23-2012 12:33 PM
04-24-2012 12:24 PM
’exécution de bulk doit se faire automatiquement sans passer par l’interface http://localhost:8080/alfresco/service/bulkfsimport
04-24-2012 02:36 PM
curl -s -L -G -w "%{http_code} %{url_effective}" -d "sourceDirectory=/Users/user/Documents/Nouveaudossier/metadata&targetPath=/Company%20Home/sites/test" http://admin:admin@localhost:8080/alfre … lkfsimport -o /dev/null
merci encore une fois
04-25-2012 04:09 AM
curl -u romain -d "sourceDirectory=…&targetPath=…" "http://server:port/alfresco/service/bulkfsimport/filesystem/initiate"
04-25-2012 07:11 AM
04-26-2012 09:21 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.