public abstract class ChangeBasedEvent extends GerritTriggeredEvent
| Modifier and Type | Field and Description |
|---|---|
protected Change |
change
The Gerrit change the event is related to.
|
protected PatchSet |
patchSet
Refers to a specific patchset within a change.
|
account| Constructor and Description |
|---|
ChangeBasedEvent() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
void |
fromJson(net.sf.json.JSONObject json)
Takes a JSON object and fills its internal data-structure.
|
Change |
getChange()
The Change.
|
List<String> |
getFiles(GerritQueryHandler gerritQueryHandler)
Queries gerrit for the files included in this patch set.
|
PatchSet |
getPatchSet()
The patchSet.
|
int |
hashCode() |
void |
setChange(Change change)
The Change.
|
void |
setPatchset(PatchSet patchset)
The patchSet.
|
getAccount, setAccountaddListener, fireAllBuildsCompleted, fireBuildCompleted, fireBuildStarted, fireProjectTriggered, fireTriggerScanDone, fireTriggerScanStarting, getListeners, removeListenerclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEventType, isScorableprotected Change change
protected PatchSet patchSet
public Change getChange()
public void setChange(Change change)
change - the change.public List<String> getFiles(GerritQueryHandler gerritQueryHandler)
gerritQueryHandler - the query handler, responsible for the queries to gerrit.public PatchSet getPatchSet()
public void setPatchset(PatchSet patchset)
patchset - the patchSet.public void fromJson(net.sf.json.JSONObject json)
json - the JSON Object.Copyright © 2004-2015 Hudson. All Rights Reserved.