Class NotificationContextTrait
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<T>
-
- jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
-
- jenkins.scm.api.trait.SCMSourceTrait
-
- org.jenkinsci.plugins.githubScmTraitNotificationContext.NotificationContextTrait
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.trait.SCMSourceTrait>
public class NotificationContextTrait extends jenkins.scm.api.trait.SCMSourceTrait
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NotificationContextTrait.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description NotificationContextTrait(String contextLabel, boolean typeSuffix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
String
getContextLabel()
String
getMultipleStatusDelimiter()
boolean
includeCategory(jenkins.scm.api.SCMHeadCategory category)
boolean
isMultipleStatuses()
boolean
isTypeSuffix()
void
setMultipleStatusDelimiter(String multipleStatusDelimiter)
void
setMultipleStatuses(boolean multipleStatuses)
-
-
-
Constructor Detail
-
NotificationContextTrait
@DataBoundConstructor public NotificationContextTrait(String contextLabel, boolean typeSuffix)
-
-
Method Detail
-
getContextLabel
public String getContextLabel()
-
isTypeSuffix
public boolean isTypeSuffix()
-
isMultipleStatuses
public boolean isMultipleStatuses()
-
setMultipleStatuses
@DataBoundSetter public void setMultipleStatuses(boolean multipleStatuses)
-
getMultipleStatusDelimiter
public String getMultipleStatusDelimiter()
-
setMultipleStatusDelimiter
@DataBoundSetter public void setMultipleStatusDelimiter(String multipleStatusDelimiter)
-
decorateContext
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
- Overrides:
decorateContext
in classjenkins.scm.api.trait.SCMSourceTrait
-
includeCategory
public boolean includeCategory(@NonNull jenkins.scm.api.SCMHeadCategory category)
- Overrides:
includeCategory
in classjenkins.scm.api.trait.SCMSourceTrait
-
-