Class AbstractFolderProperty<C extends AbstractFolder<?>>

java.lang.Object
hudson.model.AbstractDescribableImpl<AbstractFolderProperty<?>>
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<C>
All Implemented Interfaces:
ExtensionPoint, Describable<AbstractFolderProperty<?>>, ReconfigurableDescribable<AbstractFolderProperty<?>>
Direct Known Subclasses:
FolderCredentialsProvider.FolderCredentialsProperty, FolderProperty

public abstract class AbstractFolderProperty<C extends AbstractFolder<?>> extends AbstractDescribableImpl<AbstractFolderProperty<?>> implements ExtensionPoint, ReconfigurableDescribable<AbstractFolderProperty<?>>
Property potentially applicable to any AbstractFolder.
Since:
4.11-beta-1
  • Field Details

    • owner

      protected transient C extends AbstractFolder<?> owner
      The AbstractFolder object that owns this property. This value will be set by the folder. Derived classes can expect this value to be always set.
  • Constructor Details

    • AbstractFolderProperty

      public AbstractFolderProperty()
  • Method Details

    • setOwner

      protected void setOwner(@NonNull C owner)
      Hook for performing post-initialization action.
      Parameters:
      owner - the owner.
    • getOwner

      @NonNull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public C getOwner()
      Gets an owner of the property.
      Returns:
      Owner of the property. It should be always non-null if the property initialized correctly.
    • getDescriptor

      public AbstractFolderPropertyDescriptor getDescriptor()
      Specified by:
      getDescriptor in interface Describable<C extends AbstractFolder<?>>
      Overrides:
      getDescriptor in class AbstractDescribableImpl<AbstractFolderProperty<?>>
    • getItemContainerOverrides

      public Collection<?> getItemContainerOverrides()
      Provides stapler override objects to Folder so that its URL space can be partially overridden by properties.
      Returns:
      the overrides.
      See Also:
      • StaplerOverridable
    • reconfigure

      public AbstractFolderProperty<?> reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException
      Specified by:
      reconfigure in interface ReconfigurableDescribable<C extends AbstractFolder<?>>
      Throws:
      Descriptor.FormException
    • getHealthReports

      @NonNull public List<HealthReport> getHealthReports()
      Folder properties can optionally contribute health reports for the folder. These should be reports of the folder directly, where a report requires iteration of the items in the folder use the getHealthMetrics() in order to prevent multiple iterations of the items in the folder.
      Returns:
      the list of health reports.
    • getHealthMetrics

      @NonNull public List<FolderHealthMetric> getHealthMetrics()
      Returns the health metrics contributed by this property.
      Returns:
      the health metrics contributed by this property.