Class WebhooksController
java.lang.Object
com.atlassian.crowd.plugin.rest.service.controller.AbstractResourceController
com.atlassian.crowd.plugin.rest.service.controller.WebhooksController
Webhooks controller
- Since:
- v2.7
-
Constructor Summary
ConstructorsConstructorDescriptionWebhooksController
(ApplicationService applicationService, AuthenticatedApplicationHolder authenticatedApplicationHolder) -
Method Summary
Modifier and TypeMethodDescriptionfindWebhookById
(long webhookId) registerWebhook
(String endpointUrl, String token) void
unregisterWebhook
(long webhookId) Methods inherited from class com.atlassian.crowd.plugin.rest.service.controller.AbstractResourceController
getAuthenticatedApplication
-
Constructor Details
-
WebhooksController
@Inject public WebhooksController(ApplicationService applicationService, AuthenticatedApplicationHolder authenticatedApplicationHolder)
-
-
Method Details
-
findWebhookById
public Webhook findWebhookById(long webhookId) throws ApplicationPermissionException, WebhookNotFoundException -
registerWebhook
public Webhook registerWebhook(String endpointUrl, @Nullable String token) throws InvalidWebhookEndpointException - Throws:
InvalidWebhookEndpointException
-
unregisterWebhook
public void unregisterWebhook(long webhookId) throws ApplicationPermissionException, WebhookNotFoundException
-