You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by st...@apache.org on 2016/11/02 08:55:16 UTC

svn commit: r1767623 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/filter/OakEventFilter.java

Author: stefanegli
Date: Wed Nov  2 08:55:16 2016
New Revision: 1767623

URL: http://svn.apache.org/viewvc?rev=1767623&view=rev
Log:
OAK-5021 : javadoc of withNodeTypeAggregate adjusted with an explicit note that adding an empty string includes the own/self node

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/filter/OakEventFilter.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/filter/OakEventFilter.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/filter/OakEventFilter.java?rev=1767623&r1=1767622&r2=1767623&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/filter/OakEventFilter.java (original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/filter/OakEventFilter.java Wed Nov  2 08:55:16 2016
@@ -112,6 +112,8 @@ public abstract class OakEventFilter ext
      *            note that these nodeTypes are not mapped to oak nor validated
      * @param relativeGlobPaths
      *            glob paths that are added to the set of include paths.
+     *            To match the node with the desired node type itself, add 
+     *            an empty String ("") as one of the relativeGlobPaths too.
      *            Note that Oak's NamePathMapper is not applied to these relativeGlobPaths.
      * @return this filter with the filter change applied
      */