Package com.google.gerrit.server.change
Class BatchAbandon
- java.lang.Object
-
- com.google.gerrit.server.change.BatchAbandon
-
public class BatchAbandon extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
batchAbandon(BatchUpdate.Factory updateFactory, Project.NameKey project, CurrentUser user, Collection<ChangeData> changes)
void
batchAbandon(BatchUpdate.Factory updateFactory, Project.NameKey project, CurrentUser user, Collection<ChangeData> changes, String msgTxt)
void
batchAbandon(BatchUpdate.Factory updateFactory, Project.NameKey project, CurrentUser user, Collection<ChangeData> changes, String msgTxt, NotifyResolver.Result notify)
If an extension has more than one changes to abandon that belong to the same project, they should use the batch instead of abandoning one by one.
-
-
-
Method Detail
-
batchAbandon
public void batchAbandon(BatchUpdate.Factory updateFactory, Project.NameKey project, CurrentUser user, Collection<ChangeData> changes, String msgTxt, NotifyResolver.Result notify) throws RestApiException, UpdateException
If an extension has more than one changes to abandon that belong to the same project, they should use the batch instead of abandoning one by one.It's the caller's responsibility to ensure that all jobs inside the same batch have the matching project from its ChangeData. Violations will result in a ResourceConflictException.
- Throws:
RestApiException
UpdateException
-
batchAbandon
public void batchAbandon(BatchUpdate.Factory updateFactory, Project.NameKey project, CurrentUser user, Collection<ChangeData> changes, String msgTxt) throws RestApiException, UpdateException
- Throws:
RestApiException
UpdateException
-
batchAbandon
public void batchAbandon(BatchUpdate.Factory updateFactory, Project.NameKey project, CurrentUser user, Collection<ChangeData> changes) throws RestApiException, UpdateException
- Throws:
RestApiException
UpdateException
-
-