XAOP Labs

ActiveCMIS

ActiveCMIS is a client library in the same vein as ActiveRecord, and ActiveDCTM. It interfaces with CMIS servers through the AtomPub Rest binding of the CMIS protocol. The ActiveCMIS library documentation is automatically generated via RDoc. All code information of ActiveCMIS is available on GitHub.

Like ActiveRecord and ActiveDCTM ActiveCMIS will automatically generate Ruby objects from every type in your repository.

At the moment (April 2010) we test ActiveCMIS on Alfresco, OpenText and OpenCMIS.

At XAOP we have integrated ActiveCMIS with our content integration product MirrorNG.

To get started with ActiveCMIS you first need to install the gem

gem install active_cmis

This also installs all the dependencies. Once everything is installed you should be ready to go.

Execute the following commands in an interactive ruby shell to get a feeling for ActiveCMIS

require 'rubygems'
require 'active_cmis'

server = ActiveCMIS::Server.new("URL of your repository (atompub interface)")
server.authenticate(:basic, "your username", "your password")
p server.repositories # Shows all know repositories

repository = server.repository("your repositories id")

folder = repository.root_folder
p folder.items # Shows all documents/folders in the root folder that you have access to

p folder.attributes # Shows all attributes of the root folder

To get a more complete understanding of how to use ActiveCMIS see the overview.