google-nomulus/java/google/registry/batch
nickfelt fd62f4a74e Streamline transfer resolving helpers in ResourceFlowUtils
In the great flow flattening, ResourceFlowUtils grew a couple nice helpers
for rebuilding transferrable resources (Domains and Contacts) upon the
resolution of a transfer - approvePendingTransfer() and denyPendingTransfer().

Most transfer-resolving callsites use one of these two helpers, but for legacy
reasons the deletion flows (DomainDeleteFlow and DeleteContactsAndHostsAction)
were instead using the "manual" resolvePendingTransfer() method or its even more
low-level createResolvedTransferData() helper instead of denyPendingTransfer().
It's simpler to just have two options - approve and deny - so this CL inlines
createResolvedTransferData() into resolvePendingTransfer() and makes the latter
a private helper for the approve/denyPendingTransfer() public helpers.

This CL also adds sanity checks that approve/denyPendingTransfer() are called
only with the logically appropriate values of TransferStatus.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=170819358
2017-10-04 16:16:45 -04:00
..
BatchComponent.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
BatchModule.java Add mapreduce cleanup action 2017-03-13 10:24:57 -04:00
BUILD Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
DeleteContactsAndHostsAction.java Streamline transfer resolving helpers in ResourceFlowUtils 2017-10-04 16:16:45 -04:00
DeleteProberDataAction.java Fix soft delete for possible double-map of domain 2017-09-12 14:57:34 -04:00
EntityIntegrityAlertsSchema.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ExpandRecurringBillingEventsAction.java Fix code to always set HistoryEntry modification time using txn time 2017-10-04 16:16:45 -04:00
MapreduceEntityCleanupAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
MapreduceEntityCleanupUtil.java Add mapreduce cleanup action 2017-03-13 10:24:57 -04:00
RefreshDnsOnHostRenameAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
ResaveAllEppResourcesAction.java Use transaction time when cloneProjectedAtTime()-ing within transaction 2017-10-04 16:16:45 -04:00
VerifyEntityIntegrityAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00
VerifyEntityIntegrityStreamer.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00