public class CommandManager extends Object
Modifier and Type | Field and Description |
---|---|
static InitializeSystem |
initSys |
static ResourceBundle |
resourceBundle |
static org.forgerock.services.TransactionId |
TRANSACTION_ID |
Constructor and Description |
---|
CommandManager(Map env)
Constructs a command line manager.
|
CommandManager(String[] argv)
Constructs a command line manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addToRequestQueue(CLIRequest request)
Adds request to request queue.
|
String |
getCommandName()
Returns commandline interface name.
|
static Debug |
getDebugger()
Returns debugger.
|
List |
getDefinitionObjects()
Returns a list of definition objects.
|
Locale |
getLocale()
Returns locale object.
|
String |
getLogName()
Returns log name.
|
IOutput |
getOutputWriter()
Returns output writer.
|
String |
getProductName()
Returns product name.
|
ResourceBundle |
getResourceBundle()
Returns resource bundle.
|
SubCommand |
getSubCommand(String name)
Returns the sub command of a given name.
|
String |
getWebEnabledURL()
Returns Web enabled URL.
|
boolean |
isDebugOn()
Returns true of the CLI has debug turned on.
|
boolean |
isLogOff()
Returns
true is log is turned off. |
boolean |
isVerbose()
Returns true of the CLI has verbose set.
|
static void |
main(String[] argv)
Entry point to the engine.
|
void |
registerSSOToken(SSOToken ssoToken)
Registers Single Single On Token which will be destroyed after
CLI is done.
|
void |
serviceRequestQueue()
Services the request queue.
|
void |
setContinueFlag(boolean bContinue)
Sets/Resets the continue flag.
|
void |
setStatusFileName(String statusFileName)
Sets status file name.
|
boolean |
webEnabled()
Returns
true if command manager is created from JSP. |
public static final org.forgerock.services.TransactionId TRANSACTION_ID
public static ResourceBundle resourceBundle
public static InitializeSystem initSys
public CommandManager(Map env) throws CLIException
env
- Map of option name to values.CLIException
public CommandManager(String[] argv)
argv
- Options from the command shell.public static void main(String[] argv)
public ResourceBundle getResourceBundle()
public String getCommandName()
public void setStatusFileName(String statusFileName) throws CLIException
statusFileName
- Status file name.CLIException
- if status file cannot be created.public List getDefinitionObjects()
public boolean isLogOff()
true
is log is turned off.true
is log is turned off.public String getLogName()
public Locale getLocale()
public boolean isVerbose()
public boolean isDebugOn()
public static Debug getDebugger()
public IOutput getOutputWriter()
public SubCommand getSubCommand(String name)
name
- Name of Sub Command.public String getProductName()
public void serviceRequestQueue() throws CLIException
CLIException
- if request cannot be processed.public void setContinueFlag(boolean bContinue)
bContinue
- Continue status flag.public void addToRequestQueue(CLIRequest request)
request
- CLI Request object to be added to the queue.public String getWebEnabledURL()
public boolean webEnabled()
true
if command manager is created from JSP.true
if command manager is created from JSP.public void registerSSOToken(SSOToken ssoToken)
ssoToken
- Single Sign On Token.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.