Class GerritManualCause
java.lang.Object
hudson.model.Cause
hudson.triggers.SCMTrigger.SCMTriggerCause
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritCause
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritUserCause
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritManualCause
A Cause of a
ManualPatchsetCreated.- Author:
- Robert Sandell <robert.sandell@sonyericsson.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Cause
Cause.LegacyCodeCause, Cause.RemoteCause, Cause.UpstreamCause, Cause.UserCause, Cause.UserIdCause -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.GerritManualCause(ManualPatchsetCreated event, boolean silentMode) Standard constructor.GerritManualCause(ManualPatchsetCreated event, boolean silentMode, TriggerContext context) Standard constructor. -
Method Summary
Methods inherited from class com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritCause
equals, getContext, getEvent, getShortDescription, getUrl, hashCode, isSilentMode, setContext, setEvent, setSilentMode, toStringMethods inherited from class hudson.triggers.SCMTrigger.SCMTriggerCause
getRun, onAddedTo, onLoad
-
Constructor Details
-
GerritManualCause
public GerritManualCause()Default constructor. Do not use this unless you are a serializer. -
GerritManualCause
Standard constructor.- Parameters:
event- the event.silentMode- if silent mode.context- the trigger context.- See Also:
-
GerritManualCause
Standard constructor.- Parameters:
event- the event.silentMode- if it is in silent mode.- See Also:
-
-
Method Details
-
getUserName
The userName of the user who triggered the manual event.- Overrides:
getUserNamein classGerritUserCause- Returns:
- the userName
-
isManuallyTriggered
public boolean isManuallyTriggered()Is this cause of a manually triggered event. Helper for the jelly scripts, it always returns true.- Returns:
- true.
-
getShortGerritDescription
Description copied from class:GerritCauseGives the short description of the GerritCause. Intended to be overridden by subclasses.- Overrides:
getShortGerritDescriptionin classGerritUserCause- Returns:
- the short description.
- See Also:
-
getShortGerritDescriptionSilentMode
Description copied from class:GerritCauseGives the short description of the GerritCause in silent mode. Intended to be overridden by subclasses.- Overrides:
getShortGerritDescriptionSilentModein classGerritUserCause- Returns:
- the short description for silent mode.
- See Also:
-