com.atlassian.crowd.dao.webhook
Interface WebhookDAO

All Known Implementing Classes:
NoopWebhookDAOImpl, WebhookDAOHibernate

public interface WebhookDAO

Persists Webhooks.

Since:
v2.7

Method Summary
 Webhook add(Webhook webhook)
           
 Iterable<Webhook> findAll()
           
 Webhook findByApplicationAndEndpointUrl(Application application, String endpointUrl)
           
 Webhook findById(Long webhookId)
           
 void remove(Webhook webhook)
           
 Webhook update(Webhook webhook)
           
 

Method Detail

findById

Webhook findById(Long webhookId)
                 throws WebhookNotFoundException
Throws:
WebhookNotFoundException

findByApplicationAndEndpointUrl

Webhook findByApplicationAndEndpointUrl(Application application,
                                        String endpointUrl)
                                        throws WebhookNotFoundException
Throws:
WebhookNotFoundException

add

Webhook add(Webhook webhook)

remove

void remove(Webhook webhook)
            throws WebhookNotFoundException
Throws:
WebhookNotFoundException

findAll

Iterable<Webhook> findAll()

update

Webhook update(Webhook webhook)
               throws WebhookNotFoundException
Throws:
WebhookNotFoundException


Copyright © 2013 Atlassian. All Rights Reserved.