@Extension @Symbol(value="oldData") public static class OldDataMonitor.ManagementLinkImpl extends ManagementLink
ManagementLink.Category
ExtensionPoint.LegacyInstancesAreScopedToHudson
LIST
Constructor and Description |
---|
ManagementLinkImpl() |
Modifier and Type | Method and Description |
---|---|
ManagementLink.Category |
getCategory()
Category for management link, uses
String so it can be done with core dependency pre-dating the version this feature was added. |
String |
getDescription()
Returns a short description of what this link does.
|
String |
getDisplayName()
Gets the string to be displayed.
|
String |
getIconFileName()
Mostly works like
Action.getIconFileName() , except that
the expected icon format is SVG. |
String |
getUrlName()
Gets the URL path name.
|
all, getCategoryName, getRequiredPermission, getRequiresConfirmation, getRequiresPOST
@NonNull public ManagementLink.Category getCategory()
ManagementLink
String
so it can be done with core dependency pre-dating the version this feature was added.getCategory
in class ManagementLink
ManagementLink.Category
.public String getIconFileName()
ManagementLink
Action.getIconFileName()
, except that
the expected icon format is SVG. So if you give just a file name, "/images/svgs" will be assumed.getIconFileName
in interface Action
getIconFileName
in class ManagementLink
ManagementLink
that only shows up under
certain circumstances.Functions.isAnonymous()
,
Functions.getIconFilePath(Action)
public String getUrlName()
ManagementLink
For example, if this method returns "xyz", and if the parent object (that this action is associated with) is bound to /foo/bar/zot, then this action object will be exposed to /foo/bar/zot/xyz.
This method should return a string that's unique among other Action
s.
The returned string can be an absolute URL, like "http://www.sun.com/", which is useful for directly connecting to external systems.
If the returned string starts with '/', like '/foo', then it's assumed to be relative to the context path of the Jenkins webapp.
In case of ManagementLink
, this value is put straight into the href attribute,
so relative paths are interpreted against the root Jenkins
object.
getUrlName
in interface Action
getUrlName
in class ManagementLink
Action.getIconFileName()
.Functions.getActionUrl(String, Action)
public String getDescription()
ManagementLink
getDescription
in class ManagementLink
Copyright © 2004–2022. All rights reserved.