From version 39.1
edited by Vincent Massol
on 2019/03/23 19:59
To version 40.1
edited by Vincent Massol
on 2019/03/23 20:06
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -276,14 +276,45 @@
276 276  IF TRUE
277 277  DO traceln("remove lock for doc = [" + $this + "]")
278 278  ENDRULE
279 +
280 +RULE XWiki Get Lock
281 +CLASS XWikiDocument
282 +METHOD getLock
283 +AT ENTRY
284 +IF TRUE
285 +DO traceln("get lock for doc = [" + $this + "]")
286 +ENDRULE
279 279  {{/code}}
280 280  
289 +When you click edit and then cancel on a doc you get for example:
290 +
291 +{{code}}
292 +// Edit
293 +get lock for doc = [Sandbox.WebHome]
294 +set lock for user [XWiki.Admin], doc = [Sandbox.WebHome]
295 +get lock for doc = [Sandbox.WebHome]
296 +get lock for doc = [Sandbox.WebHome]
297 +set lock for user [XWiki.Admin], doc = [Sandbox.WebHome]
298 +
299 +// Cancel
300 +get lock for doc = [Sandbox.WebHome]
301 +remove lock for doc = [Sandbox.WebHome]
302 +{{/code}}
303 +
281 281  When you click edit and then save on a doc you get for example:
282 282  
283 283  {{code}}
307 +// Edit
308 +get lock for doc = [Sandbox.WebHome]
284 284  set lock for user [XWiki.Admin], doc = [Sandbox.WebHome]
310 +get lock for doc = [Sandbox.WebHome]
311 +get lock for doc = [Sandbox.WebHome]
285 285  set lock for user [XWiki.Admin], doc = [Sandbox.WebHome]
313 +
314 +// Save
315 +get lock for doc = [Sandbox.WebHome]
286 286  remove lock for doc = [Sandbox.WebHome]
317 +get lock for doc = [Sandbox.WebHome]
287 287  {{/code}}
288 288  
289 289  === Troubleshooting ===

Get Connected