public final class ModulePreviewApiKeys.Async
extends java.lang.Object
| Constructor and Description |
|---|
Async() |
| Modifier and Type | Method and Description |
|---|---|
CMACallback<CMAArray<CMAPreviewApiKey>> |
fetchAll(CMACallback<CMAArray<CMAPreviewApiKey>> callback)
Fetch all preview api keys.
|
CMACallback<CMAArray<CMAPreviewApiKey>> |
fetchAll(java.lang.String spaceId,
CMACallback<CMAArray<CMAPreviewApiKey>> callback)
Fetch all preview api keys.
|
CMACallback<CMAPreviewApiKey> |
fetchOne(java.lang.String keyId,
CMACallback<CMAPreviewApiKey> callback)
Fetch only one preview api key.
|
CMACallback<CMAPreviewApiKey> |
fetchOne(java.lang.String spaceId,
java.lang.String keyId,
CMACallback<CMAPreviewApiKey> callback)
Fetch only one preview api key.
|
public CMACallback<CMAArray<CMAPreviewApiKey>> fetchAll(CMACallback<CMAArray<CMAPreviewApiKey>> callback)
callback - the callback to be informed about success or failure.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<CMAPreviewApiKey>> fetchAll(java.lang.String spaceId, CMACallback<CMAArray<CMAPreviewApiKey>> callback)
spaceId - the id of the space this is valid on.callback - the callback to be informed about success or failure.java.lang.IllegalArgumentException - if spaceId is null.public CMACallback<CMAPreviewApiKey> fetchOne(java.lang.String keyId, CMACallback<CMAPreviewApiKey> callback)
keyId - the id of the key itself.callback - the callback to be called once the key is available.java.lang.IllegalArgumentException - if configured spaceId is null.java.lang.IllegalArgumentException - if keyId is null.CMANotWithEnvironmentsException - if environmentId was set using
CMAClient.Builder.setEnvironmentId(String).CMAClient.Builder.setSpaceId(String)public CMACallback<CMAPreviewApiKey> fetchOne(java.lang.String spaceId, java.lang.String keyId, CMACallback<CMAPreviewApiKey> callback)
spaceId - the id of the space this is valid on.keyId - the id of the key itself.callback - the callback to be called once the key is available.java.lang.IllegalArgumentException - if spaceId is null.java.lang.IllegalArgumentException - if keyId is null.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.