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> ...