New Posts New Posts RSS Feed: Property authorizations (similar to CSLA)
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Property authorizations (similar to CSLA)

 Post Reply Post Reply
Author
paul View Drop Down
Newbie
Newbie


Joined: 16-Sep-2010
Posts: 19
Post Options Post Options   Quote paul Quote  Post ReplyReply Direct Link To This Post Topic: Property authorizations (similar to CSLA)
    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?

Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post 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:


Back to Top
paul View Drop Down
Newbie
Newbie


Joined: 16-Sep-2010
Posts: 19
Post Options Post Options   Quote paul Quote  Post ReplyReply Direct Link To This Post 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? 




Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down