Package google.registry.tools
Class CreateRegistrarGroupsCommand
- java.lang.Object
-
- google.registry.tools.ConfirmingCommand
-
- google.registry.tools.CreateRegistrarGroupsCommand
-
- All Implemented Interfaces:
Command
,CommandWithConnection
public class CreateRegistrarGroupsCommand extends ConfirmingCommand implements CommandWithConnection
Command to create groups in Google Groups for all contact types for a registrar.
-
-
Field Summary
-
Fields inherited from class google.registry.tools.ConfirmingCommand
errorPrintStream, printStream
-
-
Constructor Summary
Constructors Constructor Description CreateRegistrarGroupsCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
execute()
Perform the command and return a result description.protected void
init()
Initializes the command.protected java.lang.String
prompt()
Returns the optional extra confirmation prompt for the command.void
setConnection(ServiceConnection connection)
-
Methods inherited from class google.registry.tools.ConfirmingCommand
checkExecutionState, dontRunCommand, postExecute, run
-
-
-
-
Method Detail
-
setConnection
public void setConnection(ServiceConnection connection)
- Specified by:
setConnection
in interfaceCommandWithConnection
-
init
protected void init()
Description copied from class:ConfirmingCommand
Initializes the command.- Overrides:
init
in classConfirmingCommand
-
prompt
protected java.lang.String prompt()
Description copied from class:ConfirmingCommand
Returns the optional extra confirmation prompt for the command.- Overrides:
prompt
in classConfirmingCommand
-
execute
protected java.lang.String execute() throws java.io.IOException
Description copied from class:ConfirmingCommand
Perform the command and return a result description.- Specified by:
execute
in classConfirmingCommand
- Throws:
java.io.IOException
-
-