Find a business object

Find a business object

Old forum URL: forums.lhotka.net/forums/t/9130.aspx


brannos posted on Friday, June 25, 2010

I have implemented custom security model that has the option to restrict users to certain records. The model ask for which business object (ie customer, vendor, auditor) and which record (ie the guid of the record).

I am now trying to implement the Get function. I was hoping to use the property that hold the business object name and then find the business object and load the record without using select case, but I can't figure out how to do it and if that is the best option.

Anyone have any idea if I can, how, or recommendations to do this?

brannos replied on Wednesday, June 30, 2010

Can someone please guide me on this. I am in desperate need to get this figured out.

RockfordLhotka replied on Wednesday, June 30, 2010

Do you want to use the CSLA authorization features to do this? They rely on access to the current principal object (Csla.ApplicationContext.User) and its IsInRole() method.

There is information in the Expert 2008 Business Objects book, there's an entire video in the Core 3.8 video series on this topic, and there's some information in the Security FAQ.

Copyright (c) Marimer LLC