-->
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: Virtualization: Support for filter hierarchy?
PostPosted: Tue May 03, 2005 11:52 am 
Newbie

Joined: Wed Mar 09, 2005 11:46 am
Posts: 2
Hi,

we would like to use the Hibernate 3 Virtualization feature to implement data-dependent access restrictions. These access restrictions are defined for a specific user group. For each restriction, a specific filter is defined.

=> All filters of a specific group have to be combined via AND. This is what Hibernate does if you add multiple filters - excellent.

=> A user may be in several groups. For each group, the filters must be instantiated using specific parameters. The sets of filters for each group must be combinded via OR.

Example: Think of a store selling goods of several categories in several countries.
- The user group "car_germany" is allowed to read/write goods of category "car" and country "germany".
- The user group "fruit_spain" is allowed to read/write goods of category "fruit" and country "spain".
- Mr. Smith is assigned to both groups.
The filters instantiated for Mr. Smith would look like this:
((good.category = "car") AND (good.country = "germany")) OR
((good.category = "fruit") AND (good.country = "spain"))

A general concept to realize this would be a hierarchy of filters, which can be combined via AND or via OR.

My questions: Is there a way to realize this with the current version of the Virtualization feature? If not: Is it intended to support those filter hierarchies in one of the next Hibernate releases?

Regards,
Christian


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.