Package com.contentful.java.cma
Class ModulePreviewApiKeys.Async
- java.lang.Object
-
- com.contentful.java.cma.ModulePreviewApiKeys.Async
-
- Enclosing class:
- ModulePreviewApiKeys
public class ModulePreviewApiKeys.Async extends java.lang.ObjectAsync module.
-
-
Constructor Summary
Constructors Constructor Description Async()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
fetchAll
public CMACallback<CMAArray<CMAPreviewApiKey>> fetchAll(CMACallback<CMAArray<CMAPreviewApiKey>> callback)
Fetch all preview api keys.- Parameters:
callback- the callback to be informed about success or failure.- Returns:
- the callback to be informed about success or failure.
- Throws:
java.lang.IllegalArgumentException- if configured spaceId is null.CMANotWithEnvironmentsException- if environmentId was set usingCMAClient.Builder.setEnvironmentId(String).- See Also:
CMAClient.Builder.setSpaceId(String)
-
fetchAll
public CMACallback<CMAArray<CMAPreviewApiKey>> fetchAll(java.lang.String spaceId, CMACallback<CMAArray<CMAPreviewApiKey>> callback)
Fetch all preview api keys.- Parameters:
spaceId- the id of the space this is valid on.callback- the callback to be informed about success or failure.- Returns:
- the callback to be informed about success or failure.
- Throws:
java.lang.IllegalArgumentException- if spaceId is null.
-
fetchOne
public CMACallback<CMAPreviewApiKey> fetchOne(java.lang.String keyId, CMACallback<CMAPreviewApiKey> callback)
Fetch only one preview api key.- Parameters:
keyId- the id of the key itself.callback- the callback to be called once the key is available.- Returns:
- the callback to be informed about success or failure.
- Throws:
java.lang.IllegalArgumentException- if configured spaceId is null.java.lang.IllegalArgumentException- if keyId is null.CMANotWithEnvironmentsException- if environmentId was set usingCMAClient.Builder.setEnvironmentId(String).- See Also:
CMAClient.Builder.setSpaceId(String)
-
fetchOne
public CMACallback<CMAPreviewApiKey> fetchOne(java.lang.String spaceId, java.lang.String keyId, CMACallback<CMAPreviewApiKey> callback)
Fetch only one preview api key.- Parameters:
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.- Returns:
- the callback to be informed about success or failure.
- Throws:
java.lang.IllegalArgumentException- if spaceId is null.java.lang.IllegalArgumentException- if keyId is null.
-
-