@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)
WebhookRegistry
add
in interface WebhookRegistry
public void remove(Webhook webhook) throws WebhookNotFoundException
remove
in interface WebhookRegistry
WebhookNotFoundException
public Webhook findById(long webhookId) throws WebhookNotFoundException
findById
in interface WebhookRegistry
WebhookNotFoundException
public Iterable<Webhook> findAll()
findAll
in interface WebhookRegistry
public Webhook update(Webhook webhook) throws WebhookNotFoundException
WebhookRegistry
update
in interface WebhookRegistry
webhook
- 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 © 2020 Atlassian. All rights reserved.