Package jenkins.branch
Class DescriptionColumn
java.lang.Object
hudson.views.ListViewColumn
jenkins.branch.DescriptionColumn
- All Implemented Interfaces:
ExtensionPoint,Describable<ListViewColumn>
ListViewColumn that shows the description text of a Job with priority given to
ObjectMetadataAction.getObjectDescription().- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformattedDescription(Object p, Object job) Gets the formatted description of a job.jenkins.scm.api.metadata.ObjectMetadataActiongetPropertyOf(Item item) Gets the metadata of an item.Methods inherited from class hudson.views.ListViewColumn
all, createDefaultInitialColumnList, createDefaultInitialColumnList, createDefaultInitialColumnList, getColumnCaption, getDescriptor, shownByDefault
-
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.
-