Class RegistrarSettingsAction
java.lang.Object
google.registry.ui.server.registrar.RegistrarSettingsAction
- All Implemented Interfaces:
JsonActionRunner.JsonAction
,Runnable
public class RegistrarSettingsAction
extends Object
implements Runnable, JsonActionRunner.JsonAction
Admin servlet that allows creating or updating a registrar. Deletes are not allowed so as to
preserve history.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkContactRequirements
(com.google.common.collect.ImmutableSet<RegistrarPoc> existingContacts, com.google.common.collect.ImmutableSet<RegistrarPoc> updatedContacts) Enforces business logic checks on registrar contacts.handleJsonRequest
(Map<String, ?> input) Handles JSON HTTP request.static com.google.common.collect.ImmutableSet
<RegistrarPoc> readContacts
(Registrar registrar, com.google.common.collect.ImmutableSet<RegistrarPoc> existingContacts, Map<String, ?> args) Reads the contacts from the supplied args.void
run()
static void
static void
-
Field Details
-
PATH
- See Also:
-
-
Method Details
-
setIsInTestDriverToFalse
public static void setIsInTestDriverToFalse() -
setIsInTestDriverToTrue
public static void setIsInTestDriverToTrue() -
run
public void run() -
handleJsonRequest
Description copied from interface:JsonActionRunner.JsonAction
Handles JSON HTTP request.- Specified by:
handleJsonRequest
in interfaceJsonActionRunner.JsonAction
- Parameters:
input
- object extracted from request body- Returns:
- an arbitrary JSON object, which is never
null
-
readContacts
public static com.google.common.collect.ImmutableSet<RegistrarPoc> readContacts(Registrar registrar, com.google.common.collect.ImmutableSet<RegistrarPoc> existingContacts, Map<String, ?> args) Reads the contacts from the supplied args. -
checkContactRequirements
public static void checkContactRequirements(com.google.common.collect.ImmutableSet<RegistrarPoc> existingContacts, com.google.common.collect.ImmutableSet<RegistrarPoc> updatedContacts) Enforces business logic checks on registrar contacts.- Throws:
FormException
- if the checks fail.
-