Convert DeleteDraftChange to BatchUpdate
Change-Id: Id4395f92b0c70e86970d479276e9c9e0cc8c7d8f
This commit is contained in:
		| @@ -22,7 +22,9 @@ import com.google.gerrit.extensions.restapi.RestResource.HasETag; | ||||
| import com.google.gerrit.extensions.restapi.RestView; | ||||
| import com.google.gerrit.reviewdb.client.AccountGroup; | ||||
| import com.google.gerrit.reviewdb.client.Change; | ||||
| import com.google.gerrit.reviewdb.client.Project; | ||||
| import com.google.gerrit.server.CurrentUser; | ||||
| import com.google.gerrit.server.IdentifiedUser; | ||||
| import com.google.gerrit.server.notedb.ChangeNotes; | ||||
| import com.google.gerrit.server.project.ChangeControl; | ||||
| import com.google.gerrit.server.project.ProjectState; | ||||
| @@ -49,6 +51,10 @@ public class ChangeResource implements RestResource, HasETag { | ||||
|     return control; | ||||
|   } | ||||
|  | ||||
|   public IdentifiedUser getUser() { | ||||
|     return getControl().getUser().asIdentifiedUser(); | ||||
|   } | ||||
|  | ||||
|   public Change.Id getId() { | ||||
|     return getControl().getId(); | ||||
|   } | ||||
| @@ -57,6 +63,10 @@ public class ChangeResource implements RestResource, HasETag { | ||||
|     return getControl().getChange(); | ||||
|   } | ||||
|  | ||||
|   public Project.NameKey getProject() { | ||||
|     return getChange().getProject(); | ||||
|   } | ||||
|  | ||||
|   public ChangeNotes getNotes() { | ||||
|     return getControl().getNotes(); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dave Borowitz
					Dave Borowitz