Package io.permazen.cli.cmd
Class SetSessionModeCommand
java.lang.Object
io.permazen.cli.cmd.AbstractCommand
io.permazen.cli.cmd.SetSessionModeCommand
- All Implemented Interfaces:
Command
-
Field Summary
Fields inherited from class io.permazen.cli.cmd.AbstractCommand
log, name, paramParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProcess command line parameters and return action.Get expanded help (typically multiple lines).Get summarized help (typically a single line).protected Parser<?>Convert parameter spec type name into aParser.Get theSessionMode(s) supported by this command.Methods inherited from class io.permazen.cli.cmd.AbstractCommand
execute, getName, getUsage
-
Constructor Details
-
SetSessionModeCommand
public SetSessionModeCommand()
-
-
Method Details
-
getHelpSummary
Description copied from class:AbstractCommandGet summarized help (typically a single line).- Specified by:
getHelpSummaryin interfaceCommand- Specified by:
getHelpSummaryin classAbstractCommand- Returns:
- one line command summary
-
getHelpDetail
Description copied from class:AbstractCommandGet expanded help (typically multiple lines).The implementation in
AbstractCommanddelegates togetHelpSummary().- Specified by:
getHelpDetailin interfaceCommand- Overrides:
getHelpDetailin classAbstractCommand- Returns:
- detailed command description
-
getSessionModes
Description copied from class:AbstractCommandGet theSessionMode(s) supported by this command.The implementation in
AbstractCommandreturns anEnumSetcontainingSessionMode.CORE_APIandSessionMode.PERMAZEN.- Specified by:
getSessionModesin interfaceCommand- Overrides:
getSessionModesin classAbstractCommand- Returns:
- set of supported
SessionModes
-
getParser
Description copied from class:AbstractCommandConvert parameter spec type name into aParser. Used for custom type names not supported byParamParser.The implementation in
AbstractCommandsupports allEncodings registered with the database, plus:objidfor an object ID of the form64e8f29755302fe1(returnsObjId)
- Overrides:
getParserin classAbstractCommand- Parameters:
typeName- parameter encoding ID or encoding ID alias- Returns:
- parser for parameters of the specified type
-
getAction
Description copied from class:AbstractCommandProcess command line parameters and return action.- Specified by:
getActionin classAbstractCommand- Parameters:
session0- CLI sessionparams- parsed parameters indexed by name- Returns:
- action to perform for the parsed command
-