[ 
https://issues.apache.org/jira/browse/JSPWIKI-437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18134718#comment-18134718
 ] 

Arturo Bernal commented on JSPWIKI-437:
---------------------------------------

Checked in the code of master. Page locks are taken for a whole page, 
PageManager.lockPage takes a Page and a user name, and in a test with two 
separate sessions the second editor got the editor with a warning and no 
section based lock (see my comment in JSPWIKI-107). There is no editing of 
different sections by several users at once in the code. Leaving the issue open 
as a feature request.

> Simultaneous editing of the same page by mutliple users.
> --------------------------------------------------------
>
>                 Key: JSPWIKI-437
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-437
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Editors
>    Affects Versions: 2.8
>            Reporter: Dirk Frederickx
>            Priority: Minor
>             Fix For: STRIPES/JCR-3.1
>
>
> Allow multiple user to edit different sections of the same page, 
> simulatenously.
> As a bonus, this editor could be made inline: 
> * click the [Edit] link next to a section header
> * the section is replaced by an inline editor (plain, or other)
> * when done, the editor is replaced by the rendered section.
> Need to support enhanced locking based on sections of a page.
> This feature is AJAX based:
> * AJAX call to LOCK a page section and open inline the editor
> {noformat}
> POST
> {"id":nnn,"method":"edit.lock","params":[section-id]}
> RETURN
> section-markup
> {noformat}
> * AJAX call to SAVE and keep the page Lock  (auto save -- see JSPWIKI-436]
> {noformat}
> POST
> {"id":nnn,"method":"edit.autosave","params":[section-id--or-lock-key,section-markup]}
> {noformat}
> * AJAX call to SAVE and unlock the section.
>   This should return a rendered page section.
> {noformat}
> POST
> {"id":nnn,"method":"edit.save","params":[section-id--or-lock-key,section-markup]}
> {noformat}
> * AJAX call to cancel and unlock the section.
> {noformat}
> POST
> {"id":nnn,"method":"edit.cancel","params":[section-id--or-lock-key]}
> {noformat}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to