Class BitbucketWebhookClientImpl
java.lang.Object
com.atlassian.bitbucket.jenkins.internal.client.BitbucketWebhookClientImpl
- All Implemented Interfaces:
BitbucketWebhookClient
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteWebhook(int webhookId) deletes a webhook with given idgetWebhooks(String... eventIdFilter) Returns a stream of existing webhooks.registerWebhook(BitbucketWebhookRequest request) Registers the given webhook in the Bitbucket Server.updateWebhook(int id, BitbucketWebhookRequest request) Updates the existing webhook
-
Method Details
-
deleteWebhook
public void deleteWebhook(int webhookId) Description copied from interface:BitbucketWebhookClientdeletes a webhook with given id- Specified by:
deleteWebhookin interfaceBitbucketWebhookClient- Parameters:
webhookId- , webhook id.
-
updateWebhook
Description copied from interface:BitbucketWebhookClientUpdates the existing webhook- Specified by:
updateWebhookin interfaceBitbucketWebhookClient- Parameters:
id- webhook identifierrequest- webhook with update field- Returns:
- updated webhook
-
getWebhooks
Description copied from interface:BitbucketWebhookClientReturns a stream of existing webhooks. Result could be further filtered by passing in event id filters. every subsequent fetch ofBitbucketPageresults in a remote call to Bitbucket server.- Specified by:
getWebhooksin interfaceBitbucketWebhookClient- Parameters:
eventIdFilter- , Event id filters. These ids are the same as the one recieved asBitbucketWebhookSupportedEvents- Returns:
- a stream of webhooks.
-
registerWebhook
Description copied from interface:BitbucketWebhookClientRegisters the given webhook in the Bitbucket Server.- Specified by:
registerWebhookin interfaceBitbucketWebhookClient- Parameters:
request- Webhook details- Returns:
- returns the registered webhook
-