public final class ModuleEntries extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleEntries.Async
Async module.
|
| Constructor and Description |
|---|
ModuleEntries(retrofit.RestAdapter restAdapter,
Executor callbackExecutor) |
| Modifier and Type | Method and Description |
|---|---|
CMAEntry |
archive(CMAEntry entry)
Archive an Entry.
|
ModuleEntries.Async |
async()
Returns a module with a set of asynchronous methods.
|
CMAEntry |
create(String spaceId,
String contentTypeId,
CMAEntry entry)
Create a new Entry.
|
protected com.contentful.java.cma.ServiceEntries |
createService(retrofit.RestAdapter restAdapter) |
retrofit.client.Response |
delete(String spaceId,
String entryId)
Delete an Entry.
|
CMAArray<CMAEntry> |
fetchAll(String spaceId)
Fetch all Entries from a Space.
|
CMAEntry |
fetchOne(String spaceId,
String entryId)
Fetch an Entry with the given
entryId from a Space. |
CMAEntry |
publish(CMAEntry entry)
Publish an Entry.
|
CMAEntry |
unArchive(CMAEntry entry)
Un-Archive an Entry.
|
CMAEntry |
unPublish(CMAEntry entry)
Un-Publish an Entry.
|
CMAEntry |
update(CMAEntry entry)
Update an Entry.
|
public ModuleEntries(retrofit.RestAdapter restAdapter,
Executor callbackExecutor)
protected com.contentful.java.cma.ServiceEntries createService(retrofit.RestAdapter restAdapter)
public CMAEntry archive(CMAEntry entry)
entry - EntryCMAEntry result instancepublic CMAEntry create(String spaceId, String contentTypeId, CMAEntry entry)
entry has an ID associated with it, that ID will be used,
otherwise the server will auto-generate an ID that will be contained in the response upon
success.spaceId - Space IDcontentTypeId - Content Type IDentry - EntryCMAEntry result instancepublic retrofit.client.Response delete(String spaceId, String entryId)
spaceId - Space IDentryId - Entry IDResponse instancepublic CMAArray<CMAEntry> fetchAll(String spaceId)
spaceId - Space IDCMAArray result instancepublic CMAEntry fetchOne(String spaceId, String entryId)
entryId from a Space.spaceId - Space IDentryId - Entry IDCMAEntry result instancepublic CMAEntry publish(CMAEntry entry)
entry - EntryCMAEntry result instancepublic CMAEntry unArchive(CMAEntry entry)
entry - EntryCMAEntry result instancepublic CMAEntry unPublish(CMAEntry entry)
entry - EntryCMAEntry result instancepublic CMAEntry update(CMAEntry entry)
entry - EntryCMAEntry result instancepublic ModuleEntries.Async async()
Copyright © 2014 Contentful, GmbH.. All rights reserved.