Tuesday, February 16, 2010

New MemberLevel Security module

eXpand has a new module that make its easy to protect selected members from selected object instances.

It does the above by checking if in the current system has been granted a eXpand.ExpressApp.MemberLevelSecurity.Win.Security.ProtectRowMemberPermission with an allow Modifier.

Then it will allow you to protect selected members of an object as shown in the image

image

above I have protected (minus sign) boths phones but not the fax (plus sign). So a user that do not have permission will see

image

or for listviews

image

There is also a non object instance depented permission for use as suggested by K18110

image

So when you create a new role you have to add the following permision by default

role.AddPermission(new MemberAccessPermission(typeof (object), null, MemberOperation.Read,

                                              ObjectAccessModifier.Allow));

role.AddPermission(new MemberAccessPermission(typeof (object), null, MemberOperation.Write,

                                              ObjectAccessModifier.Allow));

if you do not use eXpand new project item VS template then you have to manually reference

eXpand.ExpressApp.MemberLevelSecurity.dll,eXpand.ExpressApp.MemberLevelSecurity.Win.dll

Subscribe to XAF feed
Subscribe to community feed

DiggIt!
blog comments powered by Disqus