public class RestoreSubCommand extends java.lang.Object implements RevSubCommandHook
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_COMMAND |
Constructor and Description |
---|
RestoreSubCommand(VersioningService versioningService,
SecurityService securityService,
EntityClonerService entityClonerService,
EntityUtils entityUtils) |
Modifier and Type | Method and Description |
---|---|
void |
addAutoCompletEntries(AutocompleteHelper autocompleteHelper,
TerminalSession session) |
boolean |
consumes(CommandParser parser,
TerminalSession session) |
CommandResult |
execute(CommandParser parser,
TerminalSession session) |
java.lang.String |
getBaseCommand() |
public static final java.lang.String BASE_COMMAND
public RestoreSubCommand(VersioningService versioningService, SecurityService securityService, EntityClonerService entityClonerService, EntityUtils entityUtils)
public java.lang.String getBaseCommand()
getBaseCommand
in interface SubCommand
public boolean consumes(CommandParser parser, TerminalSession session)
consumes
in interface TerminalCommandHook
@CliHelpMessage(messageClass=VersioningMessages.class,name="restore",description="commandRev_sub_restore_description",nonOptArgs={@NonOptArgument(name="entity",description="commandRev_sub_restore_arg1",mandatory=true),@NonOptArgument(name="revision",description="commandRev_sub_restore_arg2",mandatory=true),@NonOptArgument(name="targetLocation",description="commandRev_sub_restore_arg3",mandatory=true)}) public CommandResult execute(CommandParser parser, TerminalSession session) throws TerminalException
execute
in interface TerminalCommandHook
TerminalException
public void addAutoCompletEntries(AutocompleteHelper autocompleteHelper, TerminalSession session)
addAutoCompletEntries
in interface TerminalCommandHook