• 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: Jesse Tayler <email@hidden>
  • Date: Wed, 27 Feb 2013 00:26:52 -0500

write rules using significant keys like

session.user.role = "Admin"

or

session.user.access > 4

etc.

and you'll find D2W to be your greatest dream come true.

write low-level rules, just a handful  ---  and you'll adhere to the logic of your business purpose.

nice.




On Feb 27, 2013, at 12:10 AM, David Avendasora <email@hidden> wrote:

Hi all you D2W devs out there!

Your worst nightmare is here, and I'm using D2W for a app about to go into production!

After it's initial roll-out, one of the next features to be rolled out is to vary the attributes and relationships displayed to users based on permissions that they have.

What I'd like to do is take the keys that are defined by displayPropertyKeys in the rule file and then filter it based on which ones they have permissions to.

I have figured out a way to define and later recall which keys each users has permissions to view and/or edit, now I just need a mechanism to filter the rule-defined keys based on the currently-loggedin user's permissions.

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.

Any suggestions?

Thanks!

Dave


—————————————————————————————
WebObjects - so easy that even Dave Avendasora can do it!™
—————————————————————————————
David Avendasora
Senior Software Abuser
Kaiten, Inc.



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>)

  • Prev by Date: Re: Scaling WebObjects at the web-server/proxy level
  • Next by Date: Re: Hello World Project - Installation Development
  • Previous by thread: Programatically Setting/Filtering D2W displayPropertyKeys
  • Next by thread: Re: Programatically Setting/Filtering D2W displayPropertyKeys
  • Index(es):
    • Date
    • Thread