AnsweredAssumed Answered

Restrict cascade delete

Question asked by oliviers on Aug 9, 2007
Latest reply on Sep 3, 2007 by oliviers
I have created a custom aspect with an association to Alfresco users:


<aspect name="so:testAssoc">
            <associations>
                <association name="so:persons">
                    <source>
                        <mandatory>false</mandatory>
                        <many>false</many>
                    </source>
                    <target>
                        <class>cm:person</class>
                        <mandatory>false</mandatory>
                        <many>true</many>
                    </target>
                </association>
            </associations>
</aspect>

Everything works fine, but now I want to restrict delete on user if they are referenced by this association.
Is it possible to do that in model declaration or do I have to use NodeServicePolicies?

In more general manner, is there a way to restrict cascade delete for child-association and association?

Outcomes