How to create parent/child relation model in ALfresco

121 views Asked by At

I want to create two model in alfresco having parent and child relation. From child model, i want to access all the property of parent model.

1

There are 1 answers

1
Lista On

This should be practically trivial.

Your child model needs to import the parent model, and this is done through the child model's XML. After this, you will be able to access properties from the parent model by using their prefix.

For example:

    <imports>
        <!-- Import Alfresco Dictionary Definitions -->
        <import uri="http://www.alfresco.org/model/dictionary/1.0"
                prefix="d"/>
        <!-- Import Alfresco Content Domain Model Definitions -->
        <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
        <import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>

        <!-- Import Alfresco Records Management Model Definitions -->
        <import uri="http://www.alfresco.org/model/recordsmanagement/1.0"
                prefix="rma"/>
    </imports>