Package jenkins.security.apitoken
Class ApiTokenPropertyEnabledNewLegacyAdministrativeMonitor
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.AdministrativeMonitor
jenkins.security.apitoken.ApiTokenPropertyEnabledNewLegacyAdministrativeMonitor
- All Implemented Interfaces:
ExtensionPoint,ModelObject,SearchableModelObject,SearchItem,org.kohsuke.stapler.StaplerProxy
@Extension
@Symbol("apiTokenNewLegacyWithoutExisting")
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class ApiTokenPropertyEnabledNewLegacyAdministrativeMonitor
extends AdministrativeMonitor
Monitor that the API Token cannot be created for a user without existing legacy token
-
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsebooleanReturns true if this monitor is activated and wants to produce a warning message.booleanReturns true if this monitor is security related.Methods inherited from class hudson.model.AdministrativeMonitor
all, checkRequiredPermission, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, hasPermissionToDisplay, hasRequiredPermission, isEnabledMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
-
Constructor Details
-
ApiTokenPropertyEnabledNewLegacyAdministrativeMonitor
public ApiTokenPropertyEnabledNewLegacyAdministrativeMonitor()
-
-
Method Details
-
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
- Throws:
IOException
-