|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.lifecycle.GerritEventLifecycle
com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.GerritTriggeredEvent
com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.ChangeBasedEvent
public abstract class ChangeBasedEvent
Base class for all GeritTriggeredEvents containing a Change.
| Field Summary | |
|---|---|
protected Change |
change
The Gerrit change the event is related to. |
protected PatchSet |
patchSet
Refers to a specific patchset within a change. |
| Fields inherited from class com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.GerritTriggeredEvent |
|---|
account |
| Constructor Summary | |
|---|---|
ChangeBasedEvent()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.GerritTriggeredEvent |
|---|
getAccount, setAccount |
| Methods inherited from class com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.lifecycle.GerritEventLifecycle |
|---|
addListener, fireAllBuildsCompleted, fireBuildCompleted, fireBuildStarted, fireProjectTriggered, fireTriggerScanDone, fireTriggerScanStarting, getListeners, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.GerritEvent |
|---|
getEventType, isScorable |
| Field Detail |
|---|
protected Change change
protected PatchSet patchSet
| Constructor Detail |
|---|
public ChangeBasedEvent()
| Method Detail |
|---|
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.public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||