-->
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: Filter via Interceptor?
PostPosted: Wed Apr 07, 2004 12:21 pm 
Beginner
Beginner

Joined: Wed Feb 25, 2004 6:23 pm
Posts: 39
I'm implementing security constraints on data objects using Hibernate's Interceptor interface. What I'd like is the option to filter query results according to the user's security level. In other words, if the user does not have access to the persistent object instance, then make it look like the instance doesn't even exist in the DB. A query for one user might return only 10 instances, while the same query for a more privileged user might return 100 instances. I'd like to do this somewhere where it would be completely transparent to the rest of the system, and the Interceptor seems like the logical place. However, it doesn't look like provision is made for the interceptor to veto the loading of an instance. Anyone know of an alternate solution?


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.