mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
extend from AbstractModelObject to reuse some of its convenience methods.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15244 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
0d937c66be
commit
c6eb7cab89
1 file changed
+9
-2
@@ -32,7 +32,6 @@ import java.io.IOException;
|
||||
|
||||
import org.kohsuke.stapler.StaplerRequest;
|
||||
import org.kohsuke.stapler.StaplerResponse;
|
||||
import org.kohsuke.stapler.Stapler;
|
||||
|
||||
/**
|
||||
* Checks the health of a subsystem of Hudson and if there's something
|
||||
@@ -72,7 +71,7 @@ import org.kohsuke.stapler.Stapler;
|
||||
* @since 1.273
|
||||
* @see Hudson#administrativeMonitors
|
||||
*/
|
||||
public abstract class AdministrativeMonitor implements ExtensionPoint {
|
||||
public abstract class AdministrativeMonitor extends AbstractModelObject implements ExtensionPoint {
|
||||
/**
|
||||
* Human-readable ID of this monitor, which needs to be unique within the system.
|
||||
*
|
||||
@@ -97,6 +96,14 @@ public abstract class AdministrativeMonitor implements ExtensionPoint {
|
||||
return "administrativeMonitor/"+id;
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public final String getSearchUrl() {
|
||||
return getUrl();
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark this monitor as disabled, to prevent this from showing up in the UI.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user