Demo with Nuxeo DM Server 5.4

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
  3. Start Nuxeo DM Server like the following example:
    $ cd ./nuxeo-dm-5.4.1-tomcat/bin
    $ ./nuxeoctl console
                
  4. You can log on to http://localhost:8080/nuxeo/ with Administrator/Administrator
  5. Create a workspace and a section
  6. Also add some files into workspace and publish those into the section for tests.

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 edit /cms/src/main/resources/org/onehippo/forge/cmisreplication/cmis-replication-scheduler.properties. (Or, edit /cms/WEB-INF/classes/org/onehippo/forge/cmisreplication/cmis-replication-scheduler.properties in a deployed web app.)

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
    
    (By default, it will open a port at 8888 because the default Nexeo server will open a port at 8080.
     To change port, you may use `-Dcargo.port=9999', for example.)
               

Testing

  1. Visit http://localhost:8888/cms and http://localhost:8888/site
  2. Add some binary files (.pdf, .odt, ...) into a workspace of Nuxeo.
  3. Check if those added binary files are shown in a Hippo Repository Asset folder.
  4. Open a document in CMS and add link(s) to asset(s).
  5. 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 less than 10 seconds, 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