public class ApprovalCopier extends Object
The result of a copy may either be stored, as when stamping approvals in the database at submit time, or refreshed on demand, as when reading approvals from the NoteDb.
| Modifier and Type | Method and Description |
|---|---|
void |
copy(ReviewDb db,
ChangeControl ctl,
PatchSet ps)
Apply approval copy settings from prior PatchSets to a new PatchSet.
|
void |
copy(ReviewDb db,
ChangeControl ctl,
PatchSet ps,
Iterable<PatchSetApproval> dontCopy)
Apply approval copy settings from prior PatchSets to a new PatchSet.
|
public void copy(ReviewDb db, ChangeControl ctl, PatchSet ps) throws com.google.gwtorm.server.OrmException
db - review database.ctl - change control for user uploading PatchSetps - new PatchSetcom.google.gwtorm.server.OrmExceptionpublic void copy(ReviewDb db, ChangeControl ctl, PatchSet ps, Iterable<PatchSetApproval> dontCopy) throws com.google.gwtorm.server.OrmException
db - review database.ctl - change control for user uploading PatchSetps - new PatchSetdontCopy - PatchSetApprovals indicating which (account, label) pairs should not be copiedcom.google.gwtorm.server.OrmException