Interface WebhookRegistry
- All Known Implementing Classes:
WebhookRegistryImpl
public interface WebhookRegistry
A service interface that provides persistence for
Webhook
s.- Since:
- v2.7
-
Method Summary
-
Method Details
-
add
Adds a new Webhook, if it does not exist previously.- Returns:
- the new Webhook, or the existing one, if a Webhook for the same application and endpoint was previously registered.
-
remove
- Throws:
WebhookNotFoundException
-
findById
- Throws:
WebhookNotFoundException
-
findAll
-
update
Updates an existing Webhook.- Parameters:
webhook
- a template to modify an existing Webhook. Must have an ID.- Returns:
- the saved Webhook.
- Throws:
WebhookNotFoundException
- if there is not any Webhook with the ID of the template.
-