Class RegistrarPoc

    • Field Detail

      • registrarId

        public java.lang.String registrarId
    • Constructor Detail

      • RegistrarPoc

        public RegistrarPoc()
    • Method Detail

      • updateContacts

        public static void updateContacts​(Registrar registrar,
                                <RegistrarPoc> contacts)
        Helper to update the contacts associated with a Registrar. This requires querying for the existing contacts, deleting existing contacts that are not part of the given contacts set, and then saving the given contacts.

        IMPORTANT NOTE: If you call this method then it is your responsibility to also persist the relevant Registrar entity with the Registrar.contactsRequireSyncing field set to true.

      • getName

        public java.lang.String getName()
      • getEmailAddress

        public java.lang.String getEmailAddress()
      • getRegistryLockEmailAddress

        public java.util.Optional<java.lang.String> getRegistryLockEmailAddress()
      • getPhoneNumber

        public java.lang.String getPhoneNumber()
      • getFaxNumber

        public java.lang.String getFaxNumber()
      • getTypes

        public<RegistrarPoc.Type> getTypes()
      • getVisibleInWhoisAsAdmin

        public boolean getVisibleInWhoisAsAdmin()
      • getVisibleInWhoisAsTech

        public boolean getVisibleInWhoisAsTech()
      • getVisibleInDomainWhoisAsAbuse

        public boolean getVisibleInDomainWhoisAsAbuse()
      • getLoginEmailAddress

        public java.lang.String getLoginEmailAddress()
      • isAllowedToSetRegistryLockPassword

        public boolean isAllowedToSetRegistryLockPassword()
      • isRegistryLockAllowed

        public boolean isRegistryLockAllowed()
      • verifyRegistryLockPassword

        public boolean verifyRegistryLockPassword​(java.lang.String registryLockPassword)
      • toStringMultilinePlainText

        public java.lang.String toStringMultilinePlainText()
        Returns a string representation that's human friendly.

        The output will look something like this:

         Some Person
         Tel: +1.2125650666
         Types: [ADMIN, WHOIS]
         Visible in WHOIS as Admin contact: Yes
         Visible in WHOIS as Technical contact: No
         Registrar-Console access: Yes
         Login Email Address: person@registry.example
      • toJsonMap

        public java.util.Map<java.lang.String,​java.lang.Object> toJsonMap()
        Description copied from interface: Jsonifiable
        Returns a JSON representation of this object.

        The returned value must not return sensitive fields, so that it may be safe to return to the client via an API response.

        Specified by:
        toJsonMap in interface Jsonifiable