Alfresco 如何启用级联删除
我有一个节点与另一个节点集的子关联,我知道一旦节点被删除,子关联将以级联方式被删除 但是在我的代码中,我没有看到,我编写了一个递归函数来删除子对象,我的问题是如何启用级联删除 我的模特Alfresco 如何启用级联删除,alfresco,Alfresco,我有一个节点与另一个节点集的子关联,我知道一旦节点被删除,子关联将以级联方式被删除 但是在我的代码中,我没有看到,我编写了一个递归函数来删除子对象,我的问题是如何启用级联删除 我的模特 <description>Security Content Model</description> <author>MOHAMMED AMR</author> <version>1.0</version> <imports>
<description>Security Content Model</description>
<author>MOHAMMED AMR</author>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<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 uri="http://www.alfresco.org/model/user/1.0" prefix="usr"/>
</imports>
<namespaces>
<namespace uri="www.ds.alfresco.security.extension.com" prefix="sec" />
</namespaces>
<constraints>
<constraint name="sec:permissionValue" type="LIST">
<parameter name="allowedValues">
<list>
<value>READ SADER</value>
<value>WRITE SADER</value>
<value>READ WARED</value>
<value>WRITE WARED</value>
</list>
</parameter>
</constraint>
</constraints>
<types>
<type name="sec:organizationSequence">
<title>Organization Sequence</title>
<parent>cm:content</parent>
<mandatory-aspects>
<aspect>sec:sequencable</aspect>
</mandatory-aspects>
</type>
<type name="sec:positionSequence">
<title>Position Sequence</title>
<parent>cm:content</parent>
<mandatory-aspects>
<aspect>sec:sequencable</aspect>
</mandatory-aspects>
</type>
<type name="sec:position">
<title>Position</title>
<parent>cm:content</parent>
<properties>
<property name="sec:positionId">
<title>Position ID</title>
<type>d:text</type>
</property>
<property name="sec:positionName">
<title>Position Name</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="sec:positionDescription">
<title>Position Description</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="sec:parentPositionId">
<title>Position Description</title>
<type>d:int</type>
<default>0</default>
</property>
<property name="sec:permissions">
<title>Position Permission</title>
<type>d:text</type>
<multiple>true</multiple>
<constraints>
<constraint ref="sec:permissionValue" />
</constraints>
</property>
</properties>
<associations>
<child-association name="sec:suborindatesPositions">
<source>
<mandatory>true</mandatory>
<many>false</many>
</source>
<target>
<class>sec:position</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
<duplicate>false</duplicate>
<propagateTimestamps>true</propagateTimestamps>
</child-association>
</associations>
</type>
<type name="sec:organization">
<title>Organization</title>
<parent>cm:content</parent>
<properties>
<property name="sec:organizationId">
<title>Organization ID</title>
<type>d:int</type>
</property>
<property name="sec:organizationName">
<title>Organization Name</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="sec:organizationDescription">
<title>Organization Description</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="sec:rootPosition">
<title>Root Position</title>
<type>d:noderef</type>
</property>
</properties>
</type>
</types>
<aspects>
<aspect name="sec:sequencable">
<title>Capable to have sequence</title>
<parent>cm:content</parent>
<properties>
<property name="sec:sequenceId">
<title>Sequence</title>
<type>d:int</type>
</property>
<property name="sec:sequenceName">
<title>Sequence Name</title>
<type>d:text</type>
</property>
</properties>
</aspect>
<aspect name="sec:positionable">
<title>Capable to have position</title>
<properties>
<property name="sec:primaryPosition">
<title>Primary Position</title>
<type>d:noderef</type>
<multiple>false</multiple>
</property>
<property name="sec:secondaryPositions">
<title>Primary Position</title>
<type>d:noderef</type>
<multiple>true</multiple>
</property>
</properties>
</aspect>
</aspects>
安全内容模型
穆罕默德·阿姆尔
1
读萨德尔
写萨德尔
读沃德
写警告
组织顺序
cm:内容
第二节:可扣押
位置序列
cm:内容
第二节:可扣押
位置
cm:内容
职位ID
d:文本
职位名称
d:文本
真的
职位描述
d:文本
真的
职位描述
d:int
0
职位许可
d:文本
真的
真的
假的
第二节:职位
假的
真的
假的
真的
组织机构
cm:内容
组织ID
d:int
机构名称
d:文本
真的
组织描述
d:文本
真的
根位置
d:诺德雷夫
能够有顺序的
cm:内容
序列
d:int
序列名
d:文本
能够有地位
主要职位
d:诺德雷夫
假的
主要职位
d:诺德雷夫
真的
您是如何进行删除的?未被删除的节点是您删除的节点的主要子节点,还是次要子节点?(即,什么是它们的主要父节点?)请您澄清一下?对于未被删除的节点,什么是它们的主要父节点?是要删除的节点还是其他节点?i、 e.这些节点是否仍然是已删除节点的主要子节点,或者您是否创建辅助关联来链接它们??我删除与其他节点有子关联的容器节点,而容器节点已删除子关联,但子关联尚未删除。但我不知道家长的概念。