-
Dec 31st, 2005, 01:32 AM
#1
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
-
Jan 25th, 2006, 06:08 PM
#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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules