@Extension public static class JNLPLauncher.DescriptorVisibilityFilterImpl extends DescriptorVisibilityFilter
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
DescriptorVisibilityFilterImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
filter(Object context,
Descriptor descriptor)
Decides if the given descriptor should be visible to the user.
|
boolean |
filterType(Class<?> contextClass,
Descriptor descriptor)
Decides if the given descriptor should be visible to the user.
|
all, apply, applyType
public boolean filter(@CheckForNull Object context, @Nonnull Descriptor descriptor)
filter
in class DescriptorVisibilityFilter
context
- The object that indicates where the visibility of a descriptor is evaluated.
For example, if Hudson is deciding whether a FreeStyleProject
should gets a
SCMDescriptor
, the context object will be the FreeStyleProject
.
The caller can pass in null if there's no context.descriptor
- Descriptor whose visibility is evaluated. Never null.DescriptorVisibilityFilter
returns false,
the descriptor is not shown.public boolean filterType(@Nonnull Class<?> contextClass, @Nonnull Descriptor descriptor)
filterType
in class DescriptorVisibilityFilter
contextClass
- The class of object that indicates where the visibility of a descriptor is evaluated.
For example, if Jenkins is deciding whether a FreeStyleProject
should gets a
SCMDescriptor
, the context class will be FreeStyleProject
.descriptor
- Descriptor whose visibility is evaluated. Never null.DescriptorVisibilityFilter
returns false,
the descriptor is not shown.Copyright © 2004–2017. All rights reserved.