2016-11-10 47 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> 

與其他一些系統中,露天關聯並不第一類對象和不具有的特性,所以超越型的對象,無論是否需要,以及基數,都沒有其他可以被約束的東西。