Re: ERRest Contextual fields
Re: ERRest Contextual fields
- Subject: Re: ERRest Contextual fields
- From: Pascal Robert <email@hidden>
- Date: Fri, 04 May 2012 12:09:16 -0400
Le 2012-05-04 à 12:00, Andries Brink a écrit :
> Hello Wonder!
>
> Any ideas on getting only contextual data back based on user preferences using ERRest controllers? i.e. I want to only display a list of products that a user can transact on based on his credentials. So, User.party.products should be returned. I would imagine the place to throttle the Rest response would be in the ERXFilter inside the controller?
Key filters is only to determine which attributes and relationships are going to be send back or accepted in requests. To filter which objects they will get, you need to do the appropriate fetches based on the user.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden