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

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.ChangeBasedEvent
              extended by com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.PatchsetCreated
                  extended by com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.ManualPatchsetCreated
All Implemented Interfaces:
GerritEvent, GerritJsonDTO, GerritJsonEvent

public class ManualPatchsetCreated
extends PatchsetCreated

Represents a Patchset manually selected to be built by a user.

Author:
Robert Sandell <robert.sandell@sonyericsson.com>

Field Summary
 
Fields inherited from class com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.ChangeBasedEvent
change, patchSet
 
Fields inherited from class com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.GerritTriggeredEvent
account
 
Constructor Summary
ManualPatchsetCreated()
          Default Constructor.
ManualPatchsetCreated(net.sf.json.JSONObject change, net.sf.json.JSONObject patch, String userName)
          Standard Constructor.
 
Method Summary
 void fromJson(net.sf.json.JSONObject change, net.sf.json.JSONObject patch)
          Sets the relevant values from the JSONObjects.
 String getUserName()
          The name of the user who "created" the event.
 void setUserName(String userName)
          The name of the user who "created" the event.
 String toString()
           
 
Methods inherited from class com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.PatchsetCreated
fromJson, getEventType, isScorable
 
Methods inherited from class com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.ChangeBasedEvent
equals, getChange, getFiles, getPatchSet, hashCode, setChange, setPatchset
 
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, wait, wait, wait
 

Constructor Detail

ManualPatchsetCreated

public ManualPatchsetCreated()
Default Constructor.


ManualPatchsetCreated

public ManualPatchsetCreated(net.sf.json.JSONObject change,
                             net.sf.json.JSONObject patch,
                             String userName)
Standard Constructor.

Parameters:
change - JSONObject containing the change information.
patch - JSONObject containing the patchSet information.
userName - the user that manually fired the Gerrit event.
Method Detail

fromJson

public void fromJson(net.sf.json.JSONObject change,
                     net.sf.json.JSONObject patch)
Sets the relevant values from the JSONObjects.

Parameters:
change - the change info.
patch - the patchSet info.

getUserName

public String getUserName()
The name of the user who "created" the event.

Returns:
the userName.

setUserName

public void setUserName(String userName)
The name of the user who "created" the event.

Parameters:
userName - the userName.

toString

public String toString()
Overrides:
toString in class PatchsetCreated


Copyright © 2004-2012 Hudson. All Rights Reserved.