Class ApprovalContext
- java.lang.Object
-
- com.google.gerrit.server.query.approval.ApprovalContext
-
public abstract class ApprovalContext extends Object
Entity representing all required information to match predicates for copying approvals.
-
-
Constructor Summary
Constructors Constructor Description ApprovalContext()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ChangeKind
changeKind()
ChangeKind
of the delta between the origin and target patch set.abstract ChangeNotes
changeNotes()
ChangeNotes
of the change in question.static ApprovalContext
create(ChangeNotes changeNotes, PatchSetApproval psa, PatchSet patchSet, ChangeKind changeKind)
abstract PatchSetApproval
patchSetApproval()
Approval on the source patch set to be copied.abstract PatchSet
target()
Target change and patch set for the approval.
-
-
-
Method Detail
-
patchSetApproval
public abstract PatchSetApproval patchSetApproval()
Approval on the source patch set to be copied.
-
target
public abstract PatchSet target()
Target change and patch set for the approval. This must be used instead of getting the PatchSet fromchangeNotes()
because it is possible we are now creating the patch-set, so it doesn't exist in changeNotes yet.
-
changeNotes
public abstract ChangeNotes changeNotes()
ChangeNotes
of the change in question.
-
changeKind
public abstract ChangeKind changeKind()
ChangeKind
of the delta between the origin and target patch set.
-
create
public static ApprovalContext create(ChangeNotes changeNotes, PatchSetApproval psa, PatchSet patchSet, ChangeKind changeKind)
-
-