Package jenkins.diagnostics
Class SecurityIsOffMonitor
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.AdministrativeMonitor
-
- jenkins.diagnostics.SecurityIsOffMonitor
-
- All Implemented Interfaces:
ExtensionPoint,ModelObject,SearchableModelObject,SearchItem,org.kohsuke.stapler.StaplerProxy
@Extension @Symbol("securityIsOff") public class SecurityIsOffMonitor extends AdministrativeMonitor
Unsecured Jenkins is, well, insecure.Call attention to the fact that Jenkins is not secured, and encourage the administrator to take an action.
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.AdministrativeMonitor
id
-
-
Constructor Summary
Constructors Constructor Description SecurityIsOffMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoAct(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)Depending on whether the user said "yes" or "no", send him to the right place.StringgetDisplayName()booleanisActivated()Returns true if this monitor is activated and wants to produce a warning message.booleanisSecurity()Returns true if this monitor is security related.-
Methods inherited from class hudson.model.AdministrativeMonitor
all, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, isEnabled
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceModelObject- Overrides:
getDisplayNamein classAdministrativeMonitor
-
isActivated
public boolean isActivated()
Description copied from class:AdministrativeMonitorReturns true if this monitor is activated and wants to produce a warning message.This method is called from the HTML rendering thread, so it should run efficiently.
- Specified by:
isActivatedin classAdministrativeMonitor
-
isSecurity
public boolean isSecurity()
Description copied from class:AdministrativeMonitorReturns true if this monitor is security related. This will be used to determine which icon will be used in the navigation bar.- Overrides:
isSecurityin classAdministrativeMonitor
-
doAct
public void doAct(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOExceptionDepending on whether the user said "yes" or "no", send him to the right place.- Throws:
IOException
-
-