public final class ModuleUiExtensions.Async
extends java.lang.Object
Constructor and Description |
---|
Async() |
Modifier and Type | Method and Description |
---|---|
CMACallback<CMAUiExtension> |
create(CMAUiExtension extension,
CMACallback<CMAUiExtension> callback)
Create a new ui extension.
|
CMACallback<CMAUiExtension> |
create(java.lang.String spaceId,
java.lang.String environmentId,
CMAUiExtension extension,
CMACallback<CMAUiExtension> callback)
Create a new ui extension.
|
CMACallback<java.lang.Integer> |
delete(CMAUiExtension extension,
CMACallback<java.lang.Integer> callback)
Delete a ui extension.
|
CMACallback<CMAArray<CMAUiExtension>> |
fetchAll(CMACallback<CMAArray<CMAUiExtension>> callback)
Fetch ui extensions from the configured space.
|
CMACallback<CMAArray<CMAUiExtension>> |
fetchAll(java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMAUiExtension>> callback)
Fetch specific ui extensions from the configured space.
|
CMACallback<CMAArray<CMAUiExtension>> |
fetchAll(java.lang.String spaceId,
java.lang.String environmentId,
CMACallback<CMAArray<CMAUiExtension>> callback)
Fetch ui extensions from a given space.
|
CMACallback<CMAArray<CMAUiExtension>> |
fetchAll(java.lang.String spaceId,
java.lang.String environmentId,
java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMAUiExtension>> callback)
Fetch specific ui extensions from a given space.
|
CMACallback<CMAUiExtension> |
fetchOne(java.lang.String extensionId,
CMACallback<CMAUiExtension> callback)
Fetch ui extension to given content type from the configured space.
|
CMACallback<CMAUiExtension> |
fetchOne(java.lang.String spaceId,
java.lang.String environmentId,
java.lang.String extensionId,
CMACallback<CMAUiExtension> callback)
Fetch ui extension to given content type from a given space.
|
CMACallback<CMAUiExtension> |
update(CMAUiExtension extension,
CMACallback<CMAUiExtension> callback)
Update a ui extension.
|
public CMACallback<CMAUiExtension> fetchOne(java.lang.String extensionId, CMACallback<CMAUiExtension> callback)
extensionId
- the id of the extension to be fetched.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if configured spaceId is null.java.lang.IllegalArgumentException
- if extensionId is null.CMAClient.Builder.setSpaceId(String)
public CMACallback<CMAUiExtension> fetchOne(java.lang.String spaceId, java.lang.String environmentId, java.lang.String extensionId, CMACallback<CMAUiExtension> callback)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
and will ignore
CMAClient.Builder.setEnvironmentId(String)
.
spaceId
- the id of the space this is valid on.environmentId
- the id of the environment this is valid on.extensionId
- the id of the extension to be fetched.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if spaceId is null.java.lang.IllegalArgumentException
- if extensionId is null.public CMACallback<CMAArray<CMAUiExtension>> fetchAll(java.lang.String spaceId, java.lang.String environmentId, CMACallback<CMAArray<CMAUiExtension>> callback)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
and will ignore
CMAClient.Builder.setEnvironmentId(String)
.
spaceId
- the id of the space this is valid on.environmentId
- the id of the environment this is valid on.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if spaceId is null.public CMACallback<CMAArray<CMAUiExtension>> fetchAll(CMACallback<CMAArray<CMAUiExtension>> 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<CMAUiExtension>> fetchAll(java.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMAUiExtension>> callback)
query
- the query identifying specific ui extensions.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<CMAUiExtension>> fetchAll(java.lang.String spaceId, java.lang.String environmentId, java.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMAUiExtension>> callback)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
and will ignore
CMAClient.Builder.setEnvironmentId(String)
.
spaceId
- the id of the space to search in.environmentId
- the id of the environment this is valid on.query
- the query identifying specific ui extensions.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if spaceId is null.public CMACallback<CMAUiExtension> update(CMAUiExtension extension, CMACallback<CMAUiExtension> callback)
extension
- the ui extension to be updated.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if extension is null.java.lang.IllegalArgumentException
- if extension's version is null.java.lang.IllegalArgumentException
- if extension's id is null.java.lang.IllegalArgumentException
- if extension's spaceId is null.public CMACallback<CMAUiExtension> create(java.lang.String spaceId, java.lang.String environmentId, CMAUiExtension extension, CMACallback<CMAUiExtension> callback)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
and will ignore
CMAClient.Builder.setEnvironmentId(String)
.
spaceId
- the id of the space this ui extension should be created in.environmentId
- the id of the environment this is valid on.extension
- the ui extension to be added.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if spaceId is null.java.lang.IllegalArgumentException
- if extension is null.java.lang.IllegalArgumentException
- if extension's version is null.java.lang.IllegalArgumentException
- if extension's id is null.java.lang.IllegalArgumentException
- if extension's spaceId is null.public CMACallback<CMAUiExtension> create(CMAUiExtension extension, CMACallback<CMAUiExtension> callback)
extension
- the ui extension to be added.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if configured spaceId is null.java.lang.IllegalArgumentException
- if extension is null.java.lang.IllegalArgumentException
- if extension's version is null.java.lang.IllegalArgumentException
- if extension's id is null.java.lang.IllegalArgumentException
- if extension's spaceId is null.CMANotWithEnvironmentsException
- if environmentId was set using
CMAClient.Builder.setEnvironmentId(String)
.CMAClient.Builder.setSpaceId(String)
public CMACallback<java.lang.Integer> delete(CMAUiExtension extension, CMACallback<java.lang.Integer> callback)
extension
- the ui extension to be deleted.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if extension is null.java.lang.IllegalArgumentException
- if extension's id is null.java.lang.IllegalArgumentException
- if extension's version is null.java.lang.IllegalArgumentException
- if extension's spaceId is null.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.