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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
Constructor Details
-
ConditionallyHidden
public ConditionallyHidden()
-
-
Method Details
-
filter
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.
-