public class Acl extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Subject user)
Checks whether the acl contains an identitity (a principal name) of
the given subject.
|
static Acl |
getInstance(Permission perm,
String resource)
Obtains the acl instance for the given permission and resource.
|
static Acl[] |
getInstances(Permission perm)
Obtains all acl instances for a certain permission.
|
String |
getResource()
Obtains the resource this ACL represents.
|
boolean |
isEmpty()
Checks whether the acl is empty.
|
static void |
merge(String[] resources,
String targetResource)
Merge analysis ACLs from source ACLs.
|
public static Acl[] getInstances(Permission perm)
perm
- One of the Faban permissionspublic static Acl getInstance(Permission perm, String resource)
perm
- The permission to checkresource
- The resource to checkpublic String getResource()
public boolean isEmpty()
public boolean contains(Subject user)
user
- The subject representing the logged on user