[ 
https://issues.apache.org/jira/browse/OAK-5022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15622353#comment-15622353
 ] 

Stefan Egli commented on OAK-5022:
----------------------------------

Added main implementation 
[here|http://svn.apache.org/viewvc?rev=1767295&view=rev], this introduces:
{code}
    public abstract OakEventFilter withIncludeSubtreeOnRemove();
{code}
to the OakEventFilter and does not do a {{deleteSubtree()}} as is otherwise the 
default (ie includes the deleted node of a subtree-removal)

> add includeSubtreeOnDelete flag to OakEventFilter
> -------------------------------------------------
>
>                 Key: OAK-5022
>                 URL: https://issues.apache.org/jira/browse/OAK-5022
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: jcr
>    Affects Versions: 1.5.12
>            Reporter: Stefan Egli
>            Assignee: Stefan Egli
>
> (Originally reported as JCR-4037, but moved to Oak as a result of introducing 
> the OakEventFilter in OAK-5013. From the original description: )
> In some cases of observation it would be useful to receive events of child 
> node or properties of a parent/grandparent that was deleted. Currently (in 
> Oak at least) one only receives a deleted event for the node that was deleted 
> and none of the children.
> Suggesting to (re)introduce a flag, eg as follows to the 
> JackrabbitEventFilter:
> {code}
> boolean includeSubtreeOnRemove;
> {code}
> (Open for any better name of course)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to