-->
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: Hierarchical ACLs (Access Control Lists)
PostPosted: Wed Jan 05, 2005 5:49 am 
Newbie

Joined: Wed Jan 05, 2005 4:59 am
Posts: 5
Location: Stockholm, Sweden
Hibernate version: 2.1.6

I've been scratching my head for some time now trying to implement some kind of "hierarchical ACL" to define permissions between persistent objects of different kinds.

Among others, I have the following entities:

  • Profiler - logged in user
  • Profilee - person beeing profiled
  • Profile - single profile created by a Profiler on a Profilee

The implementation must handle the following:
  • A Profiler X can only see Profilees that he/she has "read" access to - either directly or via a Profiler Y to which Profiler X has "read" access to, and which in turn has "read" access to the Profilees.
  • A Profiler X can only modify Profilees that he/she has "write" access to - either directly or via a Profiler Y to which Profiler X has "write" access to, and which in turn has "write" access to the Profilees.
  • A Profiler can only see Profiles that he/she has "read" access to - either directly or via Profilers/Profilees he/she has "read" access to.
  • A Profiler can only modify Profiles that he/she has "read" access to - either directly or via Profilers/Profilees he/she has "read" access to.


How should I map those objects together? And even more delicate: How do I define the HQL for retrieving the readable/writable Profilees/Profiles for a given Profiler?


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.