-->
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: VETO load event
PostPosted: Mon May 17, 2010 10:28 pm 
Newbie

Joined: Mon May 17, 2010 10:10 pm
Posts: 1
Hi,

I am trying to write some row level security implementation using a mix of Filters, Criteria and Events. The job cannot be done by any one layer due performance issues (Filters: subquery problem; Criteria: avoiding too many joins; Events: only for simple checks).

For the last layer, Events, I have tried 'pre-load', 'post-load' and 'load' but I am not sure how to VETO the event if I find that the object being loaded is not required. I know I can throw an exception but that, I believe, would stop the whole load process for something like a search query.

My simple goal - when user searches something, some of the records should be filtered out using a mix of all above three mechanisms.

Thanks in advance.


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.