In this demo, we will use Nuxeo DM Server as a CMIS Repository and show how to integrate it with Hippo Repository.
nuxeo.url=http://localhost:18080/nuxeo nuxeo.server.http.port=18080 nuxeo.server.tomcat_admin.port=18005 nuxeo.server.ajp.port=18009
$ cd ./nuxeo-cap-6.0-tomcat/bin $ ./nuxeoctl console
Fork me on GitHub: https://github.com/bloomreach-forge/cmis-replication.
Build the project using Maven:
$ mvn install
And, build and run the demo in the demo subfolder.
$ cd demo $ mvn clean package $ mvn -P cargo.run
Note: cmis.replication.source.rootPath should be properly set to the existing Nuxeo workspace or section path.
As you can see below, you need to add a workspace to add a file.
After adding a file in a workspace, you need to publish the file to a section.
Now you can see the document you published in your workspace as shown below.
After about 1 minute, you may see the replicated documents in the specified assets folder
from the Nuxeo DM Server to Hippo Repository.
Now, you can search the asset documents by the contents in your website.
NOTE: By default, the search component searches only non-asset documents. Also, its default template JSP page cannot deal with asset document beans. Therefore, the demo project contains custom component implementation and template JSP page to allow to search asset documents as well. See the following code for detail: