| Summary: | Provide interceptors at the server-side to run validation, filtering, ... | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Thomas Schindl <tom.schindl> |
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mtaal, smcduff, stepper |
| Version: | 2.0 | Flags: | stepper:
galileo+
|
| Target Milestone: | M3 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | Power to the People | ||
|
Description
Thomas Schindl
I think for write operations (there is only one: commit) this should be easy. On the other hand we have different kinds of read access, e.g. read meta data like packages, read instance data like IStoreReader.readRevisionXyz() and read instance infos like IStoreReader.readResourceID(). Would it be enough to provide hooks for simple revision read access? I think for my purpose it is enough. The main purpose is to filter data before sending them to client because he's not allowed to see them. I've added these new interfaces: - IRepository.ReadAccessHandler - IRepository.WriteAccessHandler as well as IRepository API to add and remove handlers. org.eclipse.emf.cdo.tests.RepositoryTest contains tests/examples for such handlers. Committed to HEAD. Amazing I'll see how i can exploit this feature and give you feedback! Fix available in CDO 2.0.0 I200810091534 Generally available. |