public class AddMembersSubCommand extends java.lang.Object implements GroupModSubCommandHook
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_COMMAND |
Constructor and Description |
---|
AddMembersSubCommand(UserManagerService userManagerService,
SecurityService securityService) |
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 AddMembersSubCommand(UserManagerService userManagerService, SecurityService securityService)
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="addmembers",description="commandGroupmod_sub_memberadd_description",args=@Argument(flag="c",description="commandGroupmod_sub_memberadd_cflag"),nonOptArgs={@NonOptArgument(name="group",description="commandGroupmod_sub_memberadd_arg_groupid",mandatory=true),@NonOptArgument(name="members",description="commandGroupmod_sub_memberadd_arg_members",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