• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Programatically Setting/Filtering D2W displayPropertyKeys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programatically Setting/Filtering D2W displayPropertyKeys


  • Subject: Re: Programatically Setting/Filtering D2W displayPropertyKeys
  • From: Ramsey Gurley <email@hidden>
  • Date: Wed, 27 Feb 2013 17:35:56 -0700


On Feb 27, 2013, at 5:07 PM, David Avendasora wrote:


On Feb 28, 2013, at 3:00 AM, Ramsey Gurley <email@hidden> wrote:


I've looked at a couple ways, but I'm not sure what is the best strategy. I'm thinking creating a custom D2W Assignment subclass is the way, but I'm not sure.

If you aren't storing them, you can probably come up with a decent solution using a single assignment. It would just need some sort of permission manager object to consult. Maybe that comes from the rules or maybe a thread local.

What I was thinking of is something similar to the QueryDatasourceDelegate where you could define a delegate class that would have the logic to filter the array of displayPropertyKeys prior to them being returned by the D2WContext.

Simply create a rule that defines what delegate it should use to filter the displayPropertyKeys prior to returning them. The logic of why or how to filter is entirely up to the developer - it could be based on user preference or permissions triggering it would be controlled by the rule system.

Dave

What you've described actually exists! It's called an Assignment ;-)

Ramsey

 _______________________________________________
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

  • Follow-Ups:
    • Re: Programatically Setting/Filtering D2W displayPropertyKeys
      • From: David Avendasora <email@hidden>
References: 
 >Programatically Setting/Filtering D2W displayPropertyKeys (From: David Avendasora <email@hidden>)
 >Re: Programatically Setting/Filtering D2W displayPropertyKeys (From: Ramsey Gurley <email@hidden>)
 >Re: Programatically Setting/Filtering D2W displayPropertyKeys (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Programatically Setting/Filtering D2W displayPropertyKeys
  • Next by Date: Re: Programatically Setting/Filtering D2W displayPropertyKeys
  • Previous by thread: Re: Programatically Setting/Filtering D2W displayPropertyKeys
  • Next by thread: Re: Programatically Setting/Filtering D2W displayPropertyKeys
  • Index(es):
    • Date
    • Thread