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 String
static boolean
if running from GSH -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GrouperShell
(edu.internet2.middleware.grouper.app.gsh.CommandReader r) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
protected static void
protected static Object
static String
protected static List
getHistory
(bsh.Interpreter i) protected static GrouperSession
getSession
(bsh.Interpreter i) static void
handleFileLoadError
(String command, Throwable t) protected static boolean
isDebug
(bsh.Interpreter i) protected static boolean
isDevel
(bsh.Interpreter i) protected static boolean
isOurCommand
(bsh.Interpreter i) protected static boolean
isTimed
(bsh.Interpreter i) static void
RunGrouperShell
.protected void
run()
protected static void
protected static void
setHistory
(bsh.Interpreter i, int cnt, String cmd) static void
setOurCommand
(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
-