The Soft Locking module provides concurrent editing capabilities.
Multiple editors can edit pages simultaneously and coordinate their
activities within the authoring interface. Soft locking differs from JCR
hard locking in that it stores information about who is editing content
and this information is displayed as a warning to other users editing
the same page. Whereas hard locking would prevent another user from
editing the page, soft locking provides multiple-user access to content
and facilitates efficient content contribution.
Module structure
artifactID
magnolia-soft-locking-parent
Parent reactor.
magnolia-soft-locking
Main module containing the implementation as well as the integration functions for the Pages app.
magnolia-module-soft-locking
Submodule containing the Soft Locking compatibility module.
Bundled in magnolia-dx-core-webapp and used for backward compatibility.
For custom bundles, you have to add it yourself.
Installing with Maven
Maven is the easiest way to install the module.
Add the following to your bundle:
Should you need to specify the module version, do it using <version>.
Working together
The number of concurrent editors is displayed at the bottom of the page editor. Click the icon to see who is editing the same page.
If users leave the page or new users start editing the page, the icon showing currently active users is updated accordingly.
Additionally, notification messages are displayed in certain situations:
When another user saves their changes.
If the page is moved.
If the page is deleted.
When multiple people edit the same dialog simultaneously, the last change made by any editor overrides all previous changes.
For example, Jane and Eric open a dialog to update page content, making changes concurrently.
Jane is the last person to save changes, so her changes overwrite those from Eric.