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() |
public CMACallback<CMAWebhook> create(CMAWebhook webhook, CMACallback<CMAWebhook> callback)
ModuleWebhooks.create(String, CMAWebhook)webhook - data to be used for creation.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if configured space id is null.java.lang.IllegalArgumentException - if webhook is null.CMANotWithEnvironmentsException - if environmentId was set using
CMAClient.Builder.setEnvironmentId(String).CMAClient.Builder.setSpaceId(String)public CMACallback<CMAWebhook> create(java.lang.String spaceId, CMAWebhook webhook, CMACallback<CMAWebhook> callback)
ModuleWebhooks.create(String, CMAWebhook)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String) and will ignore
CMAClient.Builder.setEnvironmentId(String).
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 id is null.java.lang.IllegalArgumentException - if webhook is null.public CMACallback<java.lang.Integer> delete(CMAWebhook webhook, CMACallback<java.lang.Integer> callback)
ModuleWebhooks.delete(CMAWebhook)webhook - 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(CMACallback<CMAArray<CMAWebhook>> callback)
ModuleWebhooks.fetchAll()callback - the callback to be called once finished.java.lang.IllegalArgumentException - if spaceId is null.CMANotWithEnvironmentsException - if environmentId was set using
CMAClient.Builder.setEnvironmentId(String).CMAClient.Builder.setSpaceId(String)public CMACallback<CMAArray<CMAWebhook>> fetchAll(java.lang.String spaceId, CMACallback<CMAArray<CMAWebhook>> callback)
ModuleWebhooks.fetchAll(String)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String) and will ignore
CMAClient.Builder.setEnvironmentId(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.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMAWebhook>> callback)
ModuleWebhooks.fetchAll(Map)query - description map of which webhooks to be returned.callback - the callback to be called once finished.java.lang.IllegalArgumentException - if configured spaceId is null.CMANotWithEnvironmentsException - if environmentId was set using
CMAClient.Builder.setEnvironmentId(String).CMAClient.Builder.setSpaceId(String)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)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String) and will ignore
CMAClient.Builder.setEnvironmentId(String).
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 webhookId, CMACallback<CMAWebhook> callback)
ModuleWebhooks.fetchOne(String)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.CMANotWithEnvironmentsException - if environmentId was set using
CMAClient.Builder.setEnvironmentId(String).CMAClient.Builder.setSpaceId(String)public CMACallback<CMAWebhook> fetchOne(java.lang.String spaceId, java.lang.String webhookId, CMACallback<CMAWebhook> callback)
ModuleWebhooks.fetchOne(String, String)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String) and will ignore
CMAClient.Builder.setEnvironmentId(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(CMAWebhook webhook, CMACallback<CMAArray<CMAWebhookCall>> callback)
ModuleWebhooks.calls(CMAWebhook)webhook - 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(CMAWebhookCall call, CMACallback<CMAWebhookCallDetail> callback)
ModuleWebhooks.callDetails(CMAWebhookCall)call - call to get more details about.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(CMAWebhook webhook, CMACallback<CMAWebhookHealth> callback)
ModuleWebhooks.health(CMAWebhook)webhook - webhook 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 © 2019 Contentful, GmbH.. All Rights Reserved.