O'Reilly logo

Alfresco CMIS by Martin Bergljung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing relationships between objects

CMIS supports relationships (the same thing as an association in Alfresco), and it's possible to set up a relationship via the createRelationship service call and remove a relationship via the deleteObject service call in the object service. The getObjectRelationships service call that is part of the relationship service is used to get relationships where an object is either a source or a target.

The source object in the relationship needs to have the allowable action canCreateRelationship set to true for it to be possible to set up the relationship.

Alfresco comes with a number of out of the box association/relationship types. One of them is cm:replaces. We will use this relationship type for the examples ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required