public abstract class AbstractFolderProperty<C extends AbstractFolder<?>> extends AbstractDescribableImpl<AbstractFolderProperty<?>> implements ExtensionPoint, ReconfigurableDescribable<AbstractFolderProperty<?>>
AbstractFolder
.ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
protected C |
owner
The
AbstractFolder object that owns this property. |
Constructor and Description |
---|
AbstractFolderProperty() |
Modifier and Type | Method and Description |
---|---|
AbstractFolderPropertyDescriptor |
getDescriptor() |
List<FolderHealthMetric> |
getHealthMetrics()
Returns the health metrics contributed by this property.
|
List<HealthReport> |
getHealthReports()
Folder properties can optionally contribute health reports for the folder.
|
Collection<?> |
getItemContainerOverrides()
Provides stapler override objects to
Folder so that its URL space can be partially
overridden by properties. |
C |
getOwner()
Gets an owner of the property.
|
AbstractFolderProperty<?> |
reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form) |
protected void |
setOwner(C owner)
Hook for performing post-initialization action.
|
protected transient C extends AbstractFolder<?> owner
AbstractFolder
object that owns this property.
This value will be set by the folder.
Derived classes can expect this value to be always set.protected void setOwner(@NonNull C owner)
owner
- the owner.@NonNull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public C getOwner()
public AbstractFolderPropertyDescriptor getDescriptor()
getDescriptor
in interface Describable<AbstractFolderProperty<?>>
getDescriptor
in class AbstractDescribableImpl<AbstractFolderProperty<?>>
public Collection<?> getItemContainerOverrides()
Folder
so that its URL space can be partially
overridden by properties.StaplerOverridable
public AbstractFolderProperty<?> reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException
reconfigure
in interface ReconfigurableDescribable<AbstractFolderProperty<?>>
Descriptor.FormException
@NonNull public List<HealthReport> getHealthReports()
getHealthMetrics()
in order to prevent multiple iterations of the items in the folder.@NonNull public List<FolderHealthMetric> getHealthMetrics()
Copyright © 2016–2020. All rights reserved.