Re: Programatically Setting/Filtering D2W displayPropertyKeys
Re: Programatically Setting/Filtering D2W displayPropertyKeys
- Subject: Re: Programatically Setting/Filtering D2W displayPropertyKeys
- From: Theodore Petrosky <email@hidden>
- Date: Wed, 27 Feb 2013 04:32:15 -0800 (PST)
i have done this two ways:
1. when filtering which entityNames to show I put a condition in the NavigationMenu.plist:
conditions = ("session.user.canSeeAgendas");
and b. I have keys and rules:
100 : (task = 'list' and session.user.showsHelpText = 'true') => showHeaderInstructionComponent = "true" [com.webobjects.directtoweb.BooleanAssignment]
I gave up on the idea of 'admins' and users. instead I tend to think that all users are administrators of their domain.
Ted
--- On Wed, 2/27/13, David Avendasora <email@hidden> wrote:
> From: David Avendasora <email@hidden>
> Subject: Programatically Setting/Filtering D2W displayPropertyKeys
> To: "WebObjects-Dev Mailing List List" <email@hidden>
> Date: Wednesday, February 27, 2013, 12:10 AM
> 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
> AvendasoraSenior Software
> AbuserKaiten, Inc.
>
>
>
>
>
>
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> 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
>
_______________________________________________
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