Class GrouperShell

java.lang.Object
edu.internet2.middleware.grouper.app.gsh.GrouperShell

public class GrouperShell extends Object
Grouper Management Shell.

Since:
0.0.1
Version:
$Id: GrouperShell.java,v 1.18 2009-11-02 03:50:51 mchyzer Exp $
  • Field Details

    • NAME

      protected static final String NAME
      See Also:
    • runFromGsh

      public static boolean runFromGsh
      if running from GSH
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args)
      Run GrouperShell.
       // Launch GrouperShell in interactive mode
       % gsh.sh
      
       // Run GrouperShell script
       % gsh.sh script.gsh
       
       // Read commands from STDIN
       % gsh.sh - 
       
      Parameters:
      args -
      Since:
      0.0.1
    • handleFileLoadError

      public static void handleFileLoadError(String command, Throwable t)
      Parameters:
      command -
      t -
    • getGroovyPreloadString

      public static String getGroovyPreloadString()
      Returns:
      groovy string to preload
    • error

      protected static void error(bsh.Interpreter i, Exception e)
    • error

      protected static void error(bsh.Interpreter interpreter, Exception e, String msg)
    • get

      protected static Object get(bsh.Interpreter i, String key) throws bsh.EvalError
      Throws:
      bsh.EvalError
    • getHistory

      protected static List getHistory(bsh.Interpreter i) throws bsh.EvalError
      Throws:
      bsh.EvalError
    • getSession

      protected static GrouperSession getSession(bsh.Interpreter i) throws GrouperShellException
      Throws:
      GrouperShellException
    • isDebug

      protected static boolean isDebug(bsh.Interpreter i)
    • isOurCommand

      protected static boolean isOurCommand(bsh.Interpreter i)
    • isTimed

      protected static boolean isTimed(bsh.Interpreter i)
    • set

      protected static void set(bsh.Interpreter i, String key, Object obj) throws bsh.EvalError
      Throws:
      bsh.EvalError
    • isDevel

      protected static boolean isDevel(bsh.Interpreter i)
    • setHistory

      protected static void setHistory(bsh.Interpreter i, int cnt, String cmd) throws bsh.EvalError
      Throws:
      bsh.EvalError
    • setOurCommand

      public static void setOurCommand(bsh.Interpreter i, boolean b)
    • run

      protected void run() throws GrouperShellException
      Throws:
      GrouperShellException