public final class ModuleWebhooks.Async
extends java.lang.Object
Use ModuleWebhooks.async() to retrieve this class, to be able to do asynchronous
requests to Contentful.
| Constructor and Description |
|---|
Async() |
| Modifier and Type | Method and Description |
|---|---|
CMACallback<CMAWebhookCallDetail> |
callDetails(java.lang.String spaceId,
java.lang.String webhookId,
java.lang.String callId,
CMACallback<CMAWebhookCallDetail> callback)
Asynchronous variant of
ModuleWebhooks.callDetails(String, String, String) |
CMACallback<CMAArray<CMAWebhookCall>> |
calls(java.lang.String spaceId,
java.lang.String webhookId,
CMACallback<CMAArray<CMAWebhookCall>> callback)
Asynchronous variant of
ModuleWebhooks.calls(String, String) |
CMACallback<CMAWebhook> |
create(java.lang.String spaceId,
CMAWebhook webhook,
CMACallback<CMAWebhook> callback)
Asynchronous variant of
ModuleWebhooks.create(String, CMAWebhook) |
CMACallback<CMAWebhook> |
create(java.lang.String spaceId,
java.lang.String webhookId,
CMAWebhook webhook,
CMACallback<CMAWebhook> callback)
Asynchronous variant of
ModuleWebhooks.create(String, String, CMAWebhook) |
CMACallback<java.lang.Integer> |
delete(java.lang.String spaceId,
java.lang.String webhookId,
CMACallback<java.lang.Integer> callback)
Asynchronous variant of
ModuleWebhooks.delete(String, String) |
CMACallback<CMAArray<CMAWebhook>> |
fetchAll(java.lang.String spaceId,
CMACallback<CMAArray<CMAWebhook>> callback)
Asynchronous variant of
ModuleWebhooks.fetchAll(String) |
CMACallback<CMAArray<CMAWebhook>> |
fetchAll(java.lang.String spaceId,
java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMAWebhook>> callback)
Asynchronous variant of
ModuleWebhooks.fetchAll(String, Map) |
CMACallback<CMAWebhook> |
fetchOne(java.lang.String spaceId,
java.lang.String webhookId,
CMACallback<CMAWebhook> callback)
Asynchronous variant of
ModuleWebhooks.fetchOne(String, String) |
CMACallback<CMAWebhookHealth> |
health(java.lang.String spaceId,
java.lang.String webhookId,
CMACallback<CMAWebhookHealth> callback)
Asynchronous variant of
ModuleWebhooks.health(String, String) |
CMACallback<CMAWebhook> |
update(CMAWebhook webhook,
CMACallback<CMAWebhook> callback)
Asynchronous variant of
ModuleWebhooks.update(CMAWebhook) |
public CMACallback<CMAWebhook> create(java.lang.String spaceId, CMAWebhook webhook, CMACallback<CMAWebhook> callback)
ModuleWebhooks.create(String, CMAWebhook)spaceId - id of the space to be used.webhook - data to be used for creation.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if space's id is null.java.lang.IllegalArgumentException - if webhook is null.public CMACallback<CMAWebhook> create(java.lang.String spaceId, java.lang.String webhookId, CMAWebhook webhook, CMACallback<CMAWebhook> callback)
ModuleWebhooks.create(String, String, CMAWebhook)spaceId - id of the space to be used.webhookId - id for the webhook to be created/updated.webhook - data to be used for creation.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if space's id is null.java.lang.IllegalArgumentException - if webhookId is null.java.lang.IllegalArgumentException - if webhook is null.public CMACallback<java.lang.Integer> delete(java.lang.String spaceId, java.lang.String webhookId, CMACallback<java.lang.Integer> callback)
ModuleWebhooks.delete(String, String)spaceId - id of the space to be used.webhookId - id of the webhook to be deleted.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if spaceId is null.java.lang.IllegalArgumentException - if webhookId is null.public CMACallback<CMAArray<CMAWebhook>> fetchAll(java.lang.String spaceId, CMACallback<CMAArray<CMAWebhook>> callback)
ModuleWebhooks.fetchAll(String)spaceId - id of the space to be used.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if spaceId is null.public CMACallback<CMAArray<CMAWebhook>> fetchAll(java.lang.String spaceId, java.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMAWebhook>> callback)
ModuleWebhooks.fetchAll(String, Map)spaceId - id of the space to be used.query - description map of which webhooks to be returned.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if spaceId is null.public CMACallback<CMAWebhook> fetchOne(java.lang.String spaceId, java.lang.String webhookId, CMACallback<CMAWebhook> callback)
ModuleWebhooks.fetchOne(String, String)spaceId - id of the space to be used.webhookId - id of the webhook to be retrieved.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if spaceId is null.java.lang.IllegalArgumentException - if webhookId is null.public CMACallback<CMAWebhook> update(CMAWebhook webhook, CMACallback<CMAWebhook> callback)
ModuleWebhooks.update(CMAWebhook)webhook - data to be used for update.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if webhook is null.java.lang.IllegalArgumentException - if webhookId is null.java.lang.IllegalArgumentException - if spaceId is null.java.lang.IllegalArgumentException - if version is null.public CMACallback<CMAArray<CMAWebhookCall>> calls(java.lang.String spaceId, java.lang.String webhookId, CMACallback<CMAArray<CMAWebhookCall>> callback)
ModuleWebhooks.calls(String, String)spaceId - id of the space to be used.webhookId - id to be used to retrieve calls from.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if spaceId is null.java.lang.IllegalArgumentException - if webhook is null.public CMACallback<CMAWebhookCallDetail> callDetails(java.lang.String spaceId, java.lang.String webhookId, java.lang.String callId, CMACallback<CMAWebhookCallDetail> callback)
ModuleWebhooks.callDetails(String, String, String)spaceId - id of the space to be used.webhookId - id of webhook.callId - id of call.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if spaceId is null.java.lang.IllegalArgumentException - if webhook is null.java.lang.IllegalArgumentException - if callId is null.public CMACallback<CMAWebhookHealth> health(java.lang.String spaceId, java.lang.String webhookId, CMACallback<CMAWebhookHealth> callback)
ModuleWebhooks.health(String, String)spaceId - id of the space to be used.webhookId - id to be used for healthy check.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if spaceId is null.java.lang.IllegalArgumentException - if webhook is null.Copyright © 2018 Contentful, GmbH.. All Rights Reserved.