如何在alfresco中创建父/子关系模型

mznpcxlj  于 2021-06-29  发布在  Java
关注(0)|答案(1)|浏览(393)

关闭。这个问题需要更加突出重点。它目前不接受答案。
**想改进这个问题吗?**通过编辑这篇文章更新这个问题,使它只关注一个问题。

23天前关门了。
改进这个问题
我想创建两个模型在户外有父和子的关系。从子模型中,我想访问父模型的所有属性。

1rhkuytd

1rhkuytd1#

这实际上应该是微不足道的。
您的子模型需要导入父模型,这是通过子模型的xml完成的。在此之后,您将能够通过使用父模型的前缀从父模型访问属性。
例如:

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

相关问题