jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "Jsop" by ThomasMueller
Date Wed, 30 Nov 2011 08:57:18 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "Jsop" page has been changed by ThomasMueller:
http://wiki.apache.org/jackrabbit/Jsop?action=diff&rev1=15&rev2=16

  SET      ::= "^" STRING ":" ATOM | ARRAY
  REMOVE   ::= "-" STRING
  MOVE     ::= ">" STRING ":" (STRING | "{" STRING ":" STRING "}")
+ TEST     ::= "=" STRING ":" ATOM | ARRAY
  METADATA ::= "@" OBJECT
  
  // JSON
@@ -91, +92 @@

   * addNodeDiff
   * addPropertyDiff
   * setPropertyDiff
-  * moveNodeDiff
   * removeNodeDiff
   * removePropertyDiff
+  * moveNodeDiff
+  * testProperty
   * metaData
  
  A diff line can contain the information about adding nodes (possibly multiple nested nodes),
adding a property to a node, setting a property, moving a node, or removing a node or property.
There is a special metadata diff line.
@@ -132, +134 @@

  
  A property value can be any value, except for a object itself.
  
+ '''testProperty:'''
+  * = pathString: { propertyValue | null }
+ 
+ Before applying the rest of patch, the value is verified. If it does not match,
+ then the subsequent line(s) will not be applied. The exact semantics are
+ not yet defined however and will most likely be implementation specific -
+ for example it is undefined whether a mismatch will result in an exception
+ or not, and whether all following lines of the commit belong to the same
+ atomic operation or not. This addition allows to construct atomic commits.
+ 
  '''metaData:'''
   * @ object
  

Mime
View raw message