Class DescriptionColumn

java.lang.Object
hudson.views.ListViewColumn
jenkins.branch.DescriptionColumn
All Implemented Interfaces:
ExtensionPoint, Describable<ListViewColumn>

public class DescriptionColumn extends ListViewColumn
ListViewColumn that shows the description text of a Job with priority given to ObjectMetadataAction.getObjectDescription().
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • DescriptionColumn

      @DataBoundConstructor public DescriptionColumn()
      Constructor.
  • Method Details

    • getPropertyOf

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public jenkins.scm.api.metadata.ObjectMetadataAction getPropertyOf(Item item)
      Gets the metadata of an item.
      Parameters:
      item - the item.
      Returns:
      the metadata or null
    • formattedDescription

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String formattedDescription(@CheckForNull Object p, @NonNull Object job) throws IOException
      Gets the formatted description of a job.
      Parameters:
      p - the metadata action.
      job - the job.
      Returns:
      the description. It is never unfiltered, unescaped HTML.
      Throws:
      IOException - if there was an issue encoding the description.