Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1005

Allow users to implement an optional service to perform pre-commit processing ("ChangedObjectService")

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • core-1.7.0
    • 1.10.0
    • Core
    • None

    Description

      For example, Oscar's app has this code everywhere:

      public void updating()

      { this.setDateUpdated(Clock.getTimeAsDateTime().toDate()); this.setUpdatedByUser(this.domainFactoryService.currentUserName()); }

      Instead, this could be done by passing all objects enlisted in the xactn (same stuff as used by audit service) to a new service.

      This should be done immediately prior to calling auditing (so that if additional objects get dirtied by the service, then they are audited also).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              danhaywood Daniel Keir Haywood
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: