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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
execute()
Perform the command and return a result description.protected void
init()
Initializes the command.protected 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
-
Constructor Details
-
CreateRegistrarGroupsCommand
public CreateRegistrarGroupsCommand()
-
-
Method Details
-
setConnection
- Specified by:
setConnection
in interfaceCommandWithConnection
-
init
protected void init()Description copied from class:ConfirmingCommand
Initializes the command.- Overrides:
init
in classConfirmingCommand
-
prompt
Description copied from class:ConfirmingCommand
Returns the optional extra confirmation prompt for the command.- Overrides:
prompt
in classConfirmingCommand
-
execute
Description copied from class:ConfirmingCommand
Perform the command and return a result description.- Specified by:
execute
in classConfirmingCommand
- Throws:
IOException
-