com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events
Class RefUpdated

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.lifecycle.GerritEventLifecycle
      extended by com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.GerritTriggeredEvent
          extended by com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.RefUpdated
All Implemented Interfaces:
GerritEvent, GerritJsonDTO, GerritJsonEvent

public class RefUpdated
extends GerritTriggeredEvent
implements GerritJsonEvent

A DTO representation of the ref-updated Gerrit Event.

Author:
jeblair

Field Summary
protected  RefUpdate refUpdate
          The Gerrit ref update the event is related to.
 
Fields inherited from class com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.GerritTriggeredEvent
account
 
Constructor Summary
RefUpdated()
           
 
Method Summary
 boolean equals(Object o)
           
 void fromJson(net.sf.json.JSONObject json)
          Takes a JSON object and fills its internal data-structure.
 GerritEventType getEventType()
          Returns what type of event it is.
 RefUpdate getRefUpdate()
          The ref update.
 int hashCode()
           
 boolean isScorable()
          Returns if a score (code review or verify) can be submitted to Gerrit.
 void setRefUpdate(RefUpdate refUpdate)
          The ref update.
 
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
 

Field Detail

refUpdate

protected RefUpdate refUpdate
The Gerrit ref update the event is related to.

Constructor Detail

RefUpdated

public RefUpdated()
Method Detail

getRefUpdate

public RefUpdate getRefUpdate()
The ref update.

Returns:
the refupdate.

setRefUpdate

public void setRefUpdate(RefUpdate refUpdate)
The ref update.

Parameters:
refUpdate - the refupdate.

getEventType

public GerritEventType getEventType()
Description copied from interface: GerritEvent
Returns what type of event it is.

Specified by:
getEventType in interface GerritEvent
Returns:
the event type.

isScorable

public boolean isScorable()
Description copied from interface: GerritEvent
Returns if a score (code review or verify) can be submitted to Gerrit.

Specified by:
isScorable in interface GerritEvent
Returns:
true if so, otherwise false

fromJson

public void fromJson(net.sf.json.JSONObject json)
Description copied from interface: GerritJsonDTO
Takes a JSON object and fills its internal data-structure.

Specified by:
fromJson in interface GerritJsonDTO
Parameters:
json - the JSON Object.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2004-2012 Hudson. All Rights Reserved.