Authorizer and TypedView

Posts   
 
    
rbrown
User
Posts: 36
Joined: 11-Jun-2008
# Posted on: 07-Oct-2008 22:18:57   

Is there any way to hook an authorizer up to a TypedView (and TypedList for that matter)? I have a custom authorizer I have implemented for my entities, and that is working quite nicely. However, many of our drop down lists and reports are generated based on typed views, and I'd like the ability to limit those as well. I really only need the "CanLoadEntity" type of functionality since these items are read only.

I am thinking about modifying the partial classes (or perhaps the templates) to either build a prefetch or maybe just set the .DefaultView property to limit the records that can be seen. Does this sound like a reasonable approach or is there a better way?

LLBLGen 2.6, Adapter + Manager templates, .NET 3.5

Thanks!

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 08-Oct-2008 09:11:07   

I don't know about authorizer, I guess if the property isn't there then you are out of luck. However, I'd go with adding additional arguments to filter before query is done. Limiting DefaultView doesn't seem a good option to me.