Class DomainTransferUtils


  • public final class DomainTransferUtils
    extends java.lang.Object
    Utility logic for facilitating domain transfers.
    • Method Detail

      • createTransferServerApproveEntities

        public static com.google.common.collect.ImmutableSet<TransferData.TransferServerApproveEntity> createTransferServerApproveEntities​(org.joda.time.DateTime automaticTransferTime,
                                                                                                                                           org.joda.time.DateTime serverApproveNewExpirationTime,
                                                                                                                                           com.googlecode.objectify.Key<DomainHistory> domainHistoryKey,
                                                                                                                                           DomainBase existingDomain,
                                                                                                                                           Trid trid,
                                                                                                                                           java.lang.String gainingClientId,
                                                                                                                                           java.util.Optional<org.joda.money.Money> transferCost,
                                                                                                                                           org.joda.time.DateTime now)
        Returns a set of entities created speculatively in anticipation of a server approval.

        This set consists of:

        • The one-time billing event charging the gaining registrar for the transfer
        • A cancellation of an autorenew charge for the losing registrar, if the autorenew grace period will apply at transfer time
        • A new post-transfer autorenew billing event for the domain (and gaining registrar)
        • A new post-transfer autorenew poll message for the domain (and gaining registrar)
        • A poll message for the gaining registrar
        • A poll message for the losing registrar
      • createGainingTransferPollMessage

        public static PollMessage createGainingTransferPollMessage​(java.lang.String targetId,
                                                                   TransferData transferData,
                                                                   @Nullable
                                                                   org.joda.time.DateTime extendedRegistrationExpirationTime,
                                                                   org.joda.time.DateTime now,
                                                                   com.googlecode.objectify.Key<DomainHistory> domainHistoryKey)
        Create a poll message for the gaining client in a transfer.
      • createLosingTransferPollMessage

        public static PollMessage createLosingTransferPollMessage​(java.lang.String targetId,
                                                                  TransferData transferData,
                                                                  @Nullable
                                                                  org.joda.time.DateTime extendedRegistrationExpirationTime,
                                                                  com.googlecode.objectify.Key<DomainHistory> domainHistoryKey)
        Create a poll message for the losing client in a transfer.