Print Page | Close Window

Property authorizations (similar to CSLA)

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2166
Printed Date: 07-Sep-2025 at 6:52am


Topic: Property authorizations (similar to CSLA)
Posted By: paul
Subject: Property authorizations (similar to CSLA)
Date Posted: 16-Sep-2010 at 7:12pm
I have been using CSLA for many years and we're thinking on starting a new application using DevForce. Going thru the documentation I can see many similarities with CSLA. One feature we do use heavily though is the notion of property authorizers. I am referring to the ability to allow/deny read/write roll-based permissions on object properties. Is there something like this in DevForce?




Replies:
Posted By: ting
Date Posted: 17-Sep-2010 at 3:08pm
Yes, we know Rocky quite well and DevForce shares a number of similar features with CSLA.  DevForce has a more generic mechanism called Property Interceptors that can be used to perform dynamic role-based property authorization as well as many other things.  You can read about them here:

http://drc.ideablade.com/xwiki/bin/view/Documentation/UsingPropertyInterceptors#HNamedvs.UnnamedInterceptorActions - http://drc.ideablade.com/xwiki/bin/view/Documentation/UsingPropertyInterceptors#HNamedvs.UnnamedInterceptorActions



Posted By: paul
Date Posted: 18-Sep-2010 at 9:24am
Thank you for the link. I did come across that section previously. I would like to take the concept a step further. Right now with CSLA we have the ability to check the Read/Write permissions of a property from the UI via the PropertyStatus control. For an example if the user does not have permission to write to a Business Object (BO) property we make the UI textbox read-only. If the user does not have read permission on a BO property we set the UI textbox to hidden or collapsed. 

Rocky's "Verified Answer" is the type of functionality I am looking to replicate. How can this be accomplished in DevForce Silverlight? 

   http://forums.lhotka.net/forums/t/8989.aspx - http://forums.lhotka.net/forums/t/8989.aspx





Posted By: ting
Date Posted: 20-Sep-2010 at 5:33pm

I personally don't know CSLA well, but that is a nice feature that we have been thinking about implementing.  If you specifically like the way the PropertyStatus control works, you should be able to take the source and adapt the back-end to work with DevForce.  The idea of using Element Binding to control the IsReadOnly and IsEnabled properties on the control makes a lot of sense.




Print Page | Close Window