@Transactional public class WebhookRegistryImpl extends Object implements WebhookRegistry
| Constructor and Description |
|---|
WebhookRegistryImpl(WebhookDAO webhookDAO) |
| Modifier and Type | Method and Description |
|---|---|
Webhook |
add(Webhook webhook)
Adds a new Webhook, if it does not exist previously.
|
Iterable<Webhook> |
findAll() |
Webhook |
findById(long webhookId) |
void |
remove(Webhook webhook) |
Webhook |
update(Webhook webhook)
Updates an existing Webhook.
|
public WebhookRegistryImpl(WebhookDAO webhookDAO)
public Webhook add(Webhook webhook)
WebhookRegistryadd in interface WebhookRegistrypublic void remove(Webhook webhook) throws WebhookNotFoundException
remove in interface WebhookRegistryWebhookNotFoundExceptionpublic Webhook findById(long webhookId) throws WebhookNotFoundException
findById in interface WebhookRegistryWebhookNotFoundExceptionpublic Iterable<Webhook> findAll()
findAll in interface WebhookRegistrypublic Webhook update(Webhook webhook) throws WebhookNotFoundException
WebhookRegistryupdate in interface WebhookRegistrywebhook - a template to modify an existing Webhook. Must have an ID.WebhookNotFoundException - if there is not any Webhook with the ID of the template.Copyright © 2023 Atlassian. All rights reserved.