Class GrouperShell
java.lang.Object
edu.internet2.middleware.grouper.app.gsh.GrouperShell
Grouper Management Shell.
- Since:
- 0.0.1
- Version:
- $Id: GrouperShell.java,v 1.18 2009-11-02 03:50:51 mchyzer Exp $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringstatic booleanif running from GSH -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrouperShell(edu.internet2.middleware.grouper.app.gsh.CommandReader r) -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidprotected static voidprotected static Objectstatic Stringprotected static ListgetHistory(bsh.Interpreter i) protected static GrouperSessiongetSession(bsh.Interpreter i) static voidhandleFileLoadError(String command, Throwable t) protected static booleanisDebug(bsh.Interpreter i) protected static booleanisDevel(bsh.Interpreter i) protected static booleanisOurCommand(bsh.Interpreter i) protected static booleanisTimed(bsh.Interpreter i) static voidRunGrouperShell.protected voidrun()protected static voidprotected static voidsetHistory(bsh.Interpreter i, int cnt, String cmd) static voidsetOurCommand(bsh.Interpreter i, boolean b)
-
Field Details
-
NAME
- See Also:
-
runFromGsh
public static boolean runFromGshif running from GSH
-
-
Constructor Details
-
GrouperShell
protected GrouperShell(edu.internet2.middleware.grouper.app.gsh.CommandReader r) throws GrouperShellException - Throws:
GrouperShellException
-
-
Method Details
-
main
RunGrouperShell.// 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
- Parameters:
command-t-
-
getGroovyPreloadString
- Returns:
- groovy string to preload
-
error
-
error
-
get
- Throws:
bsh.EvalError
-
getHistory
- Throws:
bsh.EvalError
-
getSession
- 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
- Throws:
bsh.EvalError
-
isDevel
protected static boolean isDevel(bsh.Interpreter i) -
setHistory
- Throws:
bsh.EvalError
-
setOurCommand
public static void setOurCommand(bsh.Interpreter i, boolean b) -
run
- Throws:
GrouperShellException
-