-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Row level access strategies with [N]Hibernate
PostPosted: Sat Apr 01, 2006 1:31 am 
Newbie

Joined: Sat Apr 01, 2006 1:23 am
Posts: 14
Good evening,

I have used Hibernate 2.1 in Java and am really excited by the availability of NHibernate. Thanks Sergey and team!

I would like to ask about strategies in existence for implementing solid row level access. E.g. I have a set of domain objects which require additional criteria in the 'WHERE' clause and/or joins in order to restrict the returned rows according to the logged-in user's privileges. E.g. a helpdesk ticket can always be modifiable by the submitter; or in a multi-tenancy system, a user can only access data in his company; etc.

I don't see a good programmatic way (unfortunately the Filter API is in Hib 3+ only) to do this. I don't want to filter on the app server, as illustrated by an old Hibernate/JAAS example; and I don't really want to pull apart HQL/criteria queries and modify them in a higher level insted. But I want to free application developers from having to always remember the dreaded row level access clauses to avoid them making mistakes.

Any pointers on a good way to do this?

Thanks all.

NAC


Hibernate version: 1.0.2

Name and version of the database you are using: SQL Server 2k


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.