com.atlassian.crowd.plugin.rest.service.controller
Class WebhooksController

java.lang.Object
  extended by com.atlassian.crowd.plugin.rest.service.controller.AbstractResourceController
      extended by com.atlassian.crowd.plugin.rest.service.controller.WebhooksController

public class WebhooksController
extends AbstractResourceController

Webhooks controller

Since:
v2.7

Field Summary
 
Fields inherited from class com.atlassian.crowd.plugin.rest.service.controller.AbstractResourceController
applicationManager, applicationService
 
Constructor Summary
WebhooksController(ApplicationService applicationService, ApplicationManager applicationManager)
           
 
Method Summary
 Webhook findWebhookById(String applicationName, long webhookId)
           
 Webhook registerWebhook(String applicationName, String endpointUrl, String token)
           
 void unregisterWebhook(String applicationName, long webhookId)
           
 
Methods inherited from class com.atlassian.crowd.plugin.rest.service.controller.AbstractResourceController
getApplication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebhooksController

public WebhooksController(ApplicationService applicationService,
                          ApplicationManager applicationManager)
Method Detail

findWebhookById

public Webhook findWebhookById(String applicationName,
                               long webhookId)
                        throws ApplicationPermissionException,
                               WebhookNotFoundException
Throws:
ApplicationPermissionException
WebhookNotFoundException

registerWebhook

public Webhook registerWebhook(String applicationName,
                               String endpointUrl,
                               @Nullable
                               String token)
                        throws InvalidWebhookEndpointException
Throws:
InvalidWebhookEndpointException

unregisterWebhook

public void unregisterWebhook(String applicationName,
                              long webhookId)
                       throws ApplicationPermissionException,
                              WebhookNotFoundException
Throws:
ApplicationPermissionException
WebhookNotFoundException


Copyright © 2013 Atlassian. All Rights Reserved.