com.atlassian.crowd.plugin.rest.service.controller
public class WebhooksController extends AbstractResourceController
applicationManager, applicationService| Constructor and Description |
|---|
WebhooksController(ApplicationService applicationService,
ApplicationManager applicationManager) |
| Modifier and Type | Method and Description |
|---|---|
Webhook |
findWebhookById(String applicationName,
long webhookId) |
Webhook |
registerWebhook(String applicationName,
String endpointUrl,
String token) |
void |
unregisterWebhook(String applicationName,
long webhookId) |
getApplicationpublic WebhooksController(ApplicationService applicationService, ApplicationManager applicationManager)
public Webhook findWebhookById(String applicationName, long webhookId) throws ApplicationPermissionException, WebhookNotFoundException
public Webhook registerWebhook(String applicationName, String endpointUrl, @Nullable String token) throws InvalidWebhookEndpointException
InvalidWebhookEndpointExceptionpublic void unregisterWebhook(String applicationName, long webhookId) throws ApplicationPermissionException, WebhookNotFoundException
Copyright © 2015 Atlassian. All Rights Reserved.