Two proposals on ACLs.  Both straightforward, but I don't know if my
employer would be happy with me sending actual patches.

 

1)     AclImpl#isGranted() should use Permission#equals(Object) instead
of explicitly comparing bit masks.  The latter quietly ties the standard
impl to specific Permission classes.

 

2)     There can be an additional standard Permission, one that contains
both a bit mask and a class (or classname).  BasePermission gives you a
set of global permissions, this new permission gives you a set of
per-class permissions.  Our project requires more than 32 permissions,
but no individual class should ever require close to that number.

 

Bear

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to