public final class ModuleEntries extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleEntries.Async
Async module.
|
| Constructor and Description |
|---|
ModuleEntries(retrofit2.Retrofit retrofit,
Executor callbackExecutor) |
| Modifier and Type | Method and Description |
|---|---|
CMAEntry |
archive(CMAEntry entry)
Archive an Entry.
|
ModuleEntries.Async |
async() |
CMAEntry |
create(String spaceId,
String contentTypeId,
CMAEntry entry)
Create a new Entry.
|
protected com.contentful.java.cma.ServiceEntries |
createService(retrofit2.Retrofit retrofit) |
Integer |
delete(String spaceId,
String entryId)
Delete an Entry.
|
CMAArray<CMAEntry> |
fetchAll(String spaceId)
Fetch all Entries from a Space.
|
CMAArray<CMAEntry> |
fetchAll(String spaceId,
Map<String,String> query)
Fetch all Entries from a Space with a query url parameter map.
|
CMAArray<CMASnapshot> |
fetchAllSnapshots(CMAEntry entry)
Fetch all snapshots of an entry.
|
CMAEntry |
fetchOne(String spaceId,
String entryId)
Fetch an Entry with the given
entryId from a Space. |
CMASnapshot |
fetchOneSnapshot(CMAEntry entry,
String snapshotId)
Fetch a specific snapshot of an entry.
|
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(retrofit2.Retrofit retrofit,
Executor callbackExecutor)
protected com.contentful.java.cma.ServiceEntries createService(retrofit2.Retrofit retrofit)
public CMAEntry archive(CMAEntry entry)
entry - EntryCMAEntry result instanceIllegalArgumentException - if entry is null.IllegalArgumentException - if entry's id is null.public CMAEntry create(String spaceId, String contentTypeId, CMAEntry entry)
In case the given 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 instanceIllegalArgumentException - if spaceId is null.IllegalArgumentException - if entry is null.public Integer delete(String spaceId, String entryId)
spaceId - Space IDentryId - Entry IDIllegalArgumentException - if spaceId is null.IllegalArgumentException - if entry is null.public CMAArray<CMAEntry> fetchAll(String spaceId)
This fetch uses the default parameter defined in DefaultQueryParameter.FETCH
spaceId - Space IDCMAArray result instanceIllegalArgumentException - if spaceId is null.public CMAArray<CMAEntry> fetchAll(String spaceId, Map<String,String> query)
spaceId - Space IDquery - QueryCMAArray result instanceIllegalArgumentException - if spaceId is null.public CMAEntry fetchOne(String spaceId, String entryId)
entryId from a Space.spaceId - Space IDentryId - Entry IDCMAEntry result instancepublic CMAEntry publish(CMAEntry entry)
entry - EntryCMAEntry result instanceIllegalArgumentException - if entry is null.IllegalArgumentException - if entry's id is null.IllegalArgumentException - if entry's space id is null.public CMAEntry unArchive(CMAEntry entry)
entry - EntryCMAEntry result instanceIllegalArgumentException - if entry is null.IllegalArgumentException - if entry's id is null.IllegalArgumentException - if entry's space id is null.public CMAEntry unPublish(CMAEntry entry)
entry - EntryCMAEntry result instanceIllegalArgumentException - if entry is null.IllegalArgumentException - if entry's id is null.IllegalArgumentException - if entry's space id is null.public CMAEntry update(CMAEntry entry)
entry - EntryCMAEntry result instanceIllegalArgumentException - if entry is null.IllegalArgumentException - if entry's id is null.IllegalArgumentException - if entry's space id is null.IllegalArgumentException - if entry's version is null.public CMAArray<CMASnapshot> fetchAllSnapshots(CMAEntry entry)
entry - the entry whose snapshots to be returned.IllegalArgumentException - if entry is null.IllegalArgumentException - if entry's id is null.IllegalArgumentException - if entry's space id is null.public CMASnapshot fetchOneSnapshot(CMAEntry entry, String snapshotId)
entry - the entry whose snapshot to be returned.snapshotId - the snapshot to be returned.IllegalArgumentException - if entry is null.IllegalArgumentException - if entry's id is null.IllegalArgumentException - if entry's space id is null.IllegalArgumentException - if snapshotId is null.public ModuleEntries.Async async()
Copyright © 2017 Contentful, GmbH.. All Rights Reserved.