Package jenkins.branch
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 aJob
with priority given toObjectMetadataAction.getObjectDescription()
.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DescriptionColumn.DescriptorImpl
Our descriptor.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DescriptionColumn()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
formattedDescription(Object p, Object job)
Gets the formatted description of a job.jenkins.scm.api.metadata.ObjectMetadataAction
getPropertyOf(Item item)
Gets the metadata of an item.-
Methods inherited from class hudson.views.ListViewColumn
all, createDefaultInitialColumnList, createDefaultInitialColumnList, createDefaultInitialColumnList, getColumnCaption, getDescriptor, shownByDefault
-
-
-
-
Method Detail
-
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.
-
-