10-10-2019 02:52 PM
In this URL https://docs.alfresco.com/5.2/concepts/bulk-import-programmatically.html
There is code as shown below
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();I think there is an assumption that one must know certain things before arriving to this page.
I would like to develop a java utility to do the import with respect to our migration from Documentum.
I am trying to find what SDK to download or something along the line.
10-11-2019 08:30 AM
Consider using bulk import tool, see documentation here: https://docs.alfresco.com/5.2/concepts/Bulk-Import-Tool.html
Also look at this documentation and bulk import tool which is customized version of Alfresco's built-in mechanism: https://hub.alfresco.com/t5/alfresco-content-services-hub/bulk-importer/ba-p/289507
https://github.com/pmonks/alfresco-bulk-import
Explore our Alfresco products with the links below. Use labels to filter content by product module.