Announcement Announcement Module
Collapse
No announcement yet.
about AclEntry[] acls = aclManager.getAcls() Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • about AclEntry[] acls = aclManager.getAcls()

    I find out that the writer fixed id specially when he design the
    attribute of id for the sheet contact after my verification for days. If
    change id to another denotation, the currently return value is null when
    invoke AclEntry[] acls = aclManager.getAcls(contact).that is to say, the
    parameter name of id in "SELECT id, contact_name, email FROM contacts
    WHERE id = ? ORDER BY id" canít be changed optionally. Is it right? What
    should I do if the writer agree

  • #2
    I am not sure of your question, but the ACL services offer pluggability in developing an AclObjectIdentity interface. The only implementation is NamedEntityObjectIdentity, which is sufficient for most purposes. What you probably need to do is implement your own org.acegisecurity.acl.basic.BasicAclDao, so that you can retrieve ACL permissioning from whatever schema you wish. Your custom BasicAclDao will utilise the instance of AclObjectIdentity it is passed (which will generally be NamedEntityObjectIdentity), and then lookup that object's permissioning information from the database.

    Comment

    Working...
    X