Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-867

Domain service to automatically maintain lastUpdatedAt and lastUpdatedBy on any entity.

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: core-1.6.0
    • Fix Version/s: 1.10.0
    • Component/s: Core
    • Labels:
      None

      Description

      using ISIS-865.

      Define:
      interface Updateable {
      @Programmatic
      public void updatedBy(String userName);
      @Programmatic
      publc void updatedAt(DateTime dt);
      }

      Install a JDO StoreLifecycleListener on the PersistenceManager when request starts, call in preStore.

      Should double-check plays well with auditing service. (Should be ok, since even if this listener and Isis' global listener are called in indeterminate order, even then we only hit the auditing service just prior to committing the transaction. Until that point we are just capturing the fact that entities have been enlisted in the xactn).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: