public class PluginPatchsetCreatedEvent extends PluginGerritEvent implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
PluginPatchsetCreatedEvent.PluginPatchsetCreatedEventDescriptor
The Descriptor for the PluginPatchsetCreatedEvent.
|
PluginGerritEvent.PluginGerritEventDescriptor
Constructor and Description |
---|
PluginPatchsetCreatedEvent()
Default constructor.
|
PluginPatchsetCreatedEvent(boolean excludeDrafts,
boolean excludeTrivialRebase,
boolean excludeNoCodeChange)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Class |
getCorrespondingEventClass()
Getter for the corresponding gerrit event class.
|
Descriptor<PluginGerritEvent> |
getDescriptor()
Getter for the Descriptor.
|
boolean |
isExcludeDrafts()
Getter for the excludeDrafts field.
|
boolean |
isExcludeNoCodeChange()
Getter for the excludeNoCodeChange field.
|
boolean |
isExcludePrivateState()
Getter for the excludePrivateState field.
|
boolean |
isExcludeTrivialRebase()
Getter for the excludeTrivialRebase field.
|
boolean |
isExcludeWipState()
Getter for the excludeWipState field.
|
void |
setExcludeDrafts(boolean excludeDrafts)
Setter for excludeDrafts.
|
void |
setExcludeNoCodeChange(boolean excludeNoCodeChange)
Setter for excludeNoCodeChange.
|
void |
setExcludePrivateState(boolean excludePrivateState)
Setter for excludePrivateState.
|
void |
setExcludeTrivialRebase(boolean excludeTrivialRebase)
Setter for excludeTrivialRebase.
|
void |
setExcludeWipState(boolean excludeWipState)
Setter for excludeWipState.
|
boolean |
shouldTriggerOn(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
Return if it should trigger build for the specified event.
|
@DataBoundConstructor public PluginPatchsetCreatedEvent()
@Deprecated public PluginPatchsetCreatedEvent(boolean excludeDrafts, boolean excludeTrivialRebase, boolean excludeNoCodeChange)
excludeDrafts
- if drafts should be excluded or not.excludeTrivialRebase
- if trivial rebases should be excluded or not.excludeNoCodeChange
- if message-only changes should be excluded.@DataBoundSetter public void setExcludeDrafts(boolean excludeDrafts)
excludeDrafts
- if drafts should be excluded or not.@DataBoundSetter public void setExcludeTrivialRebase(boolean excludeTrivialRebase)
excludeTrivialRebase
- if trivial rebases should be excluded or not.@DataBoundSetter public void setExcludeNoCodeChange(boolean excludeNoCodeChange)
excludeNoCodeChange
- if message-only changes should be excluded.@DataBoundSetter public void setExcludePrivateState(boolean excludePrivateState)
excludePrivateState
- if private state changes should be excluded.@DataBoundSetter public void setExcludeWipState(boolean excludeWipState)
excludeWipState
- if wip state changes should be excluded.public Descriptor<PluginGerritEvent> getDescriptor()
getDescriptor
in interface Describable<PluginGerritEvent>
getDescriptor
in class AbstractDescribableImpl<PluginGerritEvent>
public Class getCorrespondingEventClass()
PluginGerritEvent
getCorrespondingEventClass
in class PluginGerritEvent
public boolean isExcludeDrafts()
public boolean isExcludeTrivialRebase()
public boolean isExcludeNoCodeChange()
public boolean isExcludePrivateState()
public boolean isExcludeWipState()
public boolean shouldTriggerOn(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
PluginGerritEvent
shouldTriggerOn
in class PluginGerritEvent
event
- The event to validate.Copyright © 2016–2019. All rights reserved.