Class UpdateSitesManager
java.lang.Object
hudson.model.ManagementLink
jp.ikedam.jenkins.plugins.updatesitesmanager.UpdateSitesManager
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
Page for manage UpdateSites.
Provides following page.
- Manage UpdateSites, shown in Manage Jenkins page
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Helps to check duplicationstatic class
This predicate helps to filter which sites should be shown on UI as editable/not editablestatic class
Helps to check ids is blankNested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.Category
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 TypeMethodDescriptionvoid
doUpdate
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, List<UpdateSite> managed) Update all registered sites with concatenation of managed and not managedReturn the description shown in Manage Jenkins page.Return the name of the link shown in Manage Jenkins page.Return the icon file name shown in Manage Jenkins page.Return a list of custom UpdateSites registered in Jenkins.Return a list of not custom UpdateSites registered in Jenkins.Returns all the registered DescribedUpdateSite.Return the name used in url.Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategoryName, getRequiredPermission, getRequiresConfirmation, getRequiresPOST
-
Field Details
-
URL
- See Also:
-
-
Constructor Details
-
UpdateSitesManager
public UpdateSitesManager()
-
-
Method Details
-
getDisplayName
Return the name of the link shown in Manage Jenkins page.- Returns:
- the name of the link.
- See Also:
-
getIconFileName
Return the icon file name shown in Manage Jenkins page.- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classManagementLink
- Returns:
- icon file name
- See Also:
-
getCategory
- Overrides:
getCategory
in classManagementLink
-
getDescription
Return the description shown in Manage Jenkins page.- Overrides:
getDescription
in classManagementLink
- Returns:
- the description
- See Also:
-
getUrlName
Return the name used in url.- Specified by:
getUrlName
in interfaceAction
- Specified by:
getUrlName
in classManagementLink
- Returns:
- the name used in url.
- See Also:
-
getManagedUpdateSiteList
Return a list of custom UpdateSites registered in Jenkins.- Returns:
- a list of UpdateSites
-
getNotManagedUpdateSiteList
Return a list of not custom UpdateSites registered in Jenkins.- Returns:
- a list of UpdateSites
-
getUpdateSiteDescriptorList
Returns all the registered DescribedUpdateSite.- Returns:
- a list of Descriptor of DescribedUpdateSite.
-
doUpdate
public void doUpdate(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @Sites List<UpdateSite> managed) throws IOException, Descriptor.FormException, jakarta.servlet.ServletException Update all registered sites with concatenation of managed and not managed- Parameters:
req
- the requestrsp
- the responsemanaged
- managed sites form submitted form- Throws:
jakarta.servlet.ServletException
- thrown when failed to generate responseIOException
- thrown when failed to generate response or to save configurationsDescriptor.FormException
- thrown when inappropriate configurations
-