sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1764400 - /sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java
Date Wed, 12 Oct 2016 08:16:30 GMT
Author: cziegeler
Date: Wed Oct 12 08:16:30 2016
New Revision: 1764400

URL: http://svn.apache.org/viewvc?rev=1764400&view=rev
Log:
SLING-6138 : Use JcrResourceListener for observation. Add simpler constructor

Modified:
    sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java

Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java?rev=1764400&r1=1764399&r2=1764400&view=diff
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java
(original)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java
Wed Oct 12 08:16:30 2016
@@ -103,6 +103,25 @@ public class ResourceChange {
     }
 
     /**
+     * Create a new change object
+     *
+     * @param changeType The change type
+     * @param path The resource path
+     * @param isExternal {code true} if the change happened on another node
+     * @since 1.2.0 (Sling API Bundle 2.15.0)
+     */
+    public ResourceChange(final @Nonnull ChangeType changeType,
+            final @Nonnull String path,
+            final boolean isExternal) {
+        this.path = path;
+        this.changeType = changeType;
+        this.isExternal = isExternal;
+        this.addedPropertyNames = null;
+        this.changedPropertyNames = null;
+        this.removedPropertyNames = null;
+    }
+
+    /**
      * Get the resource path.
      * @return The path to the resource.
      */



Mime
View raw message