Book Image

Alfresco CMIS

By : Martin Bergljung
Book Image

Alfresco CMIS

By: Martin Bergljung

Overview of this book

Table of Contents (14 chapters)
Alfresco CMIS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Managing relationships between objects


CMIS supports relationships, which is the same thing as an association in Alfresco. To set up a relationship between two objects with OpenCMIS, we first have to get the objects and then we can use the createRelationship method on the session object. In Alfresco, there are many associations defined and available out of the box. One of these associations is Copied From, and it is defined as follows in the Alfresco content model:

<aspect name="cm:copiedfrom">
    <title>Copied From</title>
    <associations>
        <association name="cm:original">
            <source>
                <mandatory>false</mandatory>
                <many>true</many>
            </source>
            <target>
                <class>cm:cmobject</class>
                <mandatory>false</mandatory>
                <many>false</many>
            </target>
         ...