public final class ModuleEditorInterfaces extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleEditorInterfaces.Async
Async module.
|
| Constructor and Description |
|---|
ModuleEditorInterfaces(retrofit2.Retrofit retrofit,
Executor callbackExecutor)
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 spaceId,
String contentTypeId) |
CMAEditorInterface |
update(CMAEditorInterface editor)
Update an editor interface.
|
public ModuleEditorInterfaces(retrofit2.Retrofit retrofit,
Executor callbackExecutor)
retrofit - the retrofit instance to be used to create the service.callbackExecutor - to tell on which thread it should run.protected com.contentful.java.cma.ServiceEditorInterfaces createService(retrofit2.Retrofit retrofit)
public CMAEditorInterface fetchOne(String spaceId, String contentTypeId)
spaceId - the id of the space this editor interface is valid on.contentTypeId - the contentTypeId this editor interface is valid on.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 © 2017 Contentful, GmbH.. All Rights Reserved.