Over a million developers have joined DZone.
Platinum Partner

Prepare Your Documents: CMIS Connector Is Here!

· Integration Zone

The Integration Zone is brought to you in partnership with 3scale. Discover why Rails + jspm >= ECMAScript 6 awesomeness.

Originally posted by Andres Bressi

CMIS is an open standard that allows different systems to inter-operate over the Internet. Specifically, CMIS defines an abstraction layer for controlling diverse document management systems and repositories using web protocols.

Getting the CMIS Connector

It’s really easy to start using this connector thanks to Mule Studio update site. To install it:

  • Go to the menu Help -> Install new software
  • Enter: http://repository.mulesoft.org/connectors/releases
  • Select the CMIS Cloud Connector available in the Community group

Once you have followed the process and downloaded the Studio plugin the component will be visible on the Cloud Connectors toolbar.

If you’re not using Mule Studio you can use it with Apache Maven using this guide.

Ok, now lets integrate

What operations does the connector provide you? Let’s have a quick look at some of them. By the way, I’m going to give you the XML snippets rather than the graphical view so that you can just paste them into the XML view of your flow (XML view is available on the bottom tabs of a flow).

First create a new project and you’ll be presented with a blank flow.

Create a Document

Imagine you want to create a document in a CMIS repository. No problem, you can do it with the following example:

A file name, a destination repository folder path, a mime type, an object type, a versioning state and the content ref. Your file will be available in the selected CMIS repository.

Create a Folder

OF course, creating a folder with this connector is pretty straightforward:

The Rest

The other available operations are:

  • Query
  • Create Relationship
  • And much more

To Learn More

You can access the source code on our GitHub repository where you can also find the documentation pages and for those who want to go further there is a bonus track:

Hope you enjoy this cloud connector and please don’t hesitate to leave your comments and questions. See you next time!

The Integration Zone is brought to you in partnership with 3scale. Learn how to deploy an NGINX API gateway on Heroku.


Published at DZone with permission of Ross Mason , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}