提交 c6eb7cab 编写于 作者: K kohsuke

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
上级 0d937c66
......@@ -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.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册