Fork me on GitHub

Demo with Nuxeo DM Server 5.6

Introduction

In this demo, we will use Nuxeo DM Server as a CMIS Repository and show how to integrate it with Hippo Repository.

Install Nexeo DM Server

  1. Download Nuxeo Document Management Server at http://www.nuxeo.com/.
  2. Uncompress or install the package (e.g, ./nuxeo-cap-5.6-tomcat/).
  3. Change the default Tomcat port numbers of Nuxeo DM Server by adding the following properties in the bin/nuxeo.conf file:
    (This will be more convenient when you are running Hippo CMS on the same machine because Hippo CMS also uses 80** port numbers by default.)
    nuxeo.server.http.port=18080
    nuxeo.server.tomcat_admin.port=18005
    nuxeo.server.ajp.port=18009
                
  4. Start Nuxeo DM Server like the following example in a command line console:
    $ cd ./nuxeo-cap-5.6-tomcat/bin
    $ ./nuxeoctl console
                
  5. You can log on to http://localhost:18080/nuxeo/ with Administrator/Administrator.
    (If you meet the initial setup screen, then just choose the defaults and clicks 'Next' buttons.)

Build CMIS Replication Demo Application

  1. Check out http://forge.onehippo.org/svn/cmisreplication/cmisreplication/trunk. For example,
    $ svn checkout http://forge.onehippo.org/svn/cmisreplication/cmisreplication/trunk cmisreplication
  2. Build with `mvn clean install'
  3. Check out http://forge.onehippo.org/svn/cmisreplication/cmisreplication-demo/trunk. For example,
    $ svn checkout http://forge.onehippo.org/svn/cmisreplication/cmisreplication-demo/trunk cmisreplication-demo
  4. Build with `mvn clean install'

Configure CMIS Repository Source and HIPPO Repository Target

  1. If you want to change configurations, please navigate to '/hippo:configuration/hippo:modules/cmisreplication-scheduler-module/hippo:moduleconfig' in CMS Console and edit properties. See Installation page for detail.

Note: cmis.replication.source.rootPath should be properly set to the existing Nuxeo workspace or section path.

Start CMS and SITE Applications

  1. Start Tomcat with Cargo Plugin
    $ mvn -P cargo.run
                

Testing

  1. Create a workspace with any name. (e.g, 'testws') in Nuxeo DM Server
  2. Create a section named 'marketing'.
  3. Add some documents with file attachments into workspace and publish those into the 'marketing' section.
  4. Check if those added binary files are shown in a Hippo Repository Asset folder within about 1 minute.
  5. Open a document in CMS and add link(s) to asset(s).
  6. Search documents and assets in the SITE application.

As you can see below, you need to add a workspace to add a file.
Screenshot 1

After adding a file in a workspace, you need to publish the file to a section.
Screenshot 2

Now you can see the document you published in your workspace as shown below.
Screenshot 3

After about 1 minute, you may see the replicated documents in the specified assets folder from the Nuxeo DM Server to Hippo Repository.
Screenshot 4

Now, you can search the asset documents by the contents in your website.
Screenshot 5

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:

  • http://forge.onehippo.org/svn/cmisreplication/cmisreplication-demo/trunk/site/src/main/java/org/onehippo/forge/cmisreplication/demo/components/Search.java
  • http://forge.onehippo.org/svn/cmisreplication/cmisreplication-demo/trunk/site/src/main/webapp/WEB-INF/jsp/search/main/content.jsp

References