Multi threaded document importer from server file system
From Nuxeo Marketplace
Its source code lives at https://github.com/nuxeo/nuxeo-platform-importer
mvn package -Dmaven.test.skip=true
And deploy the two jars from the target subfolder into the
nxserver/bundles folder of your nuxeo server (and restart).
The file importer comes as a Java library (with nuxeo runtime service) and a sample JAX-RS interface to launch, monitor and abort import jobs.
To import the folder '/home/ogrisel/Documents' into the workspace
/default-domain/workspaces/my-workspace while monitoring the import logs from a REST client use the following HTTP GET queries:
To execute those HTTP queries you can either use a browser with an active Nuxeo session (JSESSIONID cookie) or use a third party stateless HTTP client with HTTP Basic Authentication, eg with the curl command line client:
Don't forget to quote the URL if it includes special shell characters such as '&'.
You can also use the generic HTTP GUI client from the rest-client java project.
Don't forget to fill in the 'Auth' tab with your user credentials.
If you want to programmatically reuse or extend multi-threaded import on a Nuxeo repository, look at How to use Nuxeo Platform Importer Core.