nightstyles / odata4j

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

Implement OData actions and functions #224

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The OData actions and functions is an interesting feature of the V3 
specification.
I have implemented so far the following features:

- Action and function metadata (IsBinding, IsAlwaysBindable IsSideEffecting)
- Actions with binding parameter (entity type)
- Functions with binding parameter (entity type)
- Function and action overload based on binding parameter
- Dynamic binding based on OEntity content and "m:IsAlwaysBindable" attribute
- Client-side support for binding parameter
- Action and functions advertising in getEntity() result
- Client side and server side support for multiple HTTP methods in functions 
and actions
- Unit tests
- Example to call service  

Unsupported features (yet):
- Overload by any function parameter type or name
- ODataVersion management needs to be improved

You can find the source code in the following repository:

https://code.google.com/r/samuelvetsch-actions/

Or in the attached patch.

Original issue reported on code.google.com by samuel.v...@gmail.com on 2 Nov 2012 at 12:48

Attachments:

GoogleCodeExporter commented 9 years ago
Some documentation on the patch:
https://www.dropbox.com/s/q2qjludg02ezyo8/OData4j-actions.md

The repo is now on BitBucket:

https://bitbucket.org/svetsch/odata4j-actions

Original comment by samuel.v...@gmail.com on 16 Nov 2012 at 9:37