Row Security


Author
Message
Larry Caylor
Larry Caylor
StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)StrataFrame VIP (1.8K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K

This is sort of a combination of ‘how to’ and a possible enhancement request. I have situation where I have client case files and some of those cases need to be marked as confidential. I’d like to be able to use Role Based Security at the row level to control who can view, add, modify, or delete confidential cases.  Conceptually I can see how to do this by adding a column to the table that contains a security key. Where the possible enhancement request comes in it that it would be nice to be able to define in the object properties a security column similar to the concurrency column and have the data layer filter out rows that the user is not permitted to access.  One of the reasons for the enhancement is that even if I implement my own security checking using the added column and security classes I can’t think of how I would enforce it in the BrowseDialog, unless you guys add some hooks or I build my own dialog.  This probably raises other issues that I haven’t thought about but I’d like some input on how you might handle this.  I’m thinking that you may have run into a similar requirement in your medical applications.

 

-Larry

 

 

Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Yes, and the biggest thing to look forward to is having complile-time SQL syntax checking... because the query language becomes part of the programming language (and your C# query is then converted to an IQueriable object and run through an engine).
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
This is exciting news! When is the next major release? Maybe in the next week or so? OK, I know, silly question, but a guy can dream, can't he. Wink



I've just built my own search form (not exactly like the browse dialog, but same idea). I've also had to deal with customizing the login, so I know the context the user will access data (in my case the user is assigned a role(s) for a specific set of rows and therefore they can have one role for X set of rows and another role for Y set of rows). I'd like you to see support for this sort of condition also, where the role is based on user/rows not just rows, then also have those permissions cascade down to FK to the rows. I.e. if the user can't see a customer, they shouldn't be able to see orders by that customer either.



And now a question. Will this LINQ thingy be available in VB projects? You mention that it uses C#.
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
LINQ will be available in the next version of both C# and VB... I just mentioned C# because Larry uses C#, but it will be included in VB9 as well.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
OK, thanks for the info. Any good sites to start learning about LINQ?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search