public final class ModuleAssets extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleAssets.Async
Async module.
|
| Constructor and Description |
|---|
ModuleAssets(retrofit2.Retrofit retrofit,
Executor callbackExecutor) |
| Modifier and Type | Method and Description |
|---|---|
CMAAsset |
archive(CMAAsset asset)
Archive an Asset.
|
ModuleAssets.Async |
async() |
CMAAsset |
create(String spaceId,
CMAAsset asset)
Create a new Asset.
|
protected com.contentful.java.cma.ServiceAssets |
createService(retrofit2.Retrofit retrofit) |
String |
delete(String spaceId,
String assetId)
Delete an Asset.
|
CMAArray<CMAAsset> |
fetchAll(String spaceId)
Fetch all Assets from a Space.
|
CMAArray<CMAAsset> |
fetchAll(String spaceId,
Map<String,String> query)
Fetch all Assets from a Space with a query.
|
CMAAsset |
fetchOne(String spaceId,
String assetId)
Fetch an Asset with the given
assetId from a Space. |
String |
process(CMAAsset asset,
String locale)
Process an Asset.
|
CMAAsset |
publish(CMAAsset asset)
Publish an Asset.
|
CMAAsset |
unArchive(CMAAsset asset)
Un-Archive an Asset.
|
CMAAsset |
unPublish(CMAAsset asset)
Un-Publish an Asset.
|
CMAAsset |
update(CMAAsset asset)
Update an Asset.
|
public ModuleAssets(retrofit2.Retrofit retrofit,
Executor callbackExecutor)
protected com.contentful.java.cma.ServiceAssets createService(retrofit2.Retrofit retrofit)
public CMAAsset archive(CMAAsset asset)
asset - AssetCMAAsset result instancepublic CMAAsset create(String spaceId, CMAAsset asset)
asset 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 IDasset - AssetCMAAsset result instancepublic String delete(String spaceId, String assetId)
spaceId - Space IDassetId - Asset IDpublic CMAArray<CMAAsset> fetchAll(String spaceId)
spaceId - Space IDCMAArray result instancepublic CMAArray<CMAAsset> fetchAll(String spaceId, Map<String,String> query)
spaceId - Space IDquery - QueryCMAArray result instancepublic CMAAsset fetchOne(String spaceId, String assetId)
assetId from a Space.spaceId - Space IDassetId - Asset IDCMAAsset result instancepublic String process(CMAAsset asset, String locale)
asset - Assetlocale - Localepublic CMAAsset publish(CMAAsset asset)
asset - AssetCMAAsset result instancepublic CMAAsset unArchive(CMAAsset asset)
asset - AssetCMAAsset result instancepublic CMAAsset unPublish(CMAAsset asset)
asset - AssetCMAAsset result instancepublic CMAAsset update(CMAAsset asset)
asset - AssetCMAAsset result instancepublic ModuleAssets.Async async()
Copyright © 2016 Contentful, GmbH.. All Rights Reserved.