mirror of
https://github.com/google/nomulus
synced 2026-07-19 22:42:23 +00:00
Change GenerateEscrowDepositCommand to trigger back end deposit generation
Previously, GenerateEscrowDepositCommand generated the deposit itself. Channeling it through the existing deposit generation code make things more maintainable. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=152847950
This commit is contained in:
@@ -40,11 +40,11 @@ import org.joda.time.DateTime;
|
||||
@Module
|
||||
public final class RdeModule {
|
||||
|
||||
static final String PARAM_WATERMARK = "watermark";
|
||||
static final String PARAM_MANUAL = "manual";
|
||||
static final String PARAM_DIRECTORY = "directory";
|
||||
static final String PARAM_MODE = "mode";
|
||||
static final String PARAM_REVISION = "revision";
|
||||
public static final String PARAM_WATERMARK = "watermark";
|
||||
public static final String PARAM_MANUAL = "manual";
|
||||
public static final String PARAM_DIRECTORY = "directory";
|
||||
public static final String PARAM_MODE = "mode";
|
||||
public static final String PARAM_REVISION = "revision";
|
||||
|
||||
@Provides
|
||||
@Parameter(PARAM_WATERMARK)
|
||||
|
||||
@@ -181,9 +181,11 @@ import org.joda.time.Duration;
|
||||
* @see <a href="https://tools.ietf.org/html/draft-arias-noguchi-registry-data-escrow-06">Registry Data Escrow Specification</a>
|
||||
* @see <a href="https://tools.ietf.org/html/draft-arias-noguchi-dnrd-objects-mapping-05">Domain Name Registration Data Objects Mapping</a>
|
||||
*/
|
||||
@Action(path = "/_dr/task/rdeStaging")
|
||||
@Action(path = RdeStagingAction.PATH)
|
||||
public final class RdeStagingAction implements Runnable {
|
||||
|
||||
public static final String PATH = "/_dr/task/rdeStaging";
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
|
||||
@Inject Clock clock;
|
||||
@@ -302,6 +304,10 @@ public final class RdeStagingAction implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
if (revision.isPresent() && (revision.get() < 0)) {
|
||||
throw new BadRequestException("Revision must be greater than or equal to zero");
|
||||
}
|
||||
|
||||
ImmutableSetMultimap.Builder<String, PendingDeposit> pendingsBuilder =
|
||||
new ImmutableSetMultimap.Builder<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user