jp.ikedam.jenkins.plugins.updatesitesmanager
Class DescribedUpdateSite

java.lang.Object
  extended by hudson.model.UpdateSite
      extended by jp.ikedam.jenkins.plugins.updatesitesmanager.DescribedUpdateSite
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<DescribedUpdateSite>
Direct Known Subclasses:
ManagedUpdateSite

public abstract class DescribedUpdateSite
extends hudson.model.UpdateSite
implements hudson.model.Describable<DescribedUpdateSite>, hudson.ExtensionPoint

Base for UpdateSite that have Descriptor.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.UpdateSite
hudson.model.UpdateSite.Data, hudson.model.UpdateSite.Entry, hudson.model.UpdateSite.Plugin
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.UpdateSite
neverUpdate
 
Constructor Summary
DescribedUpdateSite(String id, String url)
          Constructor
 
Method Summary
static hudson.DescriptorExtensionList<DescribedUpdateSite,DescribedUpdateSiteDescriptopr> all()
          Returns all DescribedUpdateSite classes registered to Jenkins.
 List<hudson.model.UpdateSite.Plugin> getAvailables()
          Returns a list of plugins that should be shown in the "available" tab.
 DescribedUpdateSiteDescriptopr getDescriptor()
          Returns the descriptor for this class.
 String getNote()
          Returns note Provided for users to note about this UpdateSite.
 List<hudson.model.UpdateSite.Plugin> getUpdates()
          Returns the list of plugins that are updates to currently installed ones.
 boolean hasUpdates()
          Does any of the plugin has updates? Always returns false when disabled.
 boolean isDisabled()
          Returns whether this UpdateSite is disabled.
 boolean isDue()
          Returns true if it's time for us to check for new version.
 
Methods inherited from class hudson.model.UpdateSite
doInvalidateData, doPostBack, doVerifySignature, getApi, getConnectionCheckUrl, getData, getDataTimestamp, getDownloadUrl, getId, getJSONObject, getJsonSignatureValidator, getPlugin, getUrl, isLegacyDefault, updateDirectly, updateDirectlyNow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescribedUpdateSite

public DescribedUpdateSite(String id,
                           String url)
Constructor

Parameters:
id -
url -
Method Detail

isDisabled

public boolean isDisabled()
Returns whether this UpdateSite is disabled. Returning true makes Jenkins ignore the plugins in this UpdateSite.

Returns:
whether this UpdateSite is disabled.

getNote

public String getNote()
Returns note Provided for users to note about this UpdateSite. Used only for displaying purpose.

Returns:
note

getAvailables

public List<hudson.model.UpdateSite.Plugin> getAvailables()
Returns a list of plugins that should be shown in the "available" tab. Returns nothing when disabled.

Overrides:
getAvailables in class hudson.model.UpdateSite
Returns:
See Also:
UpdateSite.getAvailables()

getUpdates

public List<hudson.model.UpdateSite.Plugin> getUpdates()
Returns the list of plugins that are updates to currently installed ones. Returns nothing when disabled.

Overrides:
getUpdates in class hudson.model.UpdateSite
Returns:
See Also:
UpdateSite.getUpdates()

isDue

public boolean isDue()
Returns true if it's time for us to check for new version. Always returns false when disabled.

Overrides:
isDue in class hudson.model.UpdateSite
Returns:
See Also:
UpdateSite.isDue()

hasUpdates

public boolean hasUpdates()
Does any of the plugin has updates? Always returns false when disabled.

Overrides:
hasUpdates in class hudson.model.UpdateSite
Returns:
any of the plugin has updates?
See Also:
UpdateSite.hasUpdates()

all

public static hudson.DescriptorExtensionList<DescribedUpdateSite,DescribedUpdateSiteDescriptopr> all()
Returns all DescribedUpdateSite classes registered to Jenkins.

Returns:
the list of Descriptor of DescribedUpdateSite subclasses.

getDescriptor

public DescribedUpdateSiteDescriptopr getDescriptor()
Returns the descriptor for this class.

Specified by:
getDescriptor in interface hudson.model.Describable<DescribedUpdateSite>
Returns:
the descriptor for this class.
See Also:
Describable.getDescriptor()


Copyright © 2004-2016. All Rights Reserved.