Class CloudWebhookManager
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookManager<CloudWebhookConfiguration>
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.cloud.CloudWebhookManager
- All Implemented Interfaces:
- BitbucketWebhookManager,- ExtensionPoint
@Extension
public class CloudWebhookManager
extends AbstractWebhookManager<CloudWebhookConfiguration>
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields inherited from class com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookManagercallbackURL, configuration
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidapply(BitbucketWebhookConfiguration configuration) The configuration that returned this implementation class.static voidread(BitbucketAuthenticatedClient client) Returns the list of all registered webhook at this repository related to this Jenkins.voidregister(BitbucketAuthenticatedClient client) Save a webhook (updating or creating a new one) using the actual configuration.voidremove(String webhookId, BitbucketAuthenticatedClient client) Remove the webhook from the Bitbucket repository with the given identifier.stats()Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookManagerbuildCacheKey, getEndpointJenkinsRootURL, isCacheEnabled, setCallbackURLMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManagerapply, supportedTraits, withTraits
- 
Constructor Details- 
CloudWebhookManagerpublic CloudWebhookManager()
 
- 
- 
Method Details- 
clearCachespublic static void clearCaches()
- 
stats
- 
applyDescription copied from interface:BitbucketWebhookManagerThe configuration that returned this implementation class.- Specified by:
- applyin interface- BitbucketWebhookManager
- Overrides:
- applyin class- AbstractWebhookManager<CloudWebhookConfiguration>
- Parameters:
- configuration- to apply
 
- 
read@NonNull public Collection<BitbucketWebHook> read(@NonNull BitbucketAuthenticatedClient client) throws IOException Description copied from interface:BitbucketWebhookManagerReturns the list of all registered webhook at this repository related to this Jenkins.- Parameters:
- client- authenticated to communicate with Bitbucket
- Returns:
- a list of registered BitbucketWebHook.
- Throws:
- IOException- in case of communication issue with Bitbucket
 
- 
removepublic void remove(@NonNull String webhookId, @NonNull BitbucketAuthenticatedClient client) throws IOException Description copied from interface:BitbucketWebhookManagerRemove the webhook from the Bitbucket repository with the given identifier.- Parameters:
- webhookId- webhook identifier to delete.
- client- authenticated to communicate with Bitbucket
- Throws:
- IOException- in case of communication issue with Bitbucket
 
- 
registerDescription copied from interface:BitbucketWebhookManagerSave a webhook (updating or creating a new one) using the actual configuration.- Parameters:
- client- authenticated to communicate with Bitbucket
- Throws:
- IOException- in case of communication issue with Bitbucket
 
 
-