Results 1 to 2 of 2

Thread: Property based ACL?

  1. #1
    Join Date
    Feb 2005
    Posts
    2

    Default Property based ACL?

    Hi,

    I want to control read/write access to properties of POJOs depending on
    the user who created the object. For example user A creates object O and
    user A should read and write,
    user B should only read, and
    user C should neither read nor write the property P of object O.

    After reading the good written ACEGI Security manual I think about
    extending ACL security to handle property based ACL. For controling
    property read access in the view I can use some taglib (authz or my one),
    which displays nothing, the property value as text or an Html input field
    with the property value. But how to handle write control? I can imagine a
    solution for my Struts (UI) + Spring + Hibernate web app (AppFuse), but
    it doesn't fit in the nice AOP-based architecture ACEGI is using:

    The web client wants to update the POJO and sends changed values to
    the web app. In the Struts acion class the POJO is retrieved from the
    database (to keep the Hibernate references to other objects) and for
    every property a security check is performed before the value is copied
    to the POJO. This would work, but is not a nice design.

    The problem I see with intercepting the setter and getter method calls
    (like I would like to do use with ACEGI Security) to the POJO is that
    some properties would be null and this "wrong" values would be written
    to the database.

    Any suggestions how to deal with property-based access control would
    be appreciated.

    Philipp

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    I'd point you towards this thread, which discusses the pros and cons of the various solutions you have available: http://www.mail-archive.com/acegisec.../msg00702.html

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Unit testing with JOTM and JtaTransactionManager
    By lalle in forum Architecture
    Replies: 1
    Last Post: Oct 15th, 2005, 09:05 AM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  5. Replies: 2
    Last Post: May 13th, 2005, 05:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •