When using readonly and list objects, shouldn't security be built into them as well to determine if a user can read the properties? Unless I'm missing something, when I look at the readonly objects, I don't see any security checking going on like looking at a CanRead method like the editable business objects do. Was this just left out or is the security somehow else implemented for this purpose and I'm just missing it?
Thanks for your help.
I thought I looked at the base class for the readonly objects and did not see any reference to autorization rules for properties.
Also along the same lines, what if I want to do something special on the UI to hide/disable certain grid columns based on whether a user can read properties. Is there a way to do this static versus having to load the object? CanInsert, CanUpate, etc. works like this, just not sure if you can do the same from a property standpoint.
Andy,
You were correct, I just missed it. I was looking in the wrong place. What through me off a little bit was in the Project example provided, it really didn't show it in use for the read only objects. But I have now found that it does exist and would be available.
As for making it static, that is what I was thinking, but not really sure how to do it since ultimately I would have to have instances of the authorization rules and such. So I'm not sure how I would really do that. Just might be something I can't really achieve without actually making an instance and checking. Probably not a huge deal in my app, but would have been nice to try and get working like the other CanXXX() security methods without instances.
Thanks a lot for all your help. It has put me in the right direction.
Copyright (c) Marimer LLC