fabric.common
Class AuthorizationUtil

java.lang.Object
  extended by fabric.common.AuthorizationUtil

public class AuthorizationUtil
extends java.lang.Object


Constructor Summary
AuthorizationUtil()
           
 
Method Summary
static boolean isReadPermitted(NodePrincipal principal, Store store, long labelOnum)
          Determines whether the given principal is permitted to read according to the label at the given oid.
static boolean isWritePermitted(NodePrincipal principal, Store store, long labelOnum)
          Determines whether the given principal is permitted to write according to the label at the given onum.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationUtil

public AuthorizationUtil()
Method Detail

isReadPermitted

public static boolean isReadPermitted(NodePrincipal principal,
                                      Store store,
                                      long labelOnum)
Determines whether the given principal is permitted to read according to the label at the given oid. This is run as a subtransaction of the current transaction.


isWritePermitted

public static boolean isWritePermitted(NodePrincipal principal,
                                       Store store,
                                       long labelOnum)
Determines whether the given principal is permitted to write according to the label at the given onum. This is run as a subtransaction of the current transaction.