Spring Data MongoDB
  1. Spring Data MongoDB
  2. DATAMONGO-545

Add before delete and after delete events for AbstractMongoEventListener

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3 M1
    • Component/s: Repository
    • Labels:

      Description

      It would be useful in certain cases to have AbstractMongoEventListener provide onBeforeDelete(…) and onAfterDelete(…) methods so event listeners could take appropriate action.

        Issue Links

          Activity

          Hide
          Nikita Sudan added a comment -

          This feature would be super useful. Any updates on this ticket? Has this already been resolved?

          Show
          Nikita Sudan added a comment - This feature would be super useful. Any updates on this ticket? Has this already been resolved?
          Hide
          Martin Baumgartner added a comment -

          Tried to solve this, beforeDelete and AfterDelete should be called on delete, but not at removeAll.

          See: https://github.com/SpringSource/spring-data-mongodb/pull/30

          Show
          Martin Baumgartner added a comment - Tried to solve this, beforeDelete and AfterDelete should be called on delete, but not at removeAll. See: https://github.com/SpringSource/spring-data-mongodb/pull/30
          Hide
          Jason Eacott added a comment -

          this seems to be a duplicate of DATAMONGO-267

          Show
          Jason Eacott added a comment - this seems to be a duplicate of DATAMONGO-267

            People

            • Assignee:
              Oliver Gierke
              Reporter:
              Scott Rossillo
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: