[CONTROLLER-1243] Add DataObjectModification.getDataBefore() Created: 09/Apr/15 Updated: 10/Apr/15 Resolved: 10/Apr/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | Post-Helium |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Description |
|
Not exposing the before-state requires users to track this state themselves. The problem is most visible in the delete case, if the user needs some attributes to reconstruct keys to other structures in order to perform cleanup – they would effectively have to retain a InstanceIdentifier->data map to efficiently perform deletes. This ability already exists in DataChangeEvents, which DataObjectModification is aimed to replace. Rather than forcing everyone to duplicate data, expose the before-state, as best available. |
| Comments |
| Comment by Robert Varga [ 09/Apr/15 ] |