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 Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookManager
callbackURL, configuration -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AbstractWebhookManager
buildCacheKey, getEndpointJenkinsRootURL, isCacheEnabled, setCallbackURLMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager
apply, supportedTraits, withTraits
-
Constructor Details
-
CloudWebhookManager
public CloudWebhookManager()
-
-
Method Details
-
clearCaches
public static void clearCaches() -
stats
-
apply
Description copied from interface:BitbucketWebhookManagerThe configuration that returned this implementation class.- Specified by:
applyin interfaceBitbucketWebhookManager- Overrides:
applyin classAbstractWebhookManager<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
-
remove
public 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
-
register
Description 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
-