Merge "Rename RetryingRestCollectionView to RetryingRestCollectionModifyView"
This commit is contained in:
commit
1ade4162e0
@ -69,7 +69,7 @@ import com.google.gerrit.server.restapi.project.CommitsCollection;
|
||||
import com.google.gerrit.server.restapi.project.ProjectsCollection;
|
||||
import com.google.gerrit.server.update.BatchUpdate;
|
||||
import com.google.gerrit.server.update.RetryHelper;
|
||||
import com.google.gerrit.server.update.RetryingRestCollectionView;
|
||||
import com.google.gerrit.server.update.RetryingRestCollectionModifyView;
|
||||
import com.google.gerrit.server.update.UpdateException;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
@ -98,7 +98,7 @@ import org.eclipse.jgit.util.ChangeIdUtil;
|
||||
|
||||
@Singleton
|
||||
public class CreateChange
|
||||
extends RetryingRestCollectionView<
|
||||
extends RetryingRestCollectionModifyView<
|
||||
TopLevelResource, ChangeResource, ChangeInput, Response<ChangeInfo>> {
|
||||
private final String anonymousCowardName;
|
||||
private final Provider<ReviewDb> db;
|
||||
|
@ -71,7 +71,7 @@ import com.google.gerrit.server.restapi.account.AccountsCollection;
|
||||
import com.google.gerrit.server.restapi.group.GroupsCollection;
|
||||
import com.google.gerrit.server.update.BatchUpdate;
|
||||
import com.google.gerrit.server.update.RetryHelper;
|
||||
import com.google.gerrit.server.update.RetryingRestCollectionView;
|
||||
import com.google.gerrit.server.update.RetryingRestCollectionModifyView;
|
||||
import com.google.gerrit.server.update.UpdateException;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
@ -87,7 +87,7 @@ import org.eclipse.jgit.lib.Config;
|
||||
|
||||
@Singleton
|
||||
public class PostReviewers
|
||||
extends RetryingRestCollectionView<
|
||||
extends RetryingRestCollectionModifyView<
|
||||
ChangeResource, ReviewerResource, AddReviewerInput, AddReviewerResult> {
|
||||
|
||||
public static final int DEFAULT_MAX_REVIEWERS_WITHOUT_CHECK = 10;
|
||||
|
@ -32,7 +32,7 @@ import com.google.gerrit.server.project.ContributorAgreementsChecker;
|
||||
import com.google.gerrit.server.project.NoSuchProjectException;
|
||||
import com.google.gerrit.server.update.BatchUpdate;
|
||||
import com.google.gerrit.server.update.RetryHelper;
|
||||
import com.google.gerrit.server.update.RetryingRestCollectionView;
|
||||
import com.google.gerrit.server.update.RetryingRestCollectionModifyView;
|
||||
import com.google.gerrit.server.update.UpdateException;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
@ -70,7 +70,7 @@ public class PublishChangeEdit
|
||||
|
||||
@Singleton
|
||||
public static class Publish
|
||||
extends RetryingRestCollectionView<
|
||||
extends RetryingRestCollectionModifyView<
|
||||
ChangeResource, ChangeEditResource.Publish, PublishChangeEditInput, Response<?>> {
|
||||
|
||||
private final ChangeEditUtil editUtil;
|
||||
|
@ -32,7 +32,7 @@ import com.google.gerrit.server.permissions.PermissionBackendException;
|
||||
import com.google.gerrit.server.project.InvalidChangeOperationException;
|
||||
import com.google.gerrit.server.update.BatchUpdate;
|
||||
import com.google.gerrit.server.update.RetryHelper;
|
||||
import com.google.gerrit.server.update.RetryingRestCollectionView;
|
||||
import com.google.gerrit.server.update.RetryingRestCollectionModifyView;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
@ -68,7 +68,7 @@ public class RebaseChangeEdit
|
||||
|
||||
@Singleton
|
||||
public static class Rebase
|
||||
extends RetryingRestCollectionView<
|
||||
extends RetryingRestCollectionModifyView<
|
||||
ChangeResource, ChangeEditResource.Rebase, Input, Response<?>> {
|
||||
private final GitRepositoryManager repositoryManager;
|
||||
private final ChangeEditModifier editModifier;
|
||||
|
@ -20,12 +20,12 @@ import com.google.gerrit.extensions.restapi.ResourceConflictException;
|
||||
import com.google.gerrit.extensions.restapi.RestCollectionModifyView;
|
||||
import com.google.gerrit.extensions.restapi.RestResource;
|
||||
|
||||
public abstract class RetryingRestCollectionView<
|
||||
public abstract class RetryingRestCollectionModifyView<
|
||||
P extends RestResource, C extends RestResource, I, O>
|
||||
implements RestCollectionModifyView<P, C, I> {
|
||||
private final RetryHelper retryHelper;
|
||||
|
||||
protected RetryingRestCollectionView(RetryHelper retryHelper) {
|
||||
protected RetryingRestCollectionModifyView(RetryHelper retryHelper) {
|
||||
this.retryHelper = retryHelper;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user