|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.security.AccessController
public class AccessController
The access controller that gets checked for accessing Faban resources in secure mode. It represents the access rules for accessing Faban. Due to the ever-changing number of Faban resources, we found the java.security.acl package not very suitable for Faban access control and therefore we implement our own simplified version.
Constructor Summary | |
---|---|
AccessController()
|
Method Summary | |
---|---|
static boolean |
isKillAllowed(String cliUser,
String resource)
Checks whether the CLI user (no subject) us allowed to kill tge run. |
static boolean |
isKillAllowed(Subject user,
String resource)
Checks whether the user is allowed to kill the run. |
static boolean |
isManageAllowed(Subject user)
Checks whether the user is allowed to manage at least one benchmark. |
static boolean |
isManageAllowed(Subject user,
String resource)
Checks whether the user is allowed to manage the given benchmark. |
static boolean |
isRigManageAllowed(Subject user)
Checks whether the user is allowed to manage the rig, such as stopping or restarting run queues. |
static boolean |
isSubmitAllowed(Subject user)
Checks whether the user can submit runs in at least one of the deployed benchmarks. |
static boolean |
isSubmitAllowed(Subject user,
String resource)
Checks whether the user can submit runs for the given benchmark. |
static boolean |
isViewAllowed(Subject user)
Checks whether the user can view at least one run result. |
static boolean |
isViewAllowed(Subject user,
String resource)
Checks whether the user can view the given run result. |
static boolean |
isWriteAllowed(Subject user)
Checks whether the user is allowed to add comments to at least one run. |
static boolean |
isWriteAllowed(Subject user,
String resource)
Checks whether the user is allowed to add comments on the given run. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccessController()
Method Detail |
---|
public static boolean isSubmitAllowed(Subject user)
user
- The user in question
public static boolean isSubmitAllowed(Subject user, String resource)
user
- The user in questionresource
- The benchmark short name
public static boolean isViewAllowed(Subject user)
user
- The user in question
public static boolean isViewAllowed(Subject user, String resource)
user
- The user in questionresource
- The run id of the run
public static boolean isRigManageAllowed(Subject user)
user
- The user in question
public static boolean isManageAllowed(Subject user)
user
- The user in question
public static boolean isManageAllowed(Subject user, String resource)
user
- The user in questionresource
- The short name of the benchmark
public static boolean isWriteAllowed(Subject user)
user
- The user in question
public static boolean isWriteAllowed(Subject user, String resource)
user
- The user in questionresource
- The run id of the run
public static boolean isKillAllowed(Subject user, String resource)
user
- The user in questionresource
- The run id of the run in the queue
public static boolean isKillAllowed(String cliUser, String resource)
cliUser
- The user name of the CLI userresource
- The referenced resource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |