Package hudson.model

Class FreeStyleProject.DescriptorImpl

    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
    • Method Detail

      • getDisplayName

        @NonNull
        public String getDisplayName()
        Description copied from class: TopLevelItemDescriptor
        Human readable name of this kind of configurable object. Should be overridden for most descriptors, if the display name is visible somehow. As a fallback it uses Class.getSimpleName() on Descriptor.clazz, so for example MyThing from some.pkg.MyThing.DescriptorImpl. Historically some implementations returned null as a way of hiding the descriptor from the UI, but this is generally managed by an explicit method such as isEnabled or isApplicable.

        Used as the caption when the user chooses what item type to create. The descriptor implementation also needs to have newInstanceDetail.jelly script, which will be used to render the text below the caption that explains the item type.

        Overrides:
        getDisplayName in class TopLevelItemDescriptor
      • getDescription

        public String getDescription()
        Description copied from class: TopLevelItemDescriptor
        A description of this kind of item type. This description can contain HTML code but it is recommended that you use plain text in order to be consistent with the rest of Jenkins. This method should be called from a thread where Stapler is handling an HTTP request, otherwise it will return an empty string.
        Overrides:
        getDescription in class TopLevelItemDescriptor
        Returns:
        A string, by default the value from newInstanceDetail view is taken.
      • getIconFilePathPattern

        public String getIconFilePathPattern()
        Description copied from class: TopLevelItemDescriptor
        Represents a file path pattern to get the Item icon in different sizes. For example: plugin/plugin-shortname/images/:size/item.png, where :size represents the different icon sizes used commonly in Jenkins project: 16x16, 24x24, 32x32 or 48x48
        Overrides:
        getIconFilePathPattern in class TopLevelItemDescriptor
        Returns:
        A string or null if it is not defined.
        See Also:
        getIconFilePathPattern()