public class CMAEntry extends CMAResource
| Constructor and Description |
|---|
CMAEntry() |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<String,LinkedHashMap<String,Object>> |
getFields() |
Boolean |
isArchived() |
Boolean |
isPublished() |
CMAEntry |
setField(String key,
Object value,
String locale)
Creates a new field with the given
value. |
CMAEntry |
setFields(LinkedHashMap<String,LinkedHashMap<String,Object>> fields)
Sets a map of fields for this Entry.
|
CMAEntry |
setId(String id)
Sets the ID for this Entry.
|
getResourceId, getSpaceId, getSys, getVersion, setSyspublic CMAEntry setId(String id)
setId in class CMAResourceid - the id to be setCMAEntry instancepublic CMAEntry setField(String key, Object value, String locale)
value.
If a field named key already exists it will be replaced.key - field keyvalue - valuelocale - localeCMAEntrypublic LinkedHashMap<String,LinkedHashMap<String,Object>> getFields()
public CMAEntry setFields(LinkedHashMap<String,LinkedHashMap<String,Object>> fields)
fields - the fields to be setCMAEntry instancepublic Boolean isArchived()
public Boolean isPublished()
Copyright © 2016 Contentful, GmbH.. All Rights Reserved.