public class SparseACL extends SidACL
| Modifier and Type | Class and Description |
|---|---|
static class |
SparseACL.Entry |
ANONYMOUS, ANONYMOUS_USERNAME, AUTOMATIC_SIDS, EVERYONE, SYSTEM, SYSTEM_USERNAME| Modifier and Type | Method and Description |
|---|---|
void |
add(org.acegisecurity.acls.sid.Sid sid,
Permission permission,
boolean allowed) |
void |
add(SparseACL.Entry e) |
boolean |
hasPermission(org.acegisecurity.Authentication a,
Permission permission)
Checks if the given principle has the given permission.
|
protected Boolean |
hasPermission(org.acegisecurity.acls.sid.Sid p,
Permission permission)
Checks if the given
Sid has the given Permission. |
_hasPermission, newInheritingACL, toStringcheckCreatePermission, checkPermission, hasCreatePermission, hasPermission, impersonate, impersonate, impersonatepublic SparseACL(ACL parent)
public void add(SparseACL.Entry e)
public void add(org.acegisecurity.acls.sid.Sid sid,
Permission permission,
boolean allowed)
public boolean hasPermission(org.acegisecurity.Authentication a,
Permission permission)
ACL
Note that ACL.SYSTEM can be passed in as the authentication parameter,
in which case you should probably just assume it has every permission.
hasPermission in class SidACLprotected Boolean hasPermission(org.acegisecurity.acls.sid.Sid p, Permission permission)
SidACLSid has the given Permission.
SidACL.hasPermission(Authentication, Permission) is implemented
by checking authentication's GrantedAuthority by using
this method.
It is the implementor's responsibility to recognize Permission.impliedBy
and take that into account.
hasPermission in class SidACLCopyright © 2019. All rights reserved.