|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.Cause
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritCause
public class GerritCause
A Cause why a build was scheduled.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class hudson.model.Cause |
---|
hudson.model.Cause.LegacyCodeCause, hudson.model.Cause.RemoteCause, hudson.model.Cause.UpstreamCause, hudson.model.Cause.UserCause |
Constructor Summary | |
---|---|
GerritCause()
Default Constructor. |
|
GerritCause(PatchsetCreated event,
boolean silentMode)
Default DataBound Constructor. |
|
GerritCause(PatchsetCreated event,
boolean silentMode,
TriggerContext context)
Default DataBound Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
TriggerContext |
getContext()
The context with information about other builds triggered for the same event as this one. |
PatchsetCreated |
getEvent()
The event. |
java.lang.String |
getShortDescription()
|
protected java.lang.String |
getShortGerritDescription()
Gives the short description of the GerritCause. |
protected java.lang.String |
getShortGerritDescriptionSilentMode()
Gives the short description of the GerritCause in silent mode. |
java.lang.String |
getUrl()
Gets the URL to the Gerrit patchSet. |
int |
hashCode()
|
boolean |
isSilentMode()
Gets the indication if silent mode was on or off when the build was triggered. |
void |
setContext(TriggerContext context)
The context with information about other builds triggered for the same event as this one. |
void |
setEvent(PatchsetCreated event)
The event. |
void |
setSilentMode(boolean silentMode)
Sets the indication if silent mode was on or off when the build was triggered. |
java.lang.String |
toString()
|
Methods inherited from class hudson.model.Cause |
---|
onAddedTo, print |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GerritCause(PatchsetCreated event, boolean silentMode)
event
- the event that triggered the build.silentMode
- Silent Mode on or off.public GerritCause(PatchsetCreated event, boolean silentMode, TriggerContext context)
event
- the event that triggered the build.silentMode
- Silent Mode on or off.context
- The context with information about other builds triggered for the same event as this one.public GerritCause()
Method Detail |
---|
public PatchsetCreated getEvent()
public void setEvent(PatchsetCreated event)
event
- the event.public boolean isSilentMode()
GerritTrigger.isSilentMode()
public void setSilentMode(boolean silentMode)
silentMode
- true if silent mode was on.GerritTrigger.setSilentMode(boolean)
public TriggerContext getContext()
public void setContext(TriggerContext context)
context
- the context.protected java.lang.String getShortGerritDescription()
getShortGerritDescriptionSilentMode()
,
getShortDescription()
protected java.lang.String getShortGerritDescriptionSilentMode()
getShortGerritDescription()
,
getShortDescription()
public java.lang.String getShortDescription()
getShortDescription
in class hudson.model.Cause
public java.lang.String getUrl()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |