Re-add default method for update last modified and parents.
[lgpl/argeo-commons.git] / org.argeo.jcr / src / org / argeo / jcr / JcrUtils.java
index 98dce7eb8f4cd0e460caad6dd4933b517dd7acc7..c12a60fffa6d80d5bef281095a2bc86d3437e5fa 100644 (file)
@@ -1233,6 +1233,16 @@ public class JcrUtils {
                }
        }
 
+       /**
+        * Update lastModified recursively until this parent.
+        * 
+        * @param node      the node
+        * @param untilPath the base path, null is equivalent to "/"
+        */
+       public static void updateLastModifiedAndParents(Node node, String untilPath) {
+               updateLastModifiedAndParents(node, untilPath, true);
+       }
+
        /**
         * Update lastModified recursively until this parent.
         *