Class GlobalCredentialsConfiguration
java.lang.Object
hudson.model.ManagementLink
com.cloudbees.plugins.credentials.GlobalCredentialsConfiguration
- All Implemented Interfaces:
ExtensionPoint,Action,Describable<GlobalCredentialsConfiguration>,ModelObject
@Extension(ordinal=2.147483435E9)
public class GlobalCredentialsConfiguration
extends ManagementLink
implements Describable<GlobalCredentialsConfiguration>
ManagementLink to expose the global credentials configuration screen.- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSecurity related configurations.static final classOurDescriptor.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class hudson.model.ManagementLink
LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoConfigure(org.kohsuke.stapler.StaplerRequest2 req) Handles the form submissionAllow users withJenkins.SYSTEM_READto view (but not modify) this configuration screen, matchingGlobalSecurityConfiguration's read-only behavior.Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategory, getRequiresConfirmation, getRequiresPOST
-
Field Details
-
FILTER
Our filter.Any
DescriptorwhoseDescriptor.getCategory()is aninstanceofGlobalCredentialsConfiguration.Categoryis rendered on this page viaindex.jelly, whichst:includes the descriptor's fullDescriptor.getGlobalConfigPage()— not just simple properties such asgetId()/getDisplayName(). SincegetRequiredPermission()only requiresJenkins.SYSTEM_READ, any descriptor that opts intoGlobalCredentialsConfiguration.Categorymust ensure its global config page renders correctly in read-only mode.
-
-
Constructor Details
-
GlobalCredentialsConfiguration
public GlobalCredentialsConfiguration()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classManagementLink
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getDescription
- Overrides:
getDescriptionin classManagementLink
-
getUrlName
- Specified by:
getUrlNamein interfaceAction- Specified by:
getUrlNamein classManagementLink
-
getCategoryName
- Overrides:
getCategoryNamein classManagementLink
-
getRequiredPermission
Allow users withJenkins.SYSTEM_READto view (but not modify) this configuration screen, matchingGlobalSecurityConfiguration's read-only behavior.- Overrides:
getRequiredPermissionin classManagementLink
-
doConfigure
@NonNull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.kohsuke.stapler.HttpResponse doConfigure(@NonNull org.kohsuke.stapler.StaplerRequest2 req) throws IOException, jakarta.servlet.ServletException, Descriptor.FormException Handles the form submission- Parameters:
req- the request.- Returns:
- the response.
- Throws:
IOException- if something goes wrong.jakarta.servlet.ServletException- if something goes wrong.Descriptor.FormException- if something goes wrong.
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<GlobalCredentialsConfiguration>
-