Class ContactBase

    • Constructor Detail

      • ContactBase

        public ContactBase()
    • Method Detail

      • getContactId

        public java.lang.String getContactId()
      • getLocalizedPostalInfo

        public PostalInfo getLocalizedPostalInfo()
      • getInternationalizedPostalInfo

        public PostalInfo getInternationalizedPostalInfo()
      • getSearchName

        public java.lang.String getSearchName()
      • getEmailAddress

        public java.lang.String getEmailAddress()
      • getDisclose

        public Disclose getDisclose()
      • getCurrentSponsorRegistrarId

        public java.lang.String getCurrentSponsorRegistrarId()
      • getForeignKey

        public java.lang.String getForeignKey()
        Description copied from class: EppResource
        Get the foreign key string for this resource.
        Specified by:
        getForeignKey in class EppResource
      • getPostalInfosAsList

        public com.google.common.collect.ImmutableList<PostalInfo> getPostalInfosAsList()
        Postal info for the contact.

        The XML marshalling expects the PostalInfo objects in a list, but we can't actually persist them directly due to legacy reasons (Objectify can't handle collections of embedded objects that themselves contain collections, and there's a list of streets inside). This method transforms the persisted format to the XML format for marshalling.

      • cloneProjectedAtTime

        public ContactBase cloneProjectedAtTime​(org.joda.time.DateTime now)
        Description copied from class: EppResource
        Return a clone of the resource with timed status values modified using the given time.
        Specified by:
        cloneProjectedAtTime in class EppResource
      • cloneContactProjectedAtTime

        protected static <T extends ContactBase> T cloneContactProjectedAtTime​(T contact,
                                                                               org.joda.time.DateTime now)
        Clones the contact (or subclass). A separate static method so that we can pass in and return a T without the compiler complaining.