[URGENT] preventing node delete with policy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 05:42 AM
Hi all,
I have a policy that automatically adds/removes associations depending on the content.
I would like to be able to block a delete of a node if it is the targetnode of such an association.
What is the best way to do this? Just throw an exception in the beforeDeleteNode() (when using BeforeDeleteNodePolicy) or use some kind of lock/permission together with the association?
Help would be greatly appreciated!
Greetz,
Toon
I have a policy that automatically adds/removes associations depending on the content.
I would like to be able to block a delete of a node if it is the targetnode of such an association.
What is the best way to do this? Just throw an exception in the beforeDeleteNode() (when using BeforeDeleteNodePolicy) or use some kind of lock/permission together with the association?
Help would be greatly appreciated!
Greetz,
Toon
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2009 11:26 AM
Do the check in beforeDeleteNode() and throw an exception.
