Page 4 of 4

Re: ACL and Reflection

Posted: Wed Oct 15, 2008 9:23 am
by josh
Definitely, from the sounds of it it would wipe out most of your readability also

Re: ACL and Reflection

Posted: Thu Oct 16, 2008 5:20 pm
by VladSun
An implementation, regarding this discussion, needs your comments and criticism :)
viewtopic.php?f=50&t=89528

Re: ACL and Reflection

Posted: Wed Oct 22, 2008 8:09 am
by VladSun
jshpro2 wrote:After reading some of the suggestions you guys posted the one I like best is having each property be accessed through an object that encapsulates field specific ACL rules, I'm going to toy around with the idea of doing something like this for my applications but implementing it as a generic 'data gateway' and having the field specific ACL checks register themselves as hooks to be run pre and post property access, that inverts control and also allows more access checks to be added later besides plain vanilla ACL (in case I think of something later). Not entirely necessary per se to solve the problem but it seems to be the right thing to do to me
Any progress on that one? :)

Re: ACL and Reflection

Posted: Thu Oct 23, 2008 12:57 pm
by josh
Nope. Been wrapped up in learning TDD and reading and re-reading Martin Fowler's "Analysis Patterns".

Also it was mentioned previously the decorator should sit outside of the model. I agree. The model would have to fire the events though, to properly encapsulate your event firing logic. Also I've been without internet for a good few days *gasp*