Class SetUserPropertySubCommand
java.lang.Object
net.datenwerke.usermanager.ext.service.terminal.commands.SetUserPropertySubCommand
- All Implemented Interfaces:
Hook,SubCommand,TerminalCommandHook,UserModSubCommandHook
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSetUserPropertySubCommand(UserManagerService userService, UserPropertiesService userPropertiesService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAutoCompletEntries(AutocompleteHelper autocompleteHelper, TerminalSession session) booleanconsumes(CommandParser parser, TerminalSession session) execute(CommandParser parser, TerminalSession session)
-
Field Details
-
BASE_COMMAND
- See Also:
-
-
Constructor Details
-
SetUserPropertySubCommand
public SetUserPropertySubCommand(UserManagerService userService, UserPropertiesService userPropertiesService)
-
-
Method Details
-
getBaseCommand
- Specified by:
getBaseCommandin interfaceSubCommand
-
consumes
- Specified by:
consumesin interfaceTerminalCommandHook
-
execute
@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 - Specified by:
executein interfaceTerminalCommandHook- Throws:
ObjectResolverException
-
addAutoCompletEntries
- Specified by:
addAutoCompletEntriesin interfaceTerminalCommandHook
-