|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.security.Acl
public class Acl
Acl is the encapsulation and caching of access control lists. These are represented as *.acl files in various Faban directories. The class provide several static methods for accessing the right ACLs.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Acl[] getInstances(Permission perm)
perm
- One of the Faban permissions
public static Acl getInstance(Permission perm, String resource)
perm
- The permission to checkresource
- The resource to check
public String getResource()
public boolean isEmpty()
public boolean contains(Subject user)
user
- The subject representing the logged on user
public static void merge(String[] resources, String targetResource)
resources
- The resources, usually runstargetResource
- The resource for the analysis
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |