mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Add "toTime" parameter to RestoreCommitLogsAction web form
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=155500640
This commit is contained in:
parent
ef1487cb57
commit
70e3271319
2 changed files with 10 additions and 1 deletions
|
@ -19,6 +19,7 @@ import static com.google.common.util.concurrent.MoreExecutors.listeningDecorator
|
|||
import static google.registry.backup.ExportCommitLogDiffAction.LOWER_CHECKPOINT_TIME_PARAM;
|
||||
import static google.registry.backup.ExportCommitLogDiffAction.UPPER_CHECKPOINT_TIME_PARAM;
|
||||
import static google.registry.backup.RestoreCommitLogsAction.FROM_TIME_PARAM;
|
||||
import static google.registry.backup.RestoreCommitLogsAction.TO_TIME_PARAM;
|
||||
import static google.registry.request.RequestParameters.extractRequiredDatetimeParameter;
|
||||
import static google.registry.request.RequestParameters.extractRequiredParameter;
|
||||
import static java.util.concurrent.Executors.newFixedThreadPool;
|
||||
|
@ -80,6 +81,12 @@ public final class BackupModule {
|
|||
return extractRequiredDatetimeParameter(req, FROM_TIME_PARAM);
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Parameter(TO_TIME_PARAM)
|
||||
static DateTime provideToTime(HttpServletRequest req) {
|
||||
return extractRequiredDatetimeParameter(req, TO_TIME_PARAM);
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Backups
|
||||
static ListeningExecutorService provideListeningExecutorService() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue