Class EventUtil
java.lang.Object
com.google.gerrit.server.extensions.events.EventUtil
Formats change and revision info objects to serve as payload for Gerrit events.
Uses configurable options (event.payload.listChangeOptions
) to decide which change
fields to populate.
-
Method Summary
Modifier and TypeMethodDescriptionaccountInfo
(AccountState accountState) changeInfo
(ChangeData changeData) revisionInfo
(Project.NameKey project, PatchSet ps) revisionInfo
(Project project, PatchSet ps)
-
Method Details
-
changeInfo
-
revisionInfo
public RevisionInfo revisionInfo(Project project, PatchSet ps) throws PatchListNotAvailableException, GpgException, IOException, PermissionBackendException -
revisionInfo
public RevisionInfo revisionInfo(Project.NameKey project, PatchSet ps) throws PatchListNotAvailableException, GpgException, IOException, PermissionBackendException -
accountInfo
-
approvals
public Map<String,ApprovalInfo> approvals(AccountState accountState, Map<String, Short> approvals, Instant ts)
-