Class 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
      input - object extracted from request body
      an arbitrary JSON object, which is never null
    • readContacts

      public static<RegistrarPoc> readContacts(Registrar registrar,<RegistrarPoc> existingContacts, Map<String,?> args)
      Reads the contacts from the supplied args.
    • checkContactRequirements

      public static void checkContactRequirements(<RegistrarPoc> existingContacts,<RegistrarPoc> updatedContacts)
      Enforces business logic checks on registrar contacts.
      FormException - if the checks fail.