public class CMAAsset extends CMAResource
| Constructor and Description |
|---|
CMAAsset() |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<String,Map<String,Object>> |
getFields()
Returns a map of fields for this Asset.
|
Boolean |
isArchived()
Returns true if this resource is archived.
|
Boolean |
isPublished()
Returns true if this resource is published.
|
CMAAsset |
setField(String key,
Object value,
String locale)
Creates a new field.
|
CMAAsset |
setFields(LinkedHashMap<String,Map<String,Object>> fields)
Sets a map of fields for this Asset.
|
CMAAsset |
setId(String id)
Sets the ID for this Asset.
|
getResourceId, getSpaceId, getSys, getVersion, setSyspublic CMAAsset setId(String id)
CMAAsset instancesetId in class CMAResourcepublic CMAAsset setField(String key, Object value, String locale)
key - field keyvalue - valuelocale - localeCMAAsset instancepublic LinkedHashMap<String,Map<String,Object>> getFields()
public CMAAsset setFields(LinkedHashMap<String,Map<String,Object>> fields)
fields - Map of fieldsCMAAsset instancepublic Boolean isArchived()
public Boolean isPublished()
Copyright © 2014 Contentful, GmbH.. All rights reserved.