public class RegexSCMSourceFilterTrait extends SCMNavigatorTrait
SCMNavigator
with a SCMSourcePrefilter
that excludes projects with names that do not
match a user supplied regular expression.Modifier and Type | Class and Description |
---|---|
static class |
RegexSCMSourceFilterTrait.DescriptorImpl
Our descriptor.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
RegexSCMSourceFilterTrait(String regex)
Stapler constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decorateContext(SCMNavigatorContext<?,?> context)
SPI: Override this method to decorate a
SCMNavigatorContext . |
String |
getRegex()
Gets the regular expression.
|
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateBuilder, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled
@DataBoundConstructor public RegexSCMSourceFilterTrait(@NonNull String regex)
regex
- the regular expression.@NonNull public String getRegex()
protected void decorateContext(SCMNavigatorContext<?,?> context)
SCMNavigatorContext
. You can assume that your
SCMNavigatorTraitDescriptor.isApplicableToContext(Class)
is true
within this method and that
the provided context is an instance of SCMNavigatorTraitDescriptor.getContextClass()
.decorateContext
in class SCMNavigatorTrait
context
- the context (invariant: SCMNavigatorTraitDescriptor.isApplicableToContext(Class)
is true
and SCMNavigatorTraitDescriptor.getContextClass()
Class.isInstance(Object)
)
is true
)Copyright © 2016–2022. All rights reserved.