public final class ModuleContentTypes.Async extends Object
| Constructor and Description |
|---|
ModuleContentTypes.Async() |
| Modifier and Type | Method and Description |
|---|---|
CMACallback<CMAContentType> |
create(String spaceId,
CMAContentType contentType,
CMACallback<CMAContentType> callback)
Create a new Content Type.
|
CMACallback<retrofit.client.Response> |
delete(String spaceId,
String contentTypeId,
CMACallback<retrofit.client.Response> callback)
Delete a Content Type.
|
CMACallback<CMAArray<CMAContentType>> |
fetchAll(String spaceId,
CMACallback<CMAArray<CMAContentType>> callback)
Fetch all Content Types from a Space.
|
CMACallback<CMAContentType> |
fetchOne(String spaceId,
String contentTypeId,
CMACallback<CMAContentType> callback)
Fetch a Content Type with the given
contentTypeId from a Space. |
CMACallback<CMAContentType> |
publish(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Publish a Content Type.
|
CMACallback<CMAContentType> |
unPublish(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Un-Publish a Content Type.
|
CMACallback<CMAContentType> |
update(CMAContentType contentType,
CMACallback<CMAContentType> callback)
Update a Content Type.
|
public CMACallback<CMAContentType> create(String spaceId, CMAContentType contentType, CMACallback<CMAContentType> callback)
contentType 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 IDcontentType - Content Typecallback - CallbackCMACallback instancepublic CMACallback<retrofit.client.Response> delete(String spaceId, String contentTypeId, CMACallback<retrofit.client.Response> callback)
spaceId - Space IDcontentTypeId - Content Type IDcallback - CallbackCMACallback instancepublic CMACallback<CMAArray<CMAContentType>> fetchAll(String spaceId, CMACallback<CMAArray<CMAContentType>> callback)
spaceId - Space IDcallback - CallbackCMACallback instancepublic CMACallback<CMAContentType> fetchOne(String spaceId, String contentTypeId, CMACallback<CMAContentType> callback)
contentTypeId from a Space.spaceId - Space IDcontentTypeId - Content Type IDcallback - CallbackCMACallback instancepublic CMACallback<CMAContentType> publish(CMAContentType contentType, CMACallback<CMAContentType> callback)
contentType - Content Typecallback - CallbackCMACallback instancepublic CMACallback<CMAContentType> unPublish(CMAContentType contentType, CMACallback<CMAContentType> callback)
contentType - Content Typecallback - CallbackCMACallback instancepublic CMACallback<CMAContentType> update(CMAContentType contentType, CMACallback<CMAContentType> callback)
contentType - Content Typecallback - CallbackCMACallback instanceCopyright © 2014 Contentful, GmbH.. All rights reserved.