<role>在内容模型中的关联定义中的用途是什么?</role>

时间:2013-08-10 15:38:06

标签: alfresco alfresco-share content-model

我在人物模型中注意到了这一点(第一次没有拿起它):

 <associations>
    <association name="cm:avatar">
       <source>
          <role>cm:avatarOf</role> <!-- What is the purpose of this?? -->
          <mandatory>false</mandatory>
          <many>false</many>
       </source>
       <target>
          <class>cm:content</class>
          <role>cm:hasAvatar</role>
          <mandatory>false</mandatory>
          <many>false</many>
       </target>
    </association>
 </associations>

我正在为我自己的模型复制这个关联,并且想知道这个元素在关联中的重要性。

1 个答案:

答案 0 :(得分:2)

该信息仅供参考,甚至可以通过JavaScript API检索该值。 可在此处找到相关信息:https://issues.alfresco.com/jira/browse/MNT-7403