jp.ikedam.jenkins.plugins.updatesitesmanager
Class UpdateSitesManager

java.lang.Object
  extended by hudson.model.ManagementLink
      extended by jp.ikedam.jenkins.plugins.updatesitesmanager.UpdateSitesManager
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Action, hudson.model.ModelObject

@Extension(ordinal=2.147483237E9)
public class UpdateSitesManager
extends hudson.model.ManagementLink

Page for manage UpdateSites. Provides following page.


Nested Class Summary
static class UpdateSitesManager.IdExtractor
          Helps to check duplication
static class UpdateSitesManager.IsSiteManaged
          This predicate helps to filter which sites should be shown on UI as editable/not editable
static class UpdateSitesManager.WithBlankId
          Helps to check ids is blank
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static String URL
           
 
Fields inherited from class hudson.model.ManagementLink
LIST
 
Constructor Summary
UpdateSitesManager()
           
 
Method Summary
 void doUpdate(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, List<hudson.model.UpdateSite> managed)
          Update all registered sites with concatenation of managed and not managed
 String getDescription()
          Return the description shown in Manage Jenkins page.
 String getDisplayName()
          Return the name of the link shown in Manage Jenkins page.
 String getIconFileName()
          Return the icon file name shown in Manage Jenkins page.
 List<hudson.model.UpdateSite> getManagedUpdateSiteList()
          Return a list of custom UpdateSites registered in Jenkins.
 List<hudson.model.UpdateSite> getNotManagedUpdateSiteList()
          Return a list of not custom UpdateSites registered in Jenkins.
 List<DescribedUpdateSiteDescriptopr> getUpdateSiteDescriptorList()
          Returns all the registered DescribedUpdateSite.
 String getUrlName()
          Return the name used in url.
 
Methods inherited from class hudson.model.ManagementLink
all, getRequiredPermission, getRequiresConfirmation, getRequiresPOST
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL

public static final String URL
See Also:
Constant Field Values
Constructor Detail

UpdateSitesManager

public UpdateSitesManager()
Method Detail

getDisplayName

public String getDisplayName()
Return the name of the link shown in Manage Jenkins page.

Returns:
the name of the link.
See Also:
Action.getDisplayName()

getIconFileName

public String getIconFileName()
Return the icon file name shown in Manage Jenkins page.

Specified by:
getIconFileName in interface hudson.model.Action
Specified by:
getIconFileName in class hudson.model.ManagementLink
Returns:
icon file name
See Also:
ManagementLink.getIconFileName()

getDescription

public String getDescription()
Return the description shown in Manage Jenkins page.

Overrides:
getDescription in class hudson.model.ManagementLink
Returns:
the description
See Also:
ManagementLink.getDescription()

getUrlName

public String getUrlName()
Return the name used in url.

Specified by:
getUrlName in interface hudson.model.Action
Specified by:
getUrlName in class hudson.model.ManagementLink
Returns:
the name used in url.
See Also:
ManagementLink.getUrlName()

getManagedUpdateSiteList

public List<hudson.model.UpdateSite> getManagedUpdateSiteList()
Return a list of custom UpdateSites registered in Jenkins.

Returns:
a list of UpdateSites

getNotManagedUpdateSiteList

public List<hudson.model.UpdateSite> getNotManagedUpdateSiteList()
Return a list of not custom UpdateSites registered in Jenkins.

Returns:
a list of UpdateSites

getUpdateSiteDescriptorList

public List<DescribedUpdateSiteDescriptopr> getUpdateSiteDescriptorList()
Returns all the registered DescribedUpdateSite.

Returns:
a list of Desctiptor of DescribedUpdateSite.

doUpdate

@OnlyAdminister
@IgnoreNotPOST
public void doUpdate(org.kohsuke.stapler.StaplerRequest req,
                                                  org.kohsuke.stapler.StaplerResponse rsp,
                                                  @Sites
                                                  List<hudson.model.UpdateSite> managed)
              throws javax.servlet.ServletException,
                     IOException,
                     hudson.model.Descriptor.FormException
Update all registered sites with concatenation of managed and not managed

Parameters:
managed - managed sites form submitted form
Throws:
javax.servlet.ServletException
IOException
hudson.model.Descriptor.FormException


Copyright © 2004-2016. All Rights Reserved.