Class Registry

    • Field Detail

      • DEFAULT_TLD_STATE

        public static final Registry.TldState DEFAULT_TLD_STATE
        Default values for all the relevant TLD parameters.
      • DEFAULT_ESCROW_ENABLED

        public static final boolean DEFAULT_ESCROW_ENABLED
        See Also:
        Constant Field Values
      • DEFAULT_ADD_GRACE_PERIOD

        public static final org.joda.time.Duration DEFAULT_ADD_GRACE_PERIOD
      • DEFAULT_AUTO_RENEW_GRACE_PERIOD

        public static final org.joda.time.Duration DEFAULT_AUTO_RENEW_GRACE_PERIOD
      • DEFAULT_REDEMPTION_GRACE_PERIOD

        public static final org.joda.time.Duration DEFAULT_REDEMPTION_GRACE_PERIOD
      • DEFAULT_RENEW_GRACE_PERIOD

        public static final org.joda.time.Duration DEFAULT_RENEW_GRACE_PERIOD
      • DEFAULT_TRANSFER_GRACE_PERIOD

        public static final org.joda.time.Duration DEFAULT_TRANSFER_GRACE_PERIOD
      • DEFAULT_AUTOMATIC_TRANSFER_LENGTH

        public static final org.joda.time.Duration DEFAULT_AUTOMATIC_TRANSFER_LENGTH
      • DEFAULT_PENDING_DELETE_LENGTH

        public static final org.joda.time.Duration DEFAULT_PENDING_DELETE_LENGTH
      • DEFAULT_ANCHOR_TENANT_ADD_GRACE_PERIOD

        public static final org.joda.time.Duration DEFAULT_ANCHOR_TENANT_ADD_GRACE_PERIOD
      • DEFAULT_CURRENCY

        public static final org.joda.money.CurrencyUnit DEFAULT_CURRENCY
      • DEFAULT_CREATE_BILLING_COST

        public static final org.joda.money.Money DEFAULT_CREATE_BILLING_COST
      • DEFAULT_EAP_BILLING_COST

        public static final org.joda.money.Money DEFAULT_EAP_BILLING_COST
      • DEFAULT_RENEW_BILLING_COST

        public static final org.joda.money.Money DEFAULT_RENEW_BILLING_COST
      • DEFAULT_RESTORE_BILLING_COST

        public static final org.joda.money.Money DEFAULT_RESTORE_BILLING_COST
      • DEFAULT_SERVER_STATUS_CHANGE_BILLING_COST

        public static final org.joda.money.Money DEFAULT_SERVER_STATUS_CHANGE_BILLING_COST
      • DEFAULT_REGISTRY_LOCK_OR_UNLOCK_BILLING_COST

        public static final org.joda.money.Money DEFAULT_REGISTRY_LOCK_OR_UNLOCK_BILLING_COST
    • Constructor Detail

      • Registry

        public Registry()
    • Method Detail

      • get

        public static Registry get​(java.lang.String tld)
        Returns the registry for a given TLD, throwing if none exists.
      • invalidateInCache

        public void invalidateInCache()
        Invalidates the cache entry.

        This is called automatically when the registry is saved. One should also call it when a registry is deleted.

      • createVKey

        public static VKey<Registry> createVKey​(java.lang.String tld)
      • createVKey

        public static VKey<Registry> createVKey​(com.googlecode.objectify.Key<Registry> key)
      • getReservedLists

        public com.google.common.collect.ImmutableSet<com.googlecode.objectify.Key<ReservedList>> getReservedLists()
        Retrieves an ImmutableSet of all ReservedLists associated with this tld.
      • getTldStr

        public java.lang.String getTldStr()
      • getRoidSuffix

        public java.lang.String getRoidSuffix()
      • getTld

        public com.google.common.net.InternetDomainName getTld()
        Retrieve the actual domain name representing the TLD for which this registry operates.
      • getTldType

        public Registry.TldType getTldType()
        Retrieve the TLD type (real or test).
      • isPdt

        public boolean isPdt​(org.joda.time.DateTime now)
        Retrieve whether this TLD is in predelegation testing.
      • getCreationTime

        public org.joda.time.DateTime getCreationTime()
      • getEscrowEnabled

        public boolean getEscrowEnabled()
      • getDnsPaused

        public boolean getDnsPaused()
      • getDriveFolderId

        public java.lang.String getDriveFolderId()
      • getAddGracePeriodLength

        public org.joda.time.Duration getAddGracePeriodLength()
      • getAutoRenewGracePeriodLength

        public org.joda.time.Duration getAutoRenewGracePeriodLength()
      • getRedemptionGracePeriodLength

        public org.joda.time.Duration getRedemptionGracePeriodLength()
      • getRenewGracePeriodLength

        public org.joda.time.Duration getRenewGracePeriodLength()
      • getTransferGracePeriodLength

        public org.joda.time.Duration getTransferGracePeriodLength()
      • getAutomaticTransferLength

        public org.joda.time.Duration getAutomaticTransferLength()
      • getPendingDeleteLength

        public org.joda.time.Duration getPendingDeleteLength()
      • getAnchorTenantAddGracePeriodLength

        public org.joda.time.Duration getAnchorTenantAddGracePeriodLength()
      • getPremiumList

        public java.util.Optional<com.googlecode.objectify.Key<PremiumList>> getPremiumList()
      • getCurrency

        public org.joda.money.CurrencyUnit getCurrency()
      • getStandardCreateCost

        public org.joda.money.Money getStandardCreateCost()
        Use PricingEngineProxy.getDomainCreateCost instead of this to find the cost for a domain create.
      • getStandardRestoreCost

        public org.joda.money.Money getStandardRestoreCost()
        Returns the add-on cost of a domain restore (the flat registry-wide fee charged in addition to one year of renewal for that name).
      • getStandardRenewCost

        public org.joda.money.Money getStandardRenewCost​(org.joda.time.DateTime now)
        Use PricingEngineProxy.getDomainRenewCost instead of this to find the cost for a domain renewal, and all derived costs (i.e. autorenews, transfers, and the per-domain part of a restore cost).
      • getServerStatusChangeCost

        public org.joda.money.Money getServerStatusChangeCost()
        Returns the cost of a server status change (i.e. lock).
      • getRegistryLockOrUnlockBillingCost

        public org.joda.money.Money getRegistryLockOrUnlockBillingCost()
        Returns the cost of a registry lock/unlock.
      • getTldStateTransitions

        public com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,​Registry.TldState> getTldStateTransitions()
      • getRenewBillingCostTransitions

        public com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,​org.joda.money.Money> getRenewBillingCostTransitions()
      • getEapFeeFor

        public Fee getEapFeeFor​(org.joda.time.DateTime now)
        Returns the EAP fee for the registry at the given time.
      • getEapFeeScheduleAsMap

        public com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,​org.joda.money.Money> getEapFeeScheduleAsMap()
      • getLordnUsername

        public java.lang.String getLordnUsername()
      • getClaimsPeriodEnd

        public org.joda.time.DateTime getClaimsPeriodEnd()
      • getPremiumPricingEngineClassName

        public java.lang.String getPremiumPricingEngineClassName()
      • getDnsWriters

        public com.google.common.collect.ImmutableSet<java.lang.String> getDnsWriters()
      • getNumDnsPublishLocks

        public int getNumDnsPublishLocks()
        Returns the number of simultaneous DNS publish operations we allow at once.
      • getAllowedRegistrantContactIds

        public com.google.common.collect.ImmutableSet<java.lang.String> getAllowedRegistrantContactIds()
      • getAllowedFullyQualifiedHostNames

        public com.google.common.collect.ImmutableSet<java.lang.String> getAllowedFullyQualifiedHostNames()