Class RegistrarContact

    • Constructor Detail

      • RegistrarContact

        public RegistrarContact()
    • Method Detail

      • typesFromCSV

        public static<RegistrarContact.Type> typesFromCSV​(java.lang.String csv)
      • typesFromStrings

        public static<RegistrarContact.Type> typesFromStrings​(java.lang.Iterable<java.lang.String> typeNames)
      • updateContacts

        public static void updateContacts​(Registrar registrar,
                                <RegistrarContact> 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.

      • getParent

        public com.googlecode.objectify.Key<Registrar> getParent()
      • 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()
      • getVisibleInWhoisAsAdmin

        public boolean getVisibleInWhoisAsAdmin()
      • getVisibleInWhoisAsTech

        public boolean getVisibleInWhoisAsTech()
      • getVisibleInDomainWhoisAsAbuse

        public boolean getVisibleInDomainWhoisAsAbuse()
      • getGaeUserId

        public java.lang.String getGaeUserId()
      • 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
         GAE-UserID: 1234567890
         Registrar-Console access: Yes
      • 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