StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      


12»»

Role-Based Security and Records...Expand / Collapse
Author
Message
Posted 11/15/2006 9:40:51 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
I have a table that contains rows, obviously. Each of the rows in my table represents a different report. I would like to use role based security to manage which user has access to which report. What I'll do is fill a listview and give them the ability to select and print multiple reports at once. When I fill the listview, I'll only want it to fill it with rows(reports) that this user has access to.

I hope this makes sense.

Post #4501
Posted 11/15/2006 9:44:53 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 5:33:19 PM
Posts: 4,771, Visits: 4,735
Create a column in your table with the permission required to run the report.  Then manually test on the permission:

If SecurityBasics.CurrentUser.GetPermission("MyPermission").Action = MicroFour.StrataFrame.Security.PermissionAction.Grant Then
   '-- Run the report
End If

There is a lot of documentation about security.  If you read through it it may help you to better understand the class structure and how to manually implement security in custom situations.  Don't get me wrong, we are glad to answer any questions you have out here on the forum and these are valid questions, I just did not know if you were aware of how much security documentation that existed.

Post #4503
Posted 11/15/2006 10:37:29 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
You're saying that the column in the Reports table would contain the permissionkey and then use that permission key to look up the permission at runtime? If I had 50 records to check and then add to the listview would that cause a considerable processing lag?

When you say security documentation do you mean the Role-Based Security Help file or security documentation in general? Because I have read most of the RBS help file and very little on security in general. Everything we do is in house and not exposed to the outside world so there is little need beyond basic permissions.

Thanks. Your suggestion will help. Because what I would like to have is one central way to manage permissions and I like what RBS has to offer.

Post #4519
Posted 11/15/2006 10:52:06 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 5:33:19 PM
Posts: 4,771, Visits: 4,735
You're saying that the column in the Reports table would contain the permissionkey and then use that permission key to look up the permission at runtime?

Yes.

If I had 50 records to check and then add to the listview would that cause a considerable processing lag?

No.  These requests are scalar, so it will be fast.  If you have a problem, show all of the reports and just test the security when the end-user tries to run the report.

When you say security documentation do you mean the Role-Based Security Help file or security documentation in general?

It is the Security Help.chm file.  Attached here is the latest version in case you do no have it downloaded.

  Post Attachments 
Security Help.zip (39 views, 1.22 MB)

Post #4523
Posted 11/15/2006 12:00:07 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
Thanks Trent, you and Ben are top notch.
Post #4538
Posted 11/15/2006 12:01:56 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 5:33:19 PM
Posts: 4,771, Visits: 4,735
Thanks...we are glad to help!
Post #4539
Posted 03/15/2007 9:34:16 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
I have another question related to this topic... I have since created a maintenance for to manage this table in a run-time scenario and was wondering if there was a way I could use the Security Key Type Editor so that I could look up a key and then have it return that key name so I could insert that into the field in my table.
Post #7500
Posted 03/15/2007 12:59:19 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 5:33:19 PM
Posts: 4,771, Visits: 4,735
Yes, you can use the type editor.  It  is just a class within the MicroFOur StrataFrame Extensibility.DLL.  However, this can be used as design-time only.

The UI Type Editor class is called SecurityKeyTypeEditor.  You can also call the form directly and provide the parms which would be the SecurityKeyTypeEditorDialog.

Post #7508
Posted 03/15/2007 1:05:00 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944

So If i understand correctly, you're telling me that i can use the SecurityKeyTypeEditor but only at design time... OR i can call the SecurityKeyTypeEditorDialog and after passing a few params i could use it at run-time. Right?

Post #7511