CommandExecutorService (interface)

API

CommandExecutorService.java
interface CommandExecutorService {
  Bookmark executeCommand(SudoPolicy sudoPolicy, Command command)     (1)
  Bookmark executeCommand(SudoPolicy sudoPolicy, CommandDto commandDto, CommandOutcomeHandler outcomeHandler)
  Bookmark executeCommand(Command command)
  Bookmark executeCommand(CommandDto commandDto, CommandOutcomeHandler outcomeHandler)
}
1 executeCommand(SudoPolicy, Command)

Executes the specified command.

Members

executeCommand(SudoPolicy, Command)

Executes the specified command.

Implementation

The framework provides a default implementation of this service, o.a.i.core.runtimeservices.command.CommandExecutorServiceDefault

Usage

The CommandExecutorService domain service is provides the ability to execute a specified Command, optionally running the command with the identity of the user captured in that Command.