edu.internet2.middleware.grouper.app.gsh
Class hasPriv

java.lang.Object
  extended by edu.internet2.middleware.grouper.app.gsh.hasPriv

public class hasPriv
extends Object

Check if subject has privilege.

Since:
0.0.1
Version:
$Id: hasPriv.java,v 1.4 2009-11-02 03:50:51 mchyzer Exp $
Author:
blair christensen.

Constructor Summary
hasPriv()
           
 
Method Summary
static boolean invoke(bsh.Interpreter i, bsh.CallStack stack, String name, String subjId, Privilege priv)
          Check if subject has privilege.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

hasPriv

public hasPriv()
Method Detail

invoke

public static boolean invoke(bsh.Interpreter i,
                             bsh.CallStack stack,
                             String name,
                             String subjId,
                             Privilege priv)
                      throws GrouperShellException
Check if subject has privilege.

Parameters:
i - BeanShell interpreter.
stack - BeanShell call stack.
name - Check for privilege on this Group or Stem.
subjId - Check if this Subject has privilege.
priv - Check this AccessPrivilege.
Returns:
True if succeeds.
Throws:
GrouperShellException
Since:
0.0.1