<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Dynamic property level security</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Dynamic property level security</description>
  <pubDate>Fri, 17 Apr 2026 00:56:51 -700</pubDate>
  <lastBuildDate>Thu, 23 Feb 2012 11:17:53 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3273</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Dynamic property level security : Thank your for your answer!I think...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3273&amp;PID=12764#12764</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1400" rel="nofollow">Thomas</a><br /><strong>Subject:</strong> 3273<br /><strong>Posted:</strong> 23-Feb-2012 at 11:17am<br /><br />Thank your for your answer!<div><br></div><div>I think that the dynamic verifiers are not that good for my purpose as they would not be used automatically when the properties are read (so they won't work for read security). I will probably go for the dynamic property interceptors on the server and use some factory method on the client to inject custom attributes/functions into the view model for the properties that I don't want to show (so they won't get data from the server but to hide them I would add something to them).&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 11:17:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3273&amp;PID=12764#12764</guid>
  </item> 
  <item>
   <title>Dynamic property level security :  Hi Thomas,Good question. For...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3273&amp;PID=12744#12744</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 3273<br /><strong>Posted:</strong> 22-Feb-2012 at 6:20pm<br /><br />Hi Thomas,<div><br></div><div>Good question. For the properties, you could use either <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/dynamic-intercepti&#111;n" target="_blank">dynamic property interceptors</a>&nbsp;or <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/validati&#111;n-create-custom-verifier" target="_blank">dynamic verifiers</a>. You can put the setup code for this in the base class of the entities. In the implementation of the interceptors/verifiers, you would refer to your security service that checks for roles on the Thread.CurrentPrincipal, which returns your custom UserBase class that was set up on login.</div><div><br></div><div>You will probably also want to drive the UI from the security itself. So your ViewModel might also contain properties that automatically (when bound) make certain controls read-only or non-visible if the user does not have the proper permissions.</div><div><br></div><div>For methods, you could call a base class implementation that checks security first. However, you'd probably want the UI to gray out or hide the button before even getting there.</div><div><br></div><div>Managing and provisioning such fine grained access control can be quite a lot of work (separate from the code that enforces the policy), so I don't know if there are alternative strategies that may make sense to consider.</div><div><br></div><div>Our professional services team is much better equipped to handle architectural questions like this, so if you'd like more help, we can put you in touch with them and they can advise on the implementation.</div><div><br></div><span style="font-size:10px"><br /><br />Edited by ting - 22-Feb-2012 at 6:21pm</span>]]>
   </description>
   <pubDate>Wed, 22 Feb 2012 18:20:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3273&amp;PID=12744#12744</guid>
  </item> 
  <item>
   <title>Dynamic property level security : For our application we would need...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3273&amp;PID=12704#12704</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1400" rel="nofollow">Thomas</a><br /><strong>Subject:</strong> 3273<br /><strong>Posted:</strong> 21-Feb-2012 at 12:57am<br /><br />For our application we would need to have the possibility to specifiy which properties of an object a user should be able to manipulate. This information is stored in the database. The tables has the following information<div><br></div><div>* Name of the class</div><div>* Name of the property or method</div><div>* Read</div><div>* Write</div><div>* (Delete - this is only for entries that belong to to the class)</div><div>* (Execute - only for methods)</div><div><br></div><div>These access rights can be assigned to roles and roles will be assigned to users which would give me the possibility to define access perfectly.</div><div><br></div><div>I already looked into your documentation but I am not really sure what is the best way to apply this security scheme. I would prefer an approach where I only need to maintain this at a single place (maybe some kind of a global interceptor?).</div>]]>
   </description>
   <pubDate>Tue, 21 Feb 2012 00:57:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3273&amp;PID=12704#12704</guid>
  </item> 
 </channel>
</rss>