Class SSM
java.lang.Object
org.jpos.q2.cli.SSM
- All Implemented Interfaces:
CLICommand, CLISubSystem
CLI implementation - SSM subsystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexec(CLIContext cli, String[] strings) Executes the CLI command.String[]getCompletionPrefixes(CLIContext ctx, String[] args) Returns the command prefixes registered by this sub-system.getPrompt(CLIContext ctx, String[] args) Returns the prompt string for this sub-system.static JCESecurityModulegetSecurityModule(CLIContext cliContext) Returns theJCESecurityModulestashed in the SSM-subsystem storage.static voidsetSecurityModule(CLIContext cliContext, JCESecurityModule securityModule) Stashes aJCESecurityModulein the SSM-subsystem storage so other SSM commands can resolve it.
-
Constructor Details
-
SSM
public SSM()Default constructor; no instance state to initialise.
-
-
Method Details
-
getPrompt
Description copied from interface:CLISubSystemReturns the prompt string for this sub-system.- Specified by:
getPromptin interfaceCLISubSystem- Parameters:
ctx- the CLI contextargs- current command arguments- Returns:
- the prompt string
-
getCompletionPrefixes
Description copied from interface:CLISubSystemReturns the command prefixes registered by this sub-system.- Specified by:
getCompletionPrefixesin interfaceCLISubSystem- Parameters:
ctx- the CLI contextargs- current command arguments- Returns:
- command prefixes
-
exec
Description copied from interface:CLICommandExecutes the CLI command.- Specified by:
execin interfaceCLICommand- Parameters:
cli- the CLI contextstrings- command arguments- Throws:
Exception- on error
-
getSecurityModule
Returns theJCESecurityModulestashed in the SSM-subsystem storage.- Parameters:
cliContext- CLI context- Returns:
- the active security module, or
nullif none has been set
-
setSecurityModule
Stashes aJCESecurityModulein the SSM-subsystem storage so other SSM commands can resolve it.- Parameters:
cliContext- CLI contextsecurityModule- security module to store
-