Class PluginCommentAddedEvent
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<PluginGerritEvent>
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginGerritEvent
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginCommentAddedEvent
-
- All Implemented Interfaces:
Describable<PluginGerritEvent>
,Serializable
public class PluginCommentAddedEvent extends PluginGerritEvent implements Serializable
An event configuration that causes the build to be triggered when a comment is added.- Author:
- Tomas Westling <tomas.westling@sonymobile.com>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PluginCommentAddedEvent.PluginCommentAddedEventDescriptor
The Descriptor for the PluginCommentAddedEvent.-
Nested classes/interfaces inherited from class com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginGerritEvent
PluginGerritEvent.PluginGerritEventDescriptor
-
-
Constructor Summary
Constructors Constructor Description PluginCommentAddedEvent()
Empty constructor for serializer.PluginCommentAddedEvent(String verdictCategory, String commentAddedTriggerApprovalValue)
Standard DataBoundConstructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCommentAddedTriggerApprovalValue()
Getter for the commentAddedTriggerApprovalValue.Class
getCorrespondingEventClass()
Getter for the corresponding gerrit event class.Descriptor<PluginGerritEvent>
getDescriptor()
Getter for the Descriptor.String
getVerdictCategory()
Getter for the verdictCategory.-
Methods inherited from class com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginGerritEvent
shouldTriggerOn
-
-
-
-
Constructor Detail
-
PluginCommentAddedEvent
@DataBoundConstructor public PluginCommentAddedEvent(String verdictCategory, String commentAddedTriggerApprovalValue)
Standard DataBoundConstructor.- Parameters:
verdictCategory
- the value part of the VerdictCategory.commentAddedTriggerApprovalValue
- the approval value.
-
PluginCommentAddedEvent
public PluginCommentAddedEvent()
Empty constructor for serializer.
-
-
Method Detail
-
getCommentAddedTriggerApprovalValue
public String getCommentAddedTriggerApprovalValue()
Getter for the commentAddedTriggerApprovalValue.- Returns:
- the value.
-
getVerdictCategory
public String getVerdictCategory()
Getter for the verdictCategory.- Returns:
- the verdictCategory.
-
getDescriptor
public Descriptor<PluginGerritEvent> getDescriptor()
Getter for the Descriptor.- Specified by:
getDescriptor
in interfaceDescribable<PluginGerritEvent>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<PluginGerritEvent>
- Returns:
- the Descriptor for the PluginCommentAddedEvent.
-
getCorrespondingEventClass
public Class getCorrespondingEventClass()
Description copied from class:PluginGerritEvent
Getter for the corresponding gerrit event class.- Specified by:
getCorrespondingEventClass
in classPluginGerritEvent
- Returns:
- the gerrit event class.
-
-