Class PluginManagementLink

java.lang.Object
hudson.model.ManagementLink
org.jvnet.hudson.plugins.monitoring.PluginManagementLink
All Implemented Interfaces:
ExtensionPoint, Action, ModelObject

@Extension(ordinal=2.147483157E9) public class PluginManagementLink extends ManagementLink
ManagementLink of the plugin to add a link in the "/manage" page.
Author:
Emeric Vernat
  • Constructor Details

    • PluginManagementLink

      public PluginManagementLink()
  • Method Details

    • getIconFileName

      public String getIconFileName()
      Mostly works like Action.getIconFileName(), except that the expected icon size is 48x48, not 24x24. So if you give just a file name, "/images/48x48" will be assumed.
      Specified by:
      getIconFileName in interface Action
      Specified by:
      getIconFileName in class ManagementLink
      Returns:
      As a special case, return null to exclude this object from the management link. This is useful for defining ManagementLink that only shows up under certain circumstances.
    • getDescription

      public String getDescription()
      Returns a short description of what this link does. This text is the one that's displayed in grey. This can include HTML, although the use of block tags is highly discouraged. Optional.
      Overrides:
      getDescription in class ManagementLink
    • getDisplayName

      public String getDisplayName()
      Gets the string to be displayed. The convention is to capitalize the first letter of each word, such as "Test Result".
    • getRequiredPermission

      public Permission getRequiredPermission()
      Overrides:
      getRequiredPermission in class ManagementLink
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
      Specified by:
      getUrlName in class ManagementLink
    • getCategoryName

      public String getCategoryName()
      Name of the category for this management link. Exists so that plugins with core dependency pre-dating the version when this was introduced can define a category. TODO when the core version is >2.226 change this to override getCategory() instead
      Overrides:
      getCategoryName in class ManagementLink
      Returns:
      name of the desired category, one of the enum values of Category, e.g. STATUS.
      Since:
      2.226