Class RegistrarSettingsAction

  • All Implemented Interfaces:
    JsonActionRunner.JsonAction, java.lang.Runnable

    public class RegistrarSettingsAction
    extends java.lang.Object
    implements java.lang.Runnable, JsonActionRunner.JsonAction
    Admin servlet that allows creating or updating a registrar. Deletes are not allowed so as to preserve history.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PATH  
    • Method Detail

      • setIsInTestDriverToFalse

        public static void setIsInTestDriverToFalse()
      • setIsInTestDriverToTrue

        public static void setIsInTestDriverToTrue()
      • run

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

        public java.util.Map<java.lang.String,​java.lang.Object> handleJsonRequest​(java.util.Map<java.lang.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,
                                                                                        java.util.Map<java.lang.String,​?> args)
        Reads the contacts from the supplied args.