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 Details

  • Method Details

    • setIsInTestDriverToFalse

      public static void setIsInTestDriverToFalse()
    • setIsInTestDriverToTrue

      public static void setIsInTestDriverToTrue()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • handleJsonRequest

      public Map<String,Object> handleJsonRequest(Map<String,?> input)
      Description copied from interface: JsonActionRunner.JsonAction
      Handles JSON HTTP request.
      Specified by:
      handleJsonRequest in interface JsonActionRunner.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.