phdmohans / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Feature: Interceptors for requests #208

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be good to have some sort of interceptors for the incoming requests. 
This way, for example, one can listen for specific CRUD operation on specific 
entity and implement instance based security or add additional filters to a 
query.

See these articles for examples:
http://msdn.microsoft.com/en-us/library/dd744842.aspx
http://www.informit.com/articles/article.aspx?p=1715057&seqNum=7
http://weblogs.asp.net/rajbk/archive/2010/05/15/pre-filtering-and-shaping-odata-
feeds-using-wcf-data-services-and-the-entity-framework-part-1.aspx

Original issue reported on code.google.com by vanjo1...@gmail.com on 27 Aug 2012 at 6:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Could not agree more - this would be helpful for a number of reasons.

However, the JAX-RS spec does not include this facility, so we'd need 
implementation specific workarounds.  I'd worry about building core 
functionality on top of something like this, although it might be useful as an 
extension.

Original comment by john.spurlock on 27 Aug 2012 at 12:37