Class LocateCommand
java.lang.Object
net.datenwerke.rs.search.service.search.terminal.commands.LocateCommand
- All Implemented Interfaces:
Hook,TerminalCommandHook
-
Constructor Summary
ConstructorsConstructorDescriptionLocateCommand(SearchService searchService, EntityUtils entityUtils, HistoryService historyService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAutoCompletEntries(AutocompleteHelper autocompleteHelper, TerminalSession session) booleanconsumes(CommandParser parser, TerminalSession session) execute(CommandParser parser, TerminalSession session)
-
Constructor Details
-
LocateCommand
public LocateCommand(SearchService searchService, EntityUtils entityUtils, HistoryService historyService)
-
-
Method Details
-
consumes
- Specified by:
consumesin interfaceTerminalCommandHook
-
execute
@CliHelpMessage(messageClass=SearchMessages.class, name="locate", description="commandSearch_description", args=@Argument(flag="t",hasValue=true,valueName="type",description="commandSearch_tArgument"), nonOptArgs=@NonOptArgument(name="query",description="commandSearch_queryArgument",mandatory=true)) public CommandResult execute(CommandParser parser, TerminalSession session) throws TerminalException - Specified by:
executein interfaceTerminalCommandHook- Throws:
TerminalException
-
addAutoCompletEntries
- Specified by:
addAutoCompletEntriesin interfaceTerminalCommandHook
-