public final class ModuleEntries.Async
extends java.lang.Object
Constructor and Description |
---|
Async() |
Modifier and Type | Method and Description |
---|---|
CMACallback<CMAEntry> |
archive(CMAEntry entry,
CMACallback<CMAEntry> callback)
Archive an Entry.
|
CMACallback<CMAEntry> |
create(java.lang.String contentTypeId,
CMAEntry entry,
CMACallback<CMAEntry> callback)
Create a new Entry on the configured space and environment.
|
CMACallback<CMAEntry> |
create(java.lang.String spaceId,
java.lang.String environmentId,
java.lang.String contentTypeId,
CMAEntry entry,
CMACallback<CMAEntry> callback)
Create a new entry in the given space and environment.
|
CMACallback<java.lang.Integer> |
delete(CMAEntry entry,
CMACallback<java.lang.Integer> callback)
Delete an Entry.
|
CMACallback<CMAArray<CMAEntry>> |
fetchAll(CMACallback<CMAArray<CMAEntry>> callback)
Fetch all Entries from the configured space and environment.
|
CMACallback<CMAArray<CMAEntry>> |
fetchAll(java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMAEntry>> callback)
Fetch all entries in the space and environment matching the given query.
|
CMACallback<CMAArray<CMAEntry>> |
fetchAll(java.lang.String spaceId,
java.lang.String environmentId,
CMACallback<CMAArray<CMAEntry>> callback)
Fetch all entries from the given space and environment.
|
CMACallback<CMAArray<CMAEntry>> |
fetchAll(java.lang.String spaceId,
java.lang.String environmentId,
java.util.Map<java.lang.String,java.lang.String> query,
CMACallback<CMAArray<CMAEntry>> callback)
Fetch all Entries from a Space with a query.
|
CMACallback<CMAArray<CMASnapshot>> |
fetchAllSnapshots(CMAEntry entry,
CMACallback<CMAArray<CMASnapshot>> callback)
Fetch all snapshots of an entry.
|
CMACallback<CMAEntry> |
fetchOne(java.lang.String entryId,
CMACallback<CMAEntry> callback)
Fetch an Entry with the given
entryId from the configured space and environment. |
CMACallback<CMAEntry> |
fetchOne(java.lang.String spaceId,
java.lang.String environmentId,
java.lang.String entryId,
CMACallback<CMAEntry> callback)
Fetch an Entry with the given
entryId from a Space.entry |
CMACallback<CMASnapshot> |
fetchOneSnapshot(CMAEntry entry,
java.lang.String snapshotId,
CMACallback<CMASnapshot> callback)
Fetch a specific snapshot of an entry.
|
CMACallback<CMAEntry> |
publish(CMAEntry entry,
CMACallback<CMAEntry> callback)
Publish an Entry.
|
CMACallback<CMAEntry> |
unArchive(CMAEntry entry,
CMACallback<CMAEntry> callback)
Un-Archive an Entry.
|
CMACallback<CMAEntry> |
unPublish(CMAEntry entry,
CMACallback<CMAEntry> callback)
Un-Publish an Entry.
|
CMACallback<CMAEntry> |
update(CMAEntry entry,
CMACallback<CMAEntry> callback)
Update an Entry.
|
public CMACallback<CMAEntry> archive(CMAEntry entry, CMACallback<CMAEntry> callback)
entry
- Entrycallback
- Callbackjava.lang.IllegalArgumentException
- if entry is null.java.lang.IllegalArgumentException
- if entry's id is null.public CMACallback<CMAEntry> create(java.lang.String contentTypeId, CMAEntry entry, CMACallback<CMAEntry> callback)
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.
contentTypeId
- Content Type IDentry
- Entrycallback
- Callbackjava.lang.IllegalArgumentException
- if configured spaceId is null.java.lang.IllegalArgumentException
- if configured entry is null.java.lang.IllegalArgumentException
- if contentTypeId is null.java.lang.IllegalArgumentException
- if entry is null.CMAClient.Builder.setSpaceId(String)
,
CMAClient.Builder.setEnvironmentId(String)
public CMACallback<CMAEntry> create(java.lang.String spaceId, java.lang.String environmentId, java.lang.String contentTypeId, CMAEntry entry, CMACallback<CMAEntry> callback)
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.
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
and
CMAClient.Builder.setEnvironmentId(String)
.
spaceId
- Space IDenvironmentId
- Environment IDcontentTypeId
- Content Type IDentry
- Entrycallback
- Callbackjava.lang.IllegalArgumentException
- if spaceId is null.java.lang.IllegalArgumentException
- if environmentId is null.java.lang.IllegalArgumentException
- if contentTypeId is null.java.lang.IllegalArgumentException
- if entry is null.public CMACallback<java.lang.Integer> delete(CMAEntry entry, CMACallback<java.lang.Integer> callback)
entry
- Entrycallback
- Callbackjava.lang.IllegalArgumentException
- if spaceId is null.java.lang.IllegalArgumentException
- if entry is null.public CMACallback<CMAArray<CMAEntry>> fetchAll(CMACallback<CMAArray<CMAEntry>> callback)
callback
- Callbackjava.lang.IllegalArgumentException
- if configured spaceId is null.java.lang.IllegalArgumentException
- if configured environmentId is null.CMAClient.Builder.setSpaceId(String)
,
CMAClient.Builder.setEnvironmentId(String)
public CMACallback<CMAArray<CMAEntry>> fetchAll(java.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMAEntry>> callback)
query
- query to be performedcallback
- Callbackjava.lang.IllegalArgumentException
- if configured spaceId is null.java.lang.IllegalArgumentException
- if configured environmentId is null.CMAClient.Builder.setSpaceId(String)
,
CMAClient.Builder.setEnvironmentId(String)
public CMACallback<CMAArray<CMAEntry>> fetchAll(java.lang.String spaceId, java.lang.String environmentId, CMACallback<CMAArray<CMAEntry>> callback)
This method will override the configuration specified through
CMAClient.Builder.setSpaceId(String)
and
CMAClient.Builder.setEnvironmentId(String)
.
spaceId
- Space IDenvironmentId
- Environment IDcallback
- Callbackjava.lang.IllegalArgumentException
- if spaceId is null.java.lang.IllegalArgumentException
- if environmentId is null.public CMACallback<CMAArray<CMAEntry>> fetchAll(java.lang.String spaceId, java.lang.String environmentId, java.util.Map<java.lang.String,java.lang.String> query, CMACallback<CMAArray<CMAEntry>> callback)
spaceId
- Space IDenvironmentId
- Environment IDquery
- Querycallback
- Callbackjava.lang.IllegalArgumentException
- if spaceId is null.java.lang.IllegalArgumentException
- if environmentId is null.public CMACallback<CMAEntry> fetchOne(java.lang.String entryId, CMACallback<CMAEntry> callback)
entryId
from the configured space and environment.entryId
- Entry IDcallback
- Callbackjava.lang.IllegalArgumentException
- if configured spaceId is null.java.lang.IllegalArgumentException
- if configured environmentId is null.public CMACallback<CMAEntry> fetchOne(java.lang.String spaceId, java.lang.String environmentId, java.lang.String entryId, CMACallback<CMAEntry> callback)
entryId
from a Space.entryspaceId
- Space IDenvironmentId
- Environment IDentryId
- Entry IDcallback
- Callbackpublic CMACallback<CMAEntry> publish(CMAEntry entry, CMACallback<CMAEntry> callback)
entry
- Entrycallback
- Callbackjava.lang.IllegalArgumentException
- if entry is null.java.lang.IllegalArgumentException
- if entry's id is null.java.lang.IllegalArgumentException
- if entry's space id is null.public CMACallback<CMAEntry> unArchive(CMAEntry entry, CMACallback<CMAEntry> callback)
entry
- Entrycallback
- Callbackjava.lang.IllegalArgumentException
- if entry is null.java.lang.IllegalArgumentException
- if entry's id is null.java.lang.IllegalArgumentException
- if entry's space id is null.public CMACallback<CMAEntry> unPublish(CMAEntry entry, CMACallback<CMAEntry> callback)
entry
- Entrycallback
- Callbackjava.lang.IllegalArgumentException
- if entry is null.java.lang.IllegalArgumentException
- if entry's id is null.java.lang.IllegalArgumentException
- if entry's space id is null.public CMACallback<CMAEntry> update(CMAEntry entry, CMACallback<CMAEntry> callback)
entry
- Entrycallback
- Callbackpublic CMACallback<CMAArray<CMASnapshot>> fetchAllSnapshots(CMAEntry entry, CMACallback<CMAArray<CMASnapshot>> callback)
entry
- the entry whose snapshots to be returned.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if entry is null.java.lang.IllegalArgumentException
- if entry's id is null.java.lang.IllegalArgumentException
- if entry's space id is null.public CMACallback<CMASnapshot> fetchOneSnapshot(CMAEntry entry, java.lang.String snapshotId, CMACallback<CMASnapshot> callback)
entry
- the entry whose snapshot to be returned.snapshotId
- the snapshot to be returned.callback
- the callback to be informed about success or failure.java.lang.IllegalArgumentException
- if entry is null.java.lang.IllegalArgumentException
- if entry's id is null.java.lang.IllegalArgumentException
- if entry's space id is null.java.lang.IllegalArgumentException
- if snapshotId is null.Copyright © 2019 Contentful, GmbH.. All Rights Reserved.