Results 1 to 2 of 2

Thread: how to combine jdo and acl.basics

  1. #1
    Join Date
    May 2005
    Posts
    13

    Default how to combine jdo and acl.basics

    hi

    i'm currently thinking about how to combine the basicacl package and jdo.
    but the object design of this package seems to be harmonizd with jdbc and designed jdo-unfriendly: Object relational frameworks should give back the programmer a more object-oriented feeling, by replacing objectidentities by the objects itself, right?:

    Code:
    public abstract class AbstractBasicAclEntry implements BasicAclEntry {
        private Object object; //instead of AclObjectIdentity aclObjectIdentity 
        private Object parent; //instead of AclObjectIdentity aclObjectParentIdentity
        private Object recipient;
        private int[] validPermissions;
        private int mask = 0;
    }
    so what would you recommend?

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

    Default

    People have written Hibernate implementations of BasicAclExtendedDao, so I'm not sure the object design is that bad.

    The reason BasicAclEntry.getAclObjectIdentity and BasicAclEntry.getAclParentObjectIdentity return an identifier Object - instead of the real domain object the BasicAclEntry represents - is because AclManager is already passed the domain object and we're only interested in its ACL information. It would be non-performant (not to mention more difficult to write BasicAclDao implementations) to require the BasicAclDao to re-retrieve the domain object.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

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