Dan Haywood created ISIS-1005:
---------------------------------

             Summary: Allow users to implement an optional service to perform 
pre-commit processing
                 Key: ISIS-1005
                 URL: https://issues.apache.org/jira/browse/ISIS-1005
             Project: Isis
          Issue Type: New Feature
          Components: Core
    Affects Versions: core-1.7.0
            Reporter: Dan Haywood
            Assignee: Dan Haywood
            Priority: Minor
             Fix For: core-1.8.0


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).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to