com.atlassian.crowd.dao.webhook
Class NoopWebhookDAOImpl

java.lang.Object
  extended by com.atlassian.crowd.dao.webhook.NoopWebhookDAOImpl
All Implemented Interfaces:
WebhookDAO

public class NoopWebhookDAOImpl
extends Object
implements WebhookDAO

A NOP implementation of WebhookDAO. Not used by Crowd or Horde, but provided for JIRA. Returns an immutable empty list of Webhooks.

Since:
v2.7

Constructor Summary
NoopWebhookDAOImpl()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoopWebhookDAOImpl

public NoopWebhookDAOImpl()
Method Detail

findById

public Webhook findById(Long webhookId)
                 throws WebhookNotFoundException
Specified by:
findById in interface WebhookDAO
Throws:
WebhookNotFoundException

findByApplicationAndEndpointUrl

public Webhook findByApplicationAndEndpointUrl(Application application,
                                               String endpointUrl)
                                        throws WebhookNotFoundException
Specified by:
findByApplicationAndEndpointUrl in interface WebhookDAO
Throws:
WebhookNotFoundException

add

public Webhook add(Webhook webhook)
Specified by:
add in interface WebhookDAO

remove

public void remove(Webhook webhook)
            throws WebhookNotFoundException
Specified by:
remove in interface WebhookDAO
Throws:
WebhookNotFoundException

findAll

public Iterable<Webhook> findAll()
Specified by:
findAll in interface WebhookDAO

update

public Webhook update(Webhook webhook)
               throws WebhookNotFoundException
Specified by:
update in interface WebhookDAO
Throws:
WebhookNotFoundException


Copyright © 2013 Atlassian. All Rights Reserved.