Package jenkins.model
Class BuildDiscarderProperty.ConditionallyHidden
- java.lang.Object
-
- hudson.model.DescriptorVisibilityFilter
-
- jenkins.model.BuildDiscarderProperty.ConditionallyHidden
-
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- BuildDiscarderProperty
@Extension public static class BuildDiscarderProperty.ConditionallyHidden extends DescriptorVisibilityFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ConditionallyHidden()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
filter(Object context, Descriptor descriptor)
Decides if the given descriptor should be visible to the user.-
Methods inherited from class hudson.model.DescriptorVisibilityFilter
all, apply, applyType, filterType
-
-
-
-
Method Detail
-
filter
public boolean filter(Object context, Descriptor descriptor)
Description copied from class:DescriptorVisibilityFilter
Decides if the given descriptor should be visible to the user.- Specified by:
filter
in classDescriptorVisibilityFilter
- Parameters:
context
- The object that indicates where the visibility of a descriptor is evaluated. For example, if Hudson is deciding whether aFreeStyleProject
should gets aSCMDescriptor
, the context object will be theFreeStyleProject
. The caller can pass in null if there's no context.descriptor
- Descriptor whose visibility is evaluated. Never null.- Returns:
- true to allow the descriptor to be visible. false to hide it.
If any of the installed
DescriptorVisibilityFilter
returns false, the descriptor is not shown.
-
-