com.atlassian.crowd.manager.webhook
Class WebhookRegistryImpl

java.lang.Object
  extended by com.atlassian.crowd.manager.webhook.WebhookRegistryImpl
All Implemented Interfaces:
WebhookRegistry

@Transactional
public class WebhookRegistryImpl
extends Object
implements WebhookRegistry

A manager for Webhooks

Since:
v2.7

Constructor Summary
WebhookRegistryImpl(WebhookDAO webhookDAO)
           
 
Method Summary
 Webhook add(Webhook webhook)
           
 Iterable<Webhook> findAll()
           
 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

WebhookRegistryImpl

public WebhookRegistryImpl(WebhookDAO webhookDAO)
Method Detail

add

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

remove

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

findById

public Webhook findById(long webhookId)
                 throws WebhookNotFoundException
Specified by:
findById in interface WebhookRegistry
Throws:
WebhookNotFoundException

findAll

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

update

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


Copyright © 2016 Atlassian. All Rights Reserved.