Re: D2W conditional rules based on actor
Mark Wardle <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
I created a security manager object hanging off any EOs that need to be protected and then use a default impl of KVC so that the logic can be accessed from D2W. As such, I have rules like this: IsEntityEditable -> object.security.isEditable And the centralised security manager (that is delegated to from the EO) handles the authorisation. The rule is a delayed assignment that updates at every call B/w Mark -- Dr. Mark Wardle Consultant Neurologist, Cardiff, UK (Sent from my mobile) On 13 Oct 2012, at 16:13, Larry Mills-Gahl <[email protected]> wrote: > I am wondering if there is a way to provide a value to a rule that is based on a changing value in the session (or will rule cacheing make this a bad place for this type of choice) > > I would like to set "isEntityEditable" (and potentially other similar rule choices) based on a session value that reflects the permission structure I already have in place. So, instead of setting the rule for an entity to "true" or "false", Little Paranoid Larry wants to set: > 40 : *true* => isEntityDeletable = "false" [com.webobjects.directtoweb.BooleanAssignment] > > and then set something like > > 100: entity.name = "MyEntity" = "session.getActor.canEditMyEntity" [er.directtoweb.assignments.delayed.ERDDelayedBooleanAssignment] > > > Is that possible? I don't have it working yet and I'm wondering if I'm on a path that will lead nowhere or if I'm just not worthy yet of the depths of D2W... > > > Larry > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > Wonder-disc mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wonder-disc ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Wonder-disc mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wonder-disc