What SDK or package to use to the bulk import

cancel
Showing results for 
Search instead for 
Did you mean: 
sepgs2004
Established Member

What SDK or package to use to the bulk import

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.

1 Reply
Moderator
Moderator

Re: What SDK or package to use to the bulk import

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 mechanismhttps://hub.alfresco.com/t5/alfresco-content-services-hub/bulk-importer/ba-p/289507

https://github.com/pmonks/alfresco-bulk-import