com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events
Class ManualPatchsetCreated
java.lang.Object
com.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
com.sonyericsson.hudson.plugins.gerrit.gerritevents.dto.events.PatchsetCreated
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>
|
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()
|
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.
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.