public class ModuleEditorInterfaces extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleEditorInterfaces.Async
Async module.
|
| Constructor and Description |
|---|
ModuleEditorInterfaces(retrofit2.Retrofit retrofit,
Executor callbackExecutor,
String spaceId,
String environmentId,
boolean environmentIdConfigured)
Create this module.
|
| Modifier and Type | Method and Description |
|---|---|
ModuleEditorInterfaces.Async |
async() |
protected com.contentful.java.cma.ServiceEditorInterfaces |
createService(retrofit2.Retrofit retrofit) |
CMAEditorInterface |
fetchOne(String contentTypeId)
Return an editor interface by id using the configured space and environment.
|
CMAEditorInterface |
fetchOne(String spaceId,
String environmentId,
String contentTypeId)
Get the editor interface by id, using the given space and environment.
|
CMAEditorInterface |
update(CMAEditorInterface editor)
Update an editor interface.
|
public ModuleEditorInterfaces(retrofit2.Retrofit retrofit,
Executor callbackExecutor,
String spaceId,
String environmentId,
boolean environmentIdConfigured)
retrofit - the retrofit instance to be used to create the service.callbackExecutor - to tell on which thread it should run.spaceId - the space to be used when not given.environmentId - the environment to be used when not given.environmentIdConfigured - internal helper to see if environment was set.protected com.contentful.java.cma.ServiceEditorInterfaces createService(retrofit2.Retrofit retrofit)
public CMAEditorInterface fetchOne(String contentTypeId)
contentTypeId - the contentTypeId this editor interface is valid on.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 CMAEditorInterface fetchOne(String spaceId, String environmentId, String contentTypeId)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String) and
CMAClient.Builder.setEnvironmentId(String).
spaceId - the id of the space this environment is part of.environmentId - the id of the environment this editor interface is valid on.contentTypeId - the contentTypeId this editor interface is valid on.IllegalArgumentException - if space id is null.IllegalArgumentException - if environment id is null.IllegalArgumentException - if content type id is null.public CMAEditorInterface update(CMAEditorInterface editor)
editor - the editor interface to be updated on Contentful.IllegalArgumentException - if editors spaceId is null.IllegalArgumentException - if editors contentType is null.IllegalArgumentException - if editors contentTypeId is null.IllegalArgumentException - if editors version is not set.public ModuleEditorInterfaces.Async async()
Copyright © 2026 Contentful, GmbH.. All rights reserved.