Class DescribedUpdateSite
java.lang.Object
hudson.model.UpdateSite
jp.ikedam.jenkins.plugins.updatesitesmanager.DescribedUpdateSite
- All Implemented Interfaces:
ExtensionPoint
,Describable<DescribedUpdateSite>
- Direct Known Subclasses:
ManagedUpdateSite
public abstract class DescribedUpdateSite
extends UpdateSite
implements Describable<DescribedUpdateSite>, ExtensionPoint
Base for UpdateSite that have Descriptor.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.UpdateSite
UpdateSite.Data, UpdateSite.Deprecation, UpdateSite.Entry, UpdateSite.IssueTracker, UpdateSite.Plugin, UpdateSite.Warning, UpdateSite.WarningType, UpdateSite.WarningVersionRange
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.UpdateSite
neverUpdate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()
Returns all DescribedUpdateSite classes registered to Jenkins.Returns a list of plugins that should be shown in the "available" tab.Returns the descriptor for this class.getNote()
Returns noteReturns the list of plugins that have updates for currently installed ones.boolean
Does any of the plugin has updates?boolean
Returns whether this UpdateSite is disabled.boolean
isDue()
Returns true if it's time for us to check for newer versions.Methods inherited from class hudson.model.UpdateSite
connect, createInstallationJob, doInvalidateData, doVerifySignature, getApi, getConnectionCheckUrl, getData, getDataTimestamp, getDownloadUrl, getId, getJSONObject, getJsonSignatureValidator, getJsonSignatureValidator, getMetadataUrlForDownloadable, getPlugin, getSuggestedPluginsUrl, getUrl, isLegacyDefault, preValidate, updateData, updateDirectly, updateDirectly, updateDirectlyNow, updateDirectlyNow, verifySignatureInternal
-
Constructor Details
-
DescribedUpdateSite
Constructor- Parameters:
id
- id for the siteurl
- URL for the site
-
-
Method Details
-
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
Returns noteProvided for users to note about this UpdateSite. Used only for displaying purpose.
- Returns:
- note
-
getAvailables
Returns a list of plugins that should be shown in the "available" tab.Returns nothing when disabled.
- Overrides:
getAvailables
in classUpdateSite
- Returns:
- list of available plugins
- See Also:
-
getUpdates
Returns the list of plugins that have updates for currently installed ones.Returns nothing when disabled.
- Overrides:
getUpdates
in classUpdateSite
- Returns:
- list of plugins with updates
- See Also:
-
isDue
public boolean isDue()Returns true if it's time for us to check for newer versions.Always returns false when disabled.
- Overrides:
isDue
in classUpdateSite
- Returns:
true
if time to check for newer versions.- See Also:
-
hasUpdates
public boolean hasUpdates()Does any of the plugin has updates?Always returns false when disabled.
- Overrides:
hasUpdates
in classUpdateSite
- Returns:
- any of the plugin has updates?
- See Also:
-
all
Returns all DescribedUpdateSite classes registered to Jenkins.- Returns:
- the list of Descriptor of DescribedUpdateSite subclasses.
-
getDescriptor
Returns the descriptor for this class.- Specified by:
getDescriptor
in interfaceDescribable<DescribedUpdateSite>
- Returns:
- the descriptor for this class.
- See Also:
-