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 - 
Method Summary
Modifier and TypeMethodDescriptionbooleanfilter(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:DescriptorVisibilityFilterDecides if the given descriptor should be visible to the user.- Specified by:
 filterin classDescriptorVisibilityFilter- Parameters:
 context- The object that indicates where the visibility of a descriptor is evaluated. For example, if Hudson is deciding whether aFreeStyleProjectshould 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 
DescriptorVisibilityFilterreturns false, the descriptor is not shown. 
 
 -