public class SetUserPropertySubCommand extends java.lang.Object implements UserModSubCommandHook
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_COMMAND |
Constructor and Description |
---|
SetUserPropertySubCommand(UserManagerService userService,
UserPropertiesService userPropertiesService) |
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 SetUserPropertySubCommand(UserManagerService userService, UserPropertiesService userPropertiesService)
public java.lang.String getBaseCommand()
getBaseCommand
in interface SubCommand
public boolean consumes(CommandParser parser, TerminalSession session)
consumes
in interface TerminalCommandHook
@CliHelpMessage(messageClass=UserManagerMessages.class,name="setproperty",description="commandUsermod_sub_setProperty_description",nonOptArgs={@NonOptArgument(name="property",description="commandUsermod_sub_setProperty_arg1",mandatory=true),@NonOptArgument(name="value",description="commandUsermod_sub_setProperty_arg2",mandatory=true),@NonOptArgument(name="users",description="commandUsermod_sub_setProperty_arg3",mandatory=true,varArgs=true)}) public CommandResult execute(CommandParser parser, TerminalSession session) throws ObjectResolverException
execute
in interface TerminalCommandHook
ObjectResolverException
public void addAutoCompletEntries(AutocompleteHelper autocompleteHelper, TerminalSession session)
addAutoCompletEntries
in interface TerminalCommandHook