public final class ModuleUiExtensions extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleUiExtensions.Async
Async module.
|
| Constructor and Description |
|---|
ModuleUiExtensions(retrofit2.Retrofit retrofit,
Executor callbackExecutor)
Create this module.
|
| Modifier and Type | Method and Description |
|---|---|
ModuleUiExtensions.Async |
async() |
CMAUiExtension |
create(String spaceId,
CMAUiExtension extension)
Create a new ui extension.
|
protected com.contentful.java.cma.ServiceUiExtensions |
createService(retrofit2.Retrofit retrofit) |
Integer |
delete(CMAUiExtension extension)
Delete a ui extension.
|
CMAArray<CMAUiExtension> |
fetchAll(String spaceId)
Fetch ui extensions from a given space.
|
CMAArray<CMAUiExtension> |
fetchAll(String spaceId,
Map<String,String> query)
Fetch all ui extensions from a given space.
|
CMAUiExtension |
fetchOne(String spaceId,
String extensionId) |
CMAUiExtension |
update(CMAUiExtension extension)
Update a ui extension.
|
public ModuleUiExtensions(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.ServiceUiExtensions createService(retrofit2.Retrofit retrofit)
public CMAUiExtension fetchOne(String spaceId, String extensionId)
spaceId - the id of the space this is valid on.extensionId - the id of the extension to be fetched.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if extensionId is null.public CMAArray<CMAUiExtension> fetchAll(String spaceId)
spaceId - the id of the space this is valid on.IllegalArgumentException - if spaceId is null.public CMAArray<CMAUiExtension> fetchAll(String spaceId, Map<String,String> query)
spaceId - the id of the space this is valid on.query - controls what to return.IllegalArgumentException - if spaceId is null.public CMAUiExtension update(CMAUiExtension extension)
extension - the ui extension to be updated.IllegalArgumentException - if extension is null.IllegalArgumentException - if extension's version is null.IllegalArgumentException - if extension's id is null.IllegalArgumentException - if extension's spaceId is null.public Integer delete(CMAUiExtension extension)
extension - the extension to be deleted.IllegalArgumentException - if extension is null.IllegalArgumentException - if extension's id is null.IllegalArgumentException - if extension's version is null.IllegalArgumentException - if extension's spaceId is null.public CMAUiExtension create(String spaceId, CMAUiExtension extension)
spaceId - the id of the space this ui extension should be created in.extension - the ui extension to be added.IllegalArgumentException - if spaceId is null.IllegalArgumentException - if extension is null.IllegalArgumentException - if extension's id is null.IllegalArgumentException - if extension's version is null.IllegalArgumentException - if extension's spaceId is null.public ModuleUiExtensions.Async async()
Copyright © 2017 Contentful, GmbH.. All Rights Reserved.