public interface CommandLineExecutorService
Modifier and Type | Field and Description |
---|---|
static Pattern |
VALID_PARAMETER_PATTERN |
static Pattern |
VALID_PARAMETER_PATTERN_WIN |
Modifier and Type | Method and Description |
---|---|
void |
checkParameter(String parameter)
Checks if the given
parameter is valid to be used in a command. |
ExecResult |
execCommand(String commandName,
CmdParameters params) |
List<String> |
getAvailableCommands() |
CommandAvailability |
getCommandAvailability(String commandName) |
List<String> |
getRegistredCommands() |
boolean |
isValidParameter(String parameter)
Returns true if the given
parameter is valid to be used in a command. |
static final Pattern VALID_PARAMETER_PATTERN
static final Pattern VALID_PARAMETER_PATTERN_WIN
CommandAvailability getCommandAvailability(String commandName)
ExecResult execCommand(String commandName, CmdParameters params) throws CommandNotAvailable
CommandNotAvailable
boolean isValidParameter(String parameter)
parameter
is valid to be used in a command.void checkParameter(String parameter)
parameter
is valid to be used in a command.
If not, throws an IllegalArgumentException
.
Copyright © 2015 Nuxeo SA. All rights reserved.