Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1510

Allow rollback on CancelableEvents in case of cancelling

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 10.9
    • Observation
    • None
    • Unknown

    Description

      Currently if several listeners are called on a CancelableEvent and this one is cancelled at a point, the previous listeners are never rolled-back.
      This could cause some inconsistencies in the wiki.

      We propose to add a new method in CancelableEvent interface:

      onCanceled(CancelableEvent event, Object source, Object target)
      

      that the events could implement to apply the rollback. The ObservationManager should then call those rollbacks methods in case of a cancelled, on the previously applied listener.

      Attachments

        Activity

          People

            Unassigned Unassigned
            surli Simon Urli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: