Class DomainBase

    • Field Detail


        public static final int MAX_REGISTRATION_YEARS
        The max number of years that a domain can be registered for, as set by ICANN policy.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DomainBase

        public DomainBase()
    • Method Detail

      • getSubordinateHosts

        public<java.lang.String> getSubordinateHosts()
      • getRegistrationExpirationTime

        public org.joda.time.DateTime getRegistrationExpirationTime()
      • getGracePeriods

        public<GracePeriod> getGracePeriods()
      • getSmdId

        public java.lang.String getSmdId()
      • getAutorenewEndTime

        public java.util.Optional<org.joda.time.DateTime> getAutorenewEndTime()
        Returns the autorenew end time if there is one, otherwise empty.

        Note that DateTimeUtils.END_OF_TIME is used as a sentinel value in the database representation to signify that autorenew doesn't end, and is mapped to empty here for the purposes of more legible business logic.

      • 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
      • getDomainName

        public java.lang.String getDomainName()
      • getDsData

        public<DomainDsData> getDsData()
      • getIdnTableName

        public java.lang.String getIdnTableName()
      • getNameservers

        public<VKey<Host>> getNameservers()
      • getCurrentSponsorRegistrarId

        public final java.lang.String getCurrentSponsorRegistrarId()
      • shouldPublishToDns

        public boolean shouldPublishToDns()
        Returns true if DNS information should be published for the given domain.
      • getGracePeriodStatuses

        public<GracePeriodStatus> getGracePeriodStatuses()
        Returns the Registry Grace Period Statuses for this domain.

        This collects all statuses from the domain's GracePeriod entries and also adds the PENDING_DELETE status if needed.

      • getGracePeriodsOfType

        public<GracePeriod> getGracePeriodsOfType​(GracePeriodStatus gracePeriodType)
        Returns the subset of grace periods having the specified type.
      • cloneProjectedAtTime

        public DomainBase 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
      • extendRegistrationWithCap

        public static org.joda.time.DateTime extendRegistrationWithCap​(org.joda.time.DateTime now,
                                                                       org.joda.time.DateTime currentExpirationTime,
                                                                       java.lang.Integer extendedRegistrationYears)
        Return what the expiration time would be if the given number of years were added to it.
      • loadNameserverHostNames

        public<java.lang.String> loadNameserverHostNames()
        Loads and returns the fully qualified host names of all linked nameservers.
      • getRegistrant

        public VKey<Contact> getRegistrant()
        A key to the registrant who registered this domain.
      • getAdminContact

        public VKey<Contact> getAdminContact()
      • getBillingContact

        public VKey<Contact> getBillingContact()
      • getTechContact

        public VKey<Contact> getTechContact()
      • getContacts

        public<DesignatedContact> getContacts()
        Associated contacts for the domain (other than registrant).
      • getReferencedContacts

        public<VKey<Contact>> getReferencedContacts()
        Returns all referenced contacts from this domain.
      • getTld

        public java.lang.String getTld()