public final class ModuleEditorInterfaces.Async
extends java.lang.Object
Constructor and Description |
---|
Async() |
Modifier and Type | Method and Description |
---|---|
CMACallback<CMAEditorInterface> |
fetchOne(java.lang.String contentTypeId,
CMACallback<CMAEditorInterface> callback)
Fetch editor interface to given content type in the configured space and environment.
|
CMACallback<CMAEditorInterface> |
fetchOne(java.lang.String spaceId,
java.lang.String environmentId,
java.lang.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(java.lang.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.java.lang.IllegalArgumentException
- if configured space id is null.java.lang.IllegalArgumentException
- if configured environment id is null.java.lang.IllegalArgumentException
- if content type id is null.CMAClient.Builder.setSpaceId(String)
,
CMAClient.Builder.setEnvironmentId(String)
public CMACallback<CMAEditorInterface> fetchOne(java.lang.String spaceId, java.lang.String environmentId, java.lang.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.java.lang.IllegalArgumentException
- if space id is null.java.lang.IllegalArgumentException
- if environment id is null.java.lang.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.java.lang.IllegalArgumentException
- if editors spaceId is null.java.lang.IllegalArgumentException
- if editors contentTypeId is null.java.lang.IllegalArgumentException
- if editors version is not set.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.