public class ModuleEditorInterfaces.Async extends Object
| Constructor and Description |
|---|
Async() |
| Modifier and Type | Method and Description |
|---|---|
CMACallback<CMAEditorInterface> |
fetchOne(String contentTypeId,
CMACallback<CMAEditorInterface> callback)
Fetch editor interface to given content type in the configured space and environment.
|
CMACallback<CMAEditorInterface> |
fetchOne(String spaceId,
String environmentId,
String contentTypeId,
CMACallback<CMAEditorInterface> callback)
Fetch editor interface to given content type in a given space and environment.
|
CMACallback<CMAEditorInterface> |
update(CMAEditorInterface editor,
CMACallback<CMAEditorInterface> callback)
Update the given editor interface.
|
public CMACallback<CMAEditorInterface> fetchOne(String contentTypeId, CMACallback<CMAEditorInterface> callback)
contentTypeId - the id of the content type controlled by this editor interface.callback - the callback to be informed about success or failure.IllegalArgumentException - if configured space id is null.IllegalArgumentException - if configured environment id is null.IllegalArgumentException - if content type id is null.CMAClient.Builder.setSpaceId(String),
CMAClient.Builder.setEnvironmentId(String)public CMACallback<CMAEditorInterface> fetchOne(String spaceId, String environmentId, String contentTypeId, CMACallback<CMAEditorInterface> callback)
spaceId - the space this environment is defined on.environmentId - the environment this editor interface is defined on.contentTypeId - the id of the content type controlled by this editor interface.callback - the callback to be informed about success or failure.IllegalArgumentException - if space id is null.IllegalArgumentException - if environment id is null.IllegalArgumentException - if content type id is null.CMAClient.Builder.setSpaceId(String),
CMAClient.Builder.setEnvironmentId(String)public CMACallback<CMAEditorInterface> update(CMAEditorInterface editor, CMACallback<CMAEditorInterface> callback)
editor - the editor interface to be updated.callback - the callback to be informed about success or failure.IllegalArgumentException - if editors spaceId is null.IllegalArgumentException - if editors contentTypeId is null.IllegalArgumentException - if editors version is not set.Copyright © 2026 Contentful, GmbH.. All rights reserved.