2016-11-10 48 views

回答

3

不确定你到底是什么,但可以将自定义行为添加到关联生命周期事件中。因此,如果你不喜欢某种特定的关联 - 或缺乏特定的关联,你可以自由地进行验证和放弃。

你可能想在http://dev.alfresco.com/resource/AlfrescoOne/5.0/PublicAPI/org/alfresco/repo/node/NodeServicePolicies.html

一个详尽的例子来检查协会的政策是在https://www.alfresco.com/blogs/lcabaceira/2015/04/07/alfresco-behaviours-and-policies/

1

可以约束对象的类型,它是在关联的源端和可以约束的类型位于关联的目标侧的对象的位置。

下面示出了目标被限制到SC的实例的示例:DOC:

<association name="sc:relatedDocuments"> 
    <title>Related Documents</title> 
    <source> 
     <mandatory>false</mandatory> 
     <many>true</many> 
    </source> 
    <target> 
     <class>sc:doc</class> 
     <mandatory>false</mandatory> 
     <many>true</many> 
    </target> 
</association> 

与其他一些系统中,露天关联并不第一类对象和不具有的特性,所以超越型的对象,无论是否需要,以及基数,都没有其他可以被约束的东西。