Over a million developers have joined DZone.

Prepare Your Documents: CMIS Connector Is Here!

· Integration Zone

Learn how API management supports better integration in Achieving Enterprise Agility with Microservices and API Management, brought to you in partnership with 3scale

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!

Unleash the power of your APIs with future-proof API management - Create your account and start your free trial today, brought to you in partnership with 3scale.

Topics:

Published at DZone with permission of Ross Mason, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}