Package com.contentful.java.cma
Class ModuleEditorInterfaces.Async
- java.lang.Object
-
- com.contentful.java.cma.ModuleEditorInterfaces.Async
-
- Enclosing class:
- ModuleEditorInterfaces
public class ModuleEditorInterfaces.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<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.
-
-
-
Method Detail
-
fetchOne
public CMACallback<CMAEditorInterface> fetchOne(java.lang.String contentTypeId, CMACallback<CMAEditorInterface> callback)
Fetch editor interface to given content type in the configured space and environment.- Parameters:
contentTypeId- the id of the content type controlled by this editor interface.callback- the callback to be informed about success or failure.- Returns:
- the callback.
- Throws:
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.- See Also:
CMAClient.Builder.setSpaceId(String),CMAClient.Builder.setEnvironmentId(String)
-
fetchOne
public 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.- Parameters:
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.- Returns:
- the callback.
- Throws:
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.- See Also:
CMAClient.Builder.setSpaceId(String),CMAClient.Builder.setEnvironmentId(String)
-
update
public CMACallback<CMAEditorInterface> update(CMAEditorInterface editor, CMACallback<CMAEditorInterface> callback)
Update the given editor interface.- Parameters:
editor- the editor interface to be updated.callback- the callback to be informed about success or failure.- Returns:
- the callback.
- Throws:
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.
-
-