public class Abandon extends RetryingRestModifyView<ChangeResource,AbandonInput,ChangeInfo> implements UiAction<ChangeResource>
UiAction.Description
Modifier and Type | Method and Description |
---|---|
Change |
abandon(BatchUpdate.Factory updateFactory,
ChangeNotes notes,
CurrentUser user) |
Change |
abandon(BatchUpdate.Factory updateFactory,
ChangeNotes notes,
CurrentUser user,
java.lang.String msgTxt) |
Change |
abandon(BatchUpdate.Factory updateFactory,
ChangeNotes notes,
CurrentUser user,
java.lang.String msgTxt,
NotifyHandling notifyHandling,
com.google.common.collect.ListMultimap<RecipientType,Account.Id> accountsToNotify) |
protected ChangeInfo |
applyImpl(BatchUpdate.Factory updateFactory,
ChangeResource req,
AbandonInput input) |
void |
batchAbandon(BatchUpdate.Factory updateFactory,
Project.NameKey project,
CurrentUser user,
java.util.Collection<ChangeData> changes) |
void |
batchAbandon(BatchUpdate.Factory updateFactory,
Project.NameKey project,
CurrentUser user,
java.util.Collection<ChangeData> changes,
java.lang.String msgTxt) |
void |
batchAbandon(BatchUpdate.Factory updateFactory,
Project.NameKey project,
CurrentUser user,
java.util.Collection<ChangeData> changes,
java.lang.String msgTxt,
NotifyHandling notifyHandling,
com.google.common.collect.ListMultimap<RecipientType,Account.Id> accountsToNotify)
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.
|
UiAction.Description |
getDescription(ChangeResource rsrc)
Get the description of the action customized for the resource.
|
apply
protected ChangeInfo applyImpl(BatchUpdate.Factory updateFactory, ChangeResource req, AbandonInput input) throws RestApiException, UpdateException, com.google.gwtorm.server.OrmException, PermissionBackendException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
applyImpl
in class RetryingRestModifyView<ChangeResource,AbandonInput,ChangeInfo>
RestApiException
UpdateException
com.google.gwtorm.server.OrmException
PermissionBackendException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
public Change abandon(BatchUpdate.Factory updateFactory, ChangeNotes notes, CurrentUser user) throws RestApiException, UpdateException
RestApiException
UpdateException
public Change abandon(BatchUpdate.Factory updateFactory, ChangeNotes notes, CurrentUser user, java.lang.String msgTxt) throws RestApiException, UpdateException
RestApiException
UpdateException
public Change abandon(BatchUpdate.Factory updateFactory, ChangeNotes notes, CurrentUser user, java.lang.String msgTxt, NotifyHandling notifyHandling, com.google.common.collect.ListMultimap<RecipientType,Account.Id> accountsToNotify) throws RestApiException, UpdateException
RestApiException
UpdateException
public void batchAbandon(BatchUpdate.Factory updateFactory, Project.NameKey project, CurrentUser user, java.util.Collection<ChangeData> changes, java.lang.String msgTxt, NotifyHandling notifyHandling, com.google.common.collect.ListMultimap<RecipientType,Account.Id> accountsToNotify) throws RestApiException, UpdateException
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.
RestApiException
UpdateException
public void batchAbandon(BatchUpdate.Factory updateFactory, Project.NameKey project, CurrentUser user, java.util.Collection<ChangeData> changes, java.lang.String msgTxt) throws RestApiException, UpdateException
RestApiException
UpdateException
public void batchAbandon(BatchUpdate.Factory updateFactory, Project.NameKey project, CurrentUser user, java.util.Collection<ChangeData> changes) throws RestApiException, UpdateException
RestApiException
UpdateException
public UiAction.Description getDescription(ChangeResource rsrc)
UiAction
getDescription
in interface UiAction<ChangeResource>
rsrc
- the resource the view would act upon if the action is invoked by the client.
Information from the resource can be used to customize the description.id
and method
properties. If null the action will assumed unavailable and not presented. This is usually
the same as setVisible(false)
.