public final class ModuleApiKeys.Async
extends java.lang.Object
Constructor and Description |
---|
Async() |
Modifier and Type | Method and Description |
---|---|
CMACallback<CMAApiKey> |
create(CMAApiKey key,
CMACallback<CMAApiKey> callback)
Create a new delivery api key.
|
CMACallback<CMAApiKey> |
create(java.lang.String spaceId,
CMAApiKey key,
CMACallback<CMAApiKey> callback)
Create a new delivery api key.
|
CMACallback<java.lang.Integer> |
delete(CMAApiKey key,
CMACallback<java.lang.Integer> callback)
Delete a given delivery api key.
|
CMACallback<CMAArray<CMAApiKey>> |
fetchAll(CMACallback<CMAArray<CMAApiKey>> callback)
Fetch all delivery api keys.
|
CMACallback<CMAArray<CMAApiKey>> |
fetchAll(java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMAApiKey>> callback)
Query for specific api keys.
|
CMACallback<CMAArray<CMAApiKey>> |
fetchAll(java.lang.String spaceId,
CMACallback<CMAArray<CMAApiKey>> callback)
Fetch all delivery api keys.
|
CMACallback<CMAArray<CMAApiKey>> |
fetchAll(java.lang.String spaceId,
java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMAApiKey>> callback)
Query for specific api keys.
|
CMACallback<CMAApiKey> |
fetchOne(java.lang.String keyId,
CMACallback<CMAApiKey> callback)
Fetch only one delivery api key.
|
CMACallback<CMAApiKey> |
fetchOne(java.lang.String spaceId,
java.lang.String keyId,
CMACallback<CMAApiKey> callback)
Fetch only one delivery api key.
|
CMACallback<CMAApiKey> |
update(CMAApiKey key,
CMACallback<CMAApiKey> callback)
Update an existing delivery api key.
|
public CMACallback<CMAArray<CMAApiKey>> fetchAll(CMACallback<CMAArray<CMAApiKey>> 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<CMAApiKey>> fetchAll(java.lang.String spaceId, CMACallback<CMAArray<CMAApiKey>> 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<CMAArray<CMAApiKey>> fetchAll(java.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMAApiKey>> callback)
query
- the terms to query for specific keys.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<CMAApiKey>> fetchAll(java.lang.String spaceId, java.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMAApiKey>> callback)
spaceId
- the id of the space to host the api keys.query
- the terms to query for specific keys.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if spaceId is null.public CMACallback<CMAApiKey> fetchOne(java.lang.String keyId, CMACallback<CMAApiKey> 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<CMAApiKey> fetchOne(java.lang.String spaceId, java.lang.String keyId, CMACallback<CMAApiKey> 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.public CMACallback<CMAApiKey> create(CMAApiKey key, CMACallback<CMAApiKey> callback)
key
- the key to be created.callback
- the callback to be called once the key is available.java.lang.IllegalArgumentException
- if configured spaceId is null.java.lang.IllegalArgumentException
- if key is null.CMANotWithEnvironmentsException
- if environmentId was set using
CMAClient.Builder.setEnvironmentId(String)
.CMAClient.Builder.setSpaceId(String)
public CMACallback<CMAApiKey> create(java.lang.String spaceId, CMAApiKey key, CMACallback<CMAApiKey> callback)
spaceId
- the id of the space this is valid on.key
- the key to be created.callback
- the callback to be called once the key is available.java.lang.IllegalArgumentException
- if spaceId is null.java.lang.IllegalArgumentException
- if key is null.public CMACallback<CMAApiKey> update(CMAApiKey key, CMACallback<CMAApiKey> callback)
key
- the key to be updated.callback
- the callback to be called once the key is available.java.lang.IllegalArgumentException
- if configured spaceId is null.java.lang.IllegalArgumentException
- if key is null.CMANotWithEnvironmentsException
- if environmentId was set using
CMAClient.Builder.setEnvironmentId(String)
.CMAClient.Builder.setSpaceId(String)
public CMACallback<java.lang.Integer> delete(CMAApiKey key, CMACallback<java.lang.Integer> callback)
key
- the key to be deleted.callback
- the callback to be called once the key is available.java.lang.IllegalArgumentException
- if key is null.java.lang.IllegalArgumentException
- if key's spaceId is null.CMANotWithEnvironmentsException
- if environmentId was set using
CMAClient.Builder.setEnvironmentId(String)
.CMAClient.Builder.setSpaceId(String)
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.