Re: [xwiki-users] Recursion during deleteEvent

2015-08-08 Thread Eduard Moraru
Hi,

You can use the XWikiContext instance and set a property to signal
recursive EventListeners to not handle the deletion of the child pages.
(i.e. if the property is set in the context, do nothing, otherwise delete
the children of the currently deleted documet and set the context property).

Hope this helps,
Eduard

On Thu, Aug 6, 2015 at 11:42 AM, Peter Huisman p.huis...@ximm.nl wrote:

 Hi,

 I am looking for a solution to “automatically” delete children for a XWiki
 page using the DeleteEvent listener. Is there a way to prevent recursion
 when deleting such a child XWiki page from a Java lib?

 Thanks for your feedback,

 Peter
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Recursion during deleteEvent

2015-08-06 Thread Peter Huisman
Hi,

I am looking for a solution to “automatically” delete children for a XWiki page 
using the DeleteEvent listener. Is there a way to prevent recursion when 
deleting such a child XWiki page from a Java lib?

Thanks for your feedback,

Peter
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users