public final class ModuleSpaces extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleSpaces.Async
Async module.
|
| Constructor and Description |
|---|
ModuleSpaces(retrofit.RestAdapter restAdapter,
Executor callbackExecutor) |
| Modifier and Type | Method and Description |
|---|---|
ModuleSpaces.Async |
async()
Returns a module with a set of asynchronous methods.
|
CMASpace |
create(String spaceName)
Create a Space.
|
CMASpace |
create(String spaceName,
String organizationId)
Create a Space in an Organization.
|
protected com.contentful.java.cma.ServiceSpaces |
createService(retrofit.RestAdapter restAdapter) |
retrofit.client.Response |
delete(String spaceId)
Delete a Space.
|
CMAArray<CMASpace> |
fetchAll()
Fetch all Spaces.
|
CMAArray<CMALocale> |
fetchLocales(String spaceId)
Fetch Locales for a Space.
|
CMASpace |
fetchOne(String spaceId)
Fetch a Space with a given
spaceId. |
CMASpace |
update(CMASpace space)
Update a Space.
|
public ModuleSpaces(retrofit.RestAdapter restAdapter,
Executor callbackExecutor)
protected com.contentful.java.cma.ServiceSpaces createService(retrofit.RestAdapter restAdapter)
public CMASpace create(String spaceName)
spaceName - Space nameCMASpace result instancepublic CMASpace create(String spaceName, String organizationId)
spaceName - Space nameorganizationId - organization IDCMASpace result instancepublic retrofit.client.Response delete(String spaceId)
spaceId - Space IDResponse instancepublic CMASpace fetchOne(String spaceId)
spaceId.spaceId - Space IDCMASpace result instancepublic CMAArray<CMALocale> fetchLocales(String spaceId)
spaceId - Space IDCMAArray result instancepublic CMASpace update(CMASpace space)
space - SpaceCMASpace result instancepublic ModuleSpaces.Async async()
Copyright © 2014 Contentful, GmbH.. All rights reserved.