Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 203352

Summary: Provide an extensibility hook to validate edits to resources changed by a transaction
Product: [Modeling] EMF Services Reporter: Christian Damus <give.a.damus>
Component: TransactionAssignee: Christian Damus <give.a.damus>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P1 Keywords: api, plan
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Christian Damus CLA 2007-09-13 15:40:32 EDT
Transaction API needs to provide a way for clients to register a file notification validator that will always be executed at the commit phase of a transaction (after pre-commit) and that has the ability to cause a transaction to roll-back.

This is needed to handle changes made to resources during the course of a transaction by Adapters (trigger listeners using the ResourceSetListener API can perform their own validation).

Obviously, the base Transaction API cannot actually implement workspace validate-edit, but will need to provide an additional hook in the commit phase of a Transaction.  Consider implementing a default validate-edit capability (using the appropriate workspace API) in the Workspace integration layer.
Comment 1 Christian Damus CLA 2007-10-03 17:30:37 EDT
The fix is committed to CVS HEAD (1.2 branch).
Comment 2 Christian Damus CLA 2007-10-03 18:05:45 EDT
Fixed in EMF Transaction 1.2 build I200710031719.
Comment 3 Nick Boldt CLA 2008-01-28 16:35:24 EST
Move to verified as per bug 206558.