Class WebhookRegistryImpl
java.lang.Object
com.atlassian.crowd.manager.webhook.WebhookRegistryImpl
- All Implemented Interfaces:
WebhookRegistry
A manager for Webhooks
- Since:
- v2.7
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WebhookRegistryImpl
-
-
Method Details
-
add
Description copied from interface:WebhookRegistry
Adds a new Webhook, if it does not exist previously.- Specified by:
add
in interfaceWebhookRegistry
- Returns:
- the new Webhook, or the existing one, if a Webhook for the same application and endpoint was previously registered.
-
remove
- Specified by:
remove
in interfaceWebhookRegistry
- Throws:
WebhookNotFoundException
-
findById
- Specified by:
findById
in interfaceWebhookRegistry
- Throws:
WebhookNotFoundException
-
findAll
- Specified by:
findAll
in interfaceWebhookRegistry
-
update
Description copied from interface:WebhookRegistry
Updates an existing Webhook.- Specified by:
update
in interfaceWebhookRegistry
- 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.
-