Class GlobalSecurityConfiguration
- All Implemented Interfaces:
ExtensionPoint
,Action
,Describable<GlobalSecurityConfiguration>
,ModelObject
Jenkins
.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.Category
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.ManagementLink
LIST
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
configure
(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) void
doConfigure
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Category for management link, usesString
so it can be done with core dependency pre-dating the version this feature was added.Returns a short description of what this link does.Gets the descriptor for this instance.Gets the string to be displayed.Mostly works likeAction.getIconFileName()
, except that the expected icon format is SVG.Returns the permission required for user to see this management link on the "Manage Jenkins" page (ManageJenkinsAction
).int
Gets the URL path name.boolean
boolean
Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategoryName, getRequiresConfirmation, getRequiresPOST
-
Field Details
-
FILTER
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.222") public static final Predicate<Descriptor> FILTER
-
-
Constructor Details
-
GlobalSecurityConfiguration
public GlobalSecurityConfiguration()
-
-
Method Details
-
getSecurityRealm
-
getAuthorizationStrategy
-
getMarkupFormatter
-
getSlaveAgentPort
public int getSlaveAgentPort() -
isSlaveAgentPortEnforced
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isSlaveAgentPortEnforced()- Returns:
- true if the inbound agent port is enforced on this instance.
- Since:
- 2.24
-
isDisableRememberMe
public boolean isDisableRememberMe() -
getCategory
Description copied from class:ManagementLink
Category for management link, usesString
so it can be done with core dependency pre-dating the version this feature was added.- Overrides:
getCategory
in classManagementLink
- Returns:
- An enum value of
ManagementLink.Category
.
-
doConfigure
@POST public void doConfigure(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException, Descriptor.FormException - Throws:
IOException
jakarta.servlet.ServletException
Descriptor.FormException
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Throws:
Descriptor.FormException
-
getDisplayName
Description copied from interface:Action
Gets the string to be displayed. The convention is to capitalize the first letter of each word, such as "Test Result".- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- Returns:
- Can be null in case the action is hidden.
-
getDescription
Description copied from class:ManagementLink
Returns a short description of what this link does. This text is the one that's displayed in grey. This can include HTML, although the use of block tags is highly discouraged. Optional.- Overrides:
getDescription
in classManagementLink
-
getIconFileName
Description copied from class:ManagementLink
Mostly works likeAction.getIconFileName()
, except that the expected icon format is SVG. So if you give just a file name, "/images/svgs" will be assumed.- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classManagementLink
- Returns:
- As a special case, return null to exclude this object from the management link.
This is useful for defining
ManagementLink
that only shows up under certain circumstances. - See Also:
-
getUrlName
Description copied from class:ManagementLink
Gets the URL path name.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 rootJenkins
object.- Specified by:
getUrlName
in interfaceAction
- Specified by:
getUrlName
in classManagementLink
- Returns:
- null if this action object doesn't need to be bound to web
(when you do that, be sure to also return null from
Action.getIconFileName()
. - See Also:
-
getRequiredPermission
Description copied from class:ManagementLink
Returns the permission required for user to see this management link on the "Manage Jenkins" page (ManageJenkinsAction
). Historically, this returned null, which amounted to the same behavior, asJenkins.ADMINISTER
was required to access the page.- Overrides:
getRequiredPermission
in classManagementLink
- Returns:
- the permission required for the link to be shown on "Manage Jenkins".
-
getDescriptor
Description copied from interface:Describable
Gets the descriptor for this instance.Descriptor
is a singleton for every concreteDescribable
implementation, so ifa.getClass() == b.getClass()
then by defaulta.getDescriptor() == b.getDescriptor()
as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)- Specified by:
getDescriptor
in interfaceDescribable<GlobalSecurityConfiguration>
- See Also:
-